Re: Wallpapers and wallpapersmenu option for the menu
"Peter A. Shevtsov" <[email protected]>
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
little watcher is attached
Mathias Gumz wrote:
>hi
>
>
>
>>[wallpapers] (~/.backgrounds) {fbsetbg -f && killall idesk && idesk}
>>
>>
>
>thats correct, that wont work.
>but how about a little watcher which just looks if the
>.fluxbox/lastwallpaper - file has changed?
>
>cheers, mathias
>
>
check.sh
(application/x-sh, 278 B)
#!/bin/sh
FILE=/home/shevtsov/.fluxbox/lastwallpaper
lastdate=`date --reference=$FILE`
while true
do
if [ "`date --reference=$FILE`" != "$lastdate" ] ; then
lastdate=`date --reference=$FILE`
killall idesk
idesk &
else
sleep 1
fi
done