diff options
-rw-r--r-- | functions.config | 3 | ||||
-rwxr-xr-x | scripts/random_wallpaper.sh | 1 |
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 |