summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-05-02 16:15:10 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-05-02 16:15:10 +0200
commit9ef63c341b5480814f1bec2513a3283eaacf319d (patch)
tree4e70fb4c3b722e03b379eebf8a9108efca50d0af
parent567f2bf0958a81f82817849be57dbc2d2345e60f (diff)
Use Exec instead of PipeRead for random wall.
so it doesn't block the rest of FVWM.
-rw-r--r--functions.config3
-rwxr-xr-xscripts/random_wallpaper.sh1
2 files changed, 2 insertions, 2 deletions
diff --git a/functions.config b/functions.config
index 74cc699..bb5e485 100644
--- a/functions.config
+++ b/functions.config
@@ -94,8 +94,7 @@ AddToFunc SlideshowOn
DestroyFunc RandomWall
AddToFunc RandomWall
-+ I Piperead '$[FVWM_USERDIR]/scripts/random_wallpaper.sh'
-+ I Refresh
++ I Exec '$[FVWM_USERDIR]/scripts/random_wallpaper.sh'
DestroyFunc MPDControl
AddToFunc MPDControl
diff --git a/scripts/random_wallpaper.sh b/scripts/random_wallpaper.sh
index 73d427f..58b3039 100755
--- a/scripts/random_wallpaper.sh
+++ b/scripts/random_wallpaper.sh
@@ -16,5 +16,6 @@ fi
convert ${file} -resize `xdpyinfo |grep dimensions|awk '{print $2}'` "${FVWM_USERDIR}/tmp/current_wall.png"
feh --bg-center "${FVWM_USERDIR}/tmp/current_wall.png"
+FvwmCommand Refresh
exit 0