Package: wmii Version: 3.1-5 Severity: wishlist Tags: patch Hi,
here's a menu-methods file for wmii 3. I didn't test it with 3.5 yet, but I guess it works (after adjusting the output paths). Drop it into /etc/menu-methods (executable) and call update-menus in the postinst. Christoph
#!/usr/bin/install-menu compat="menu-1" !include menu.h compat="menu-2" genmenu="debian"; rootprefix="/etc/X11/wmii-3"; userprefix="/.wmii-3"; mainmenutitle="Debian Menus"; preoutput= "# Automatically generated wmii file.\n# Do not edit.\n\n"; treewalk="c(m)"; startmenu= "menu" replacewith($section,"/","_") " () { # " esc(title(),":") "\n" "while true ; do\n" "menu=\""; submenutitle= title() "/\t" "menu" replacewith($section,"/","_") "\n"; supported; x11= title() "\t" $command " >/dev/null 2>&1 &\n"; text= title() "\tx-terminal-emulator -e " $command " &\n"; endsupported; endmenu= "\"\n" " ret=$(echo \"$menu\" | grep ^. | cut -f 1 | wmiimenu) || return\n" " cmd=$(echo \"$menu\" | grep \"^$ret\t\" | cut -f 2)\n" " if [[ \"$cmd\" == menu_* ]] ; then\n" " $cmd\n" " elif [ \"$cmd\" ] ; then\n" " exec sh -c \"$cmd\"\n" " else\n" " echo \"Error: $ret has no command\" 2>&1\n" " fi\n" "done\n" "}\n" "\n"; postoutput="if [ \"$1\" ] ; then $1 ; else menu_Debian ; fi\n"; postrun="chmod +x "prefix()"/debian"
signature.asc
Description: Digital signature