X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/01c0c7e8df66f488f498bf088a5850def432f41c..6ea5fd2e47b06873f28160fc414f4ef90c82f2fe:/scripts/bgmenu.zsh diff --git a/scripts/bgmenu.zsh b/scripts/bgmenu.zsh deleted file mode 100755 index 15bbd2a..0000000 --- a/scripts/bgmenu.zsh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env zsh -# 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="$FVWM_USERDIR/scripts/thumbnail.zsh" - -if [ ! -d "$1" ]; then - echo "usage: $0 [menuname]" 1>&2 - exit 1 -fi -[ -n "$2" ] && menu="$2" - -for i in "$1"/*$($FVWM_USERDIR/scripts/C/xaspect).png; do - thumb="`$thumber --size x160 "$i"`" - echo "AddToMenu $menu \"`basename "${i%.png}"`*$thumb*\" $func \"$i\"" -done