1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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"
|