#!/bin/sh
if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ] ; then
. ${HOME}/.dbus/session-bus/`ls -rt ${HOME}/.dbus/session-bus/ | tail -1`
export DBUS_SESSION_BUS_ADDRESS
fi
PATH=/usr/local/bin:${PATH}
MONITOR=${1:-0}
PROPERTY="/backdrop/screen0/monitor${MONITOR}/image-path"
IMAGE_PATH=`xfconf-query -c xfce4-desktop -p ${PROPERTY}`
xfconf-query -c xfce4-desktop -p ${PROPERTY} -s ""
xfconf-query -c xfce4-desktop -p ${PROPERTY} -s "${IMAGE_PATH}"
Now when will this be useful? Barely never. Still enjoy it :-)Update: script snipped updated to run within a cronjob.
I don't know if XFCE supports one wallpaper per workspace but GNOME doesn't so some guys created wallpapoz which is a process running in the background which watches for the workspace changes and then changes the wallpaper. Maybe this is where your trick would be useful?
ReplyDeleteUseless? I beg to differ! Using it to refresh the weather map on my desktop now. Thanks.
ReplyDeleteHow about just pressing F5?
ReplyDeleteNice tip, thx!
ReplyDelete