summaryrefslogtreecommitdiff
path: root/debian/wm-icons.menu-method
diff options
context:
space:
mode:
Diffstat (limited to 'debian/wm-icons.menu-method')
-rw-r--r--[l---------]debian/wm-icons.menu-method58
1 files changed, 57 insertions, 1 deletions
diff --git a/debian/wm-icons.menu-method b/debian/wm-icons.menu-method
index afe1a7e..9b32f11 120000..100644
--- a/debian/wm-icons.menu-method
+++ b/debian/wm-icons.menu-method
@@ -1 +1,57 @@
-../etc/debian-menu-system/wm-icons-fvwm2rc-menu \ No newline at end of file
+#!/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"