X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/165edb9029ad8af2a0ad70a66dfc47a30d34f529:/bgmenu.sh..471336367072773753063c23c9bcc86eca6353d6:/scripts/static/gitweb/gitweb.css diff --git a/bgmenu.sh b/bgmenu.sh deleted file mode 100755 index 36d94f1..0000000 --- a/bgmenu.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# Generates an FVWM menu for selecting the PNG images found in a given -# directory. Thumbnails for the images are generated on the fly using convert -# from ImageMagick, and stored in the .thumbs subdirectory. The menu items -# run the specified function with the filename as the first argument. - -menu="MenuWallpaper" -func="SetWallpaper" -thumber="$HOME/.fvwm/thumbnail.sh" - -if [ ! -d "$1" ]; then - echo "usage: $0 [menuname]" 1>&2 - exit 1 -fi -[ -n "$2" ] && menu="$2" - -for i in "$1"/*.png; do - thumb="`$thumber --size x160 "$i"`" - echo "AddToMenu $menu \"`basename "${i%.png}"`*$thumb*\" $func \"$i\"" -done