diff options
Diffstat (limited to 'etc/debian-menu-system/wm-icons-fvwm2rc-menu.in')
-rwxr-xr-x | etc/debian-menu-system/wm-icons-fvwm2rc-menu.in | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in new file mode 100755 index 0000000..9b32f11 --- /dev/null +++ b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in @@ -0,0 +1,57 @@ +#!/usr/bin/install-menu +compat="menu-1" +!include lang.h +!include menu.h +# you may/should edit/check the systemFindIcon in wm-icons.h +!include wm-icons.h + +function ltitle()=translate($lang,title()) + +# if you want wm-icons only: +# replace "wmIconsFindIcon" by wmIconsFindIconWmOnly +# if you want that your system icons be prioritary for applications +# icons: +# replace "wmIconsFindIcon" by wmIconsSystemFindIcon" +# +# Do not forget to edit/check the systemFindIcon function in wm-icons.h +# +supported + wm= "+ \"" escfirst(ltitle(), $hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" Restart " $command "\n" + fvwm2module= "+ \"" escfirst(ltitle(), $hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" Module " $command "\n" + fvwm= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" " $command "\n" + fvwm2= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" " $command "\n" + x11= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" Exec " $command "\n" + text= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") "\"" \ + " Exec /usr/bin/X11/xterm -T \"" ltitle() "\" -e " $command "\n" +endsupported + +startmenu= "DestroyMenu \"" replacewith($section, " ", "_") "\"" "\n" \ + "AddToMenu \"" replacewith($section, " ", "_") "\"" \ + " \"" ltitle() "\" Title" "\n" +endmenu= "\n" + +# if you want wm-icons only: +# replace "wmIconsFindSectionIcon" by wmIconsFindSectionIconWmOnly +# in both case wm-icons are used for standard sections +# Do not forget to edit/check the systemFindIcon function in wm-icons.h +# +submenutitle= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindSectionIcon($section,$icon,"menu/"),"%","%") \ + "\" PopUp \"" replacewith($section, " ", "_") "\"\n" + +rootprefix="/etc/X11/fvwm/wm-icons/" +userprefix="/.fvwm/wm-icons/" +treewalk="c(m)" +genmenu="menudefs.hook" +rootsection="/DebianWmIcons" |