I'd like to call it every x time. I've tried the "watch" command, but I seem to need a dedicated terminal open at all times for that. After discovering crontab, it looks good (it can do hourly) so I've tried implementing it but it doesn't seem to have an effect.
To implement it, I simply ran
Code: Select all
crontab -e
Code: Select all
@hourly wallppr.sh
Code: Select all
Feb 11 19:00:01 Romulus CRON[2564]: (stew) CMD (wallppr.sh)
Feb 11 19:00:01 Romulus CRON[2563]: (stew) MAIL (mailed 1 byte of output; but got status 0x00ff, #012)
I can confirm that the Path enviornment variable contains my ~/bin directory. This is the script I am trying to call:
Code: Select all
#!/bin/bash
pic=(~/Pictures/Wallpapers/*)
gsettings set org.gnome.desktop.background picture-uri \
"file://${pic[RANDOM % ${#pic[@]}]}"