Created
July 11, 2023 11:58
-
-
Save feilongfl/4109279bdc97250dfa555f4e09bae7e9 to your computer and use it in GitHub Desktop.
确认是否安装了feh、nitrogen、hsetroot、xwallpaper、bgs、variety、pywal、xsetroot、habak和fim等壁纸程序
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
programs=("feh" "nitrogen" "hsetroot" "xwallpaper" "bgs" "variety" "pywal" "xsetroot" "habak" "fim") | |
for program in "${programs[@]}"; do | |
if command -v "$program" &>/dev/null; then | |
echo "$program 已安装" | |
else | |
echo "$program 未安装" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
之前研究如何自动切换壁纸,但是折腾完之后忘记了各个程序名字
有一个程序一直切换桌面壁纸成莫名其妙的图片
同chatgpt生成的这个脚本帮我找出了罪魁祸首: variety
generate by chatgpt: