#!/bin/bash let n=0 files=($HOME/wallpapers/*.jpg) count=${#files[@]} while [ 1 ] do let "n=n%$count" file="${files[$n]}" echo "switch to $file" feh --bg-max "$file" & let n=n+1 sleep 5s done
最近發現王者榮耀的桌布很精美,就寫了個自動更換桌布的指令碼
#!/bin/bash let n=0 files=($HOME/wallpapers/*.jpg) count=${#files[@]} while [ 1 ] do let "n=n%$count" file="${files[$n]}" echo "switch to $file" feh --bg-max "$file" & let n=n+1 sleep 5s done
最近發現王者榮耀的桌布很精美,就寫了個自動更換桌布的指令碼