I'm trying to create a wallpaper menu. First, in ~/images/wallpaper I have a bunch of directories to categorize my wallpaper. The menu should have those directories listed in the menu and popup submenus which contain the name of the images and then runs another function to display the image on the root window. I've got this half way figured out. I got menu of directories and... well, it'd be easier to explain if I just showed you what I have: (I think I may have figured out the most complicated of of getting this to _not_ work :)
DestroyMenu WallpaperMenu AddToMenu WallpaperMenu + DynamicPopupAction Function CreateWallpaperMenu DestroyFunc CreateWallpaperMenu AddToFunc CreateWallpaperMenu + I DestroyMenu WallpaperMenu recreate WallpaperMenu + I PipeRead 'for i in `ls -d /home/mark/images/wallpaper/*/`; do echo AddToMenu +WallpaperMenu \\"`basename $i | sed "s/_/ /g"`\\" Popup WallPaperMenu`basename $i` ; +echo -e DestroyMenu WallpaperMenu`basename $i`\\nAddToMenu WallpaperMenu`basename +$i`\\n+ DynamicPopupAction Function CreateWallpaperMenu2 $i WallpaperMenu`basename +$i`; done' + I AddToMenu WallpaperMenu "" Nop + I AddToMenu WallpaperMenu "Recreate" Function CreateWallpaperMenu DestroyFunc CreateWallpaperMenu2 AddToFunc CreateWallpaperMenu2 + I Echo "In CreateWallpaperMenu2" + I DestroyMenu $2 recreate $2 + I PipeRead 'for i in `ls $1`; do echo AddToMenu $2 \\"`basename $i | sed "s/_/ +/g"`\\" Exec qiv -z $i CreateWallpaperMenu2 never gets called. If anyone can help (and be able to decipher that mess :) I'd appreciate the help. Thanks! -- Mark A. Nicolosi <markan_at_penguinmail.com> -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
