Wallpaper change automatically
I would like to be able to easily set up a wallpaper change every x time automatically.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
this I found on http://
#!/bin/bash
# Script to randomly set Background from files in a directory
# Directory Containing Pictures
DIR=/usr/
LOG=/home/
# Command to Select a random file from directory
PIC="$(
for p in [jJ][pP][gG] [pP][nN][gG] [sS][vV][gG] ; do
ls $DIR/*.$p
done | shuf -n1
)"
# Command to set Background Image
if [ -z "$DBUS_
# this is because of gconftool bug in cron
TMP=~/
export $(grep -h DBUS_SESSION_
echo $DBUS_SESSION_
fi
gconftool-2 -t string -s /desktop/