blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux [2010-12-30 09:01] – brb | blog:change_windows_desktop_background_for_day_and_night_ubuntu_gnu:linux [2010-12-30 09:09] (current) – brb | ||
---|---|---|---|
Line 11: | Line 11: | ||
Notes: | Notes: | ||
- | directly use a jpg file as a windows wallpaper (the settings dialog creates a bmp file behind your back!). | + | |
- | | + | * Test by calling the script |
- | * Test by calling the batchfile | + | * Use f.lux to change the color temperatur of your display to suit the time of day -> http:// |
- | * To automate the wallpaper switch: | + | * To automate the wallpaper switch |
- | * make a link in the windows autostart folder | + | * Add the xdbus.sh script to your startup scripts, so that the xdbus variables are available. |
- | * add an hourly task to the task manager | + | * add a cron task (see below) |
- | <file bash | changedesktop.sh> | + | <file bash changedesktop.sh> |
# | # | ||
# Change desktop background image depending on the time of day | # Change desktop background image depending on the time of day | ||
Line 45: | Line 45: | ||
</ | </ | ||
- | {{tag>}} | + | Note: gconftool needs some environment variables of the user to run. These can be saved during login for later use |
+ | |||
+ | <file bash xdbus.sh> | ||
+ | # | ||
+ | # Export the dbus session address on startup so it can be used by cron | ||
+ | # use in cron / | ||
+ | xdbus=$HOME/ | ||
+ | touch $xdbus | ||
+ | chmod 600 $xdbus | ||
+ | env | grep DBUS_SESSION_BUS_ADDRESS > $xdbus | ||
+ | echo ' | ||
+ | # Export XAUTHORITY value on startup so it can be used by cron | ||
+ | env | grep XAUTHORITY >> $xdbus | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | Add changedesktop to crontab, using '' | ||
+ | |||
+ | < | ||
+ | # m h dom mon dow | ||
+ | @reboot | ||
+ | 0 * * * * / | ||
+ | </ | ||
+ | {{tag>ubuntu linux desktop background}} | ||
~~LINKBACK~~ | ~~LINKBACK~~ | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
blog/change_windows_desktop_background_for_day_and_night_ubuntu_gnu/linux.1293696110.txt.gz · Last modified: 2010-12-30 09:01 by brb