blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux [2010-12-30 08:55] – created brb | blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux [2010-12-30 09:01] – brb | ||
---|---|---|---|
Line 18: | Line 18: | ||
* add an hourly task to the task manager (or even cleaner, two tasks at the switch times (7:00 and 20:00) | * add an hourly task to the task manager (or even cleaner, two tasks at the switch times (7:00 and 20:00) | ||
+ | <file bash | changedesktop.sh> | ||
+ | # | ||
+ | # Change desktop background image depending on the time of day | ||
+ | # Configuration: | ||
+ | # | ||
+ | # load variables for gconftool. These have to be written to Xdbus during login | ||
+ | . $HOME/ | ||
+ | | ||
+ | HOUR=$(date +%H) | ||
+ | gconftool=/ | ||
+ | case " | ||
+ | 06|07) | ||
+ | $gconftool -t string -s / | ||
+ | ;; | ||
+ | 08|09|10|11|12|13|14|15|16) | ||
+ | $gconftool -t string -s / | ||
+ | ;; | ||
+ | 17|18|19 ) | ||
+ | $gconftool -t string -s / | ||
+ | ;; | ||
+ | *) | ||
+ | $gconftool -t string -s / | ||
+ | ;; | ||
+ | esac | ||
+ | |||
+ | </ | ||
{{tag>}} | {{tag>}} |
blog/change_windows_desktop_background_for_day_and_night_ubuntu_gnu/linux.txt · Last modified: 2010-12-30 09:09 by brb