wallppr.sh:
- Code: Select all
#!/bin/bash
pic=(/home/user/Pictures/Wallpapers/*)
gsettings set org.gnome.desktop.background picture-uri \
"file://${pic[RANDOM % ${#pic[@]}]}"
Then to call it repetitively:
wallChanger.sh:
- Code: Select all
#!/bin/bash
watch -n 10 wallppr.sh
Calling wallChanger.sh from a terminal is no problem. However, when I put it into ~/.profile I don't see the effects of the script when I log in. I assume that I need to run this in a new thread or something, but how?


