summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rwxr-xr-xdata/generate_menu306
2 files changed, 111 insertions, 196 deletions
diff --git a/ChangeLog b/ChangeLog
index d031812..c6458ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1Changes for 0.1.6: 1Changes for 0.1.6:
2*02/01/09: 2*02/01/09:
3 * Updated copyright date 3 * Updated copyright date
4 * Updated generate_menu (Thanks zyrnix)
4*02/01/08: 5*02/01/08:
5 * Made class Keys more independent (layer 2). class Keys now only 6 * Made class Keys more independent (layer 2). class Keys now only
6 depends on StringUtil. 7 depends on StringUtil.
diff --git a/data/generate_menu b/data/generate_menu
index 49b5adc..3e2d5cf 100755
--- a/data/generate_menu
+++ b/data/generate_menu
@@ -1,4 +1,4 @@
1# generate_menu for Fluxbox 1# generate_menu for Fluxbox
2# Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org) 2# Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org)
3# 3#
4# Permission is hereby granted, free of charge, to any person obtaining a 4# Permission is hereby granted, free of charge, to any person obtaining a
@@ -23,210 +23,124 @@
23 23
24FILENAME=menu.in 24FILENAME=menu.in
25 25
26 26find_it() {
27# Start of menu 27 if [ ! -z "$(which $1 2>/dev/null | grep "^/.*$1")" ]; then
28 28 if [ -x "$(which $1)" ]; then
29echo "[begin] (Fluxbox @VERSION@)" > $FILENAME 29 shift
30 30 $*
31if [ -x `which xterm` ]; then 31 else
32 echo " [exec] (xterm) {xterm -fg white -bg black}" >> $FILENAME 32 echo "$1 exists but it is not executable! Check permissions."
33fi 33 fi
34
35if [ -x `which nedit` ]; then
36 echo " [exec] (nedit) {nedit}" >> $FILENAME
37fi
38
39echo "[submenu] (Browsers)" >> $FILENAME
40 if [ -x `which netscape` ]; then
41 echo " [exec] (netscape) {netscape}" >> $FILENAME
42 fi
43 if [ -x `which opera` ]; then
44 echo " [exec] (opera) {opera}" >> $FILENAME
45 fi
46 if [ -x `which galeon` ]; then
47 echo " [exec] (galeon) {galeon}" >> $FILENAME
48 fi
49 if [ -x `which mozilla` ]; then
50 echo " [exec] (mozilla) {mozilla}" >> $FILENAME
51 fi
52 if [ -x `which konqueror` ]; then
53 echo " [exec] (konqueror) {konqueror}" >> $FILENAME
54 fi
55echo "[end]" >> $FILENAME
56
57
58echo "[submenu] (Editors)" >> $FILENAME
59 if [ -x `which nedit` ]; then
60 echo " [exec] (nedit) {nedit}" >> $FILENAME
61 fi
62 if [ -x `which vim` ]; then
63 echo " [exec] (vim) {vim -g}" >> $FILENAME
64 fi
65 if [ -x `which xemacs` ]; then
66 echo " [exec] (xemacs) {xemacs}" >> $FILENAME
67 fi
68 if [ -x `which gedit` ]; then
69 echo " [exec] (gedit) {gedit}" >> $FILENAME
70 fi
71 if [ -x `which xedit` ]; then
72 echo " [exec] (xedit) {xedit}" >> $FILENAME
73 fi
74 if [ -x `which kword` ]; then
75 echo " [exec] (kword) {kword}" >> $FILENAME
76 fi 34 fi
35}
77 36
78echo "[end]" >> $FILENAME 37append() {
38 echo " $*" >> $FILENAME
39}
79 40
80echo "[submenu] (Net)" >> $FILENAME 41append_menu() {
81 if [ -x `which realplay` ]; then 42 echo "$*" >> $FILENAME
82 echo " [exec] (realplay) {realplay}" >> $FILENAME 43}
83 fi
84
85 if [ -x `which licq` ]; then
86 echo " [exec] (licq) {licq}" >> $FILENAME
87 fi
88 if [ -x `which xchat` ]; then
89 echo " [exec] (xchat) {xchat}" >> $FILENAME
90 fi
91 if [ -x `which sylpheed` ]; then
92 echo " [exec] (sylpheed) {sylpheed}" >> $FILENAME
93 fi
94 if [ -x `which gftp` ]; then
95 echo " [exec] (gftp) {gftp}" >> $FILENAME
96 fi
97 if [ -x `which BitchX` ]; then
98 echo " [exec] (BitchX) {xterm -title BitchX -fg white -bg black -e BitchX -N}" >> $FILENAME
99 else
100 if [ -x `which bitchx` ]; then
101 echo " [exec] (BitchX) {xterm -title BitchX -fg white -bg black -e bitchx -N}" >> $FILENAME
102 fi
103 fi
104 if [ -x `which ircii` ]; then
105 echo " [exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}" >> $FILENAME
106 fi
107echo "[end]" >> $FILENAME
108 44
45# Start of menu
109 46
110echo "[submenu] (Graphics)" >> $FILENAME 47echo "[begin] (Fluxbox @VERSION@)" > $FILENAME
111 if [ -x `which gimp` ]; then
112 echo " [exec] (gimp) {gimp}" >> $FILENAME
113 fi
114 if [ -x `which xv` ]; then
115 echo " [exec] (xv) {xv}" >> $FILENAME
116 fi
117 if [ -x `which gqview` ]; then
118 echo " [exec] (gqview) {gqview}" >> $FILENAME
119 fi
120 if [ -x `which xpaint` ]; then
121 echo " [exec] (xpaint) {xpaint}" >> $FILENAME
122 fi
123echo "[end]" >> $FILENAME
124 48
125echo "[submenu] (Music)" >> $FILENAME 49find_it xterm append "[exec] (xterm) {xterm -fg white -bg black
126 if [ -x `which xmms` ]; then 50}"
127 echo " [exec] (xmms) {xmms}" >> $FILENAME 51find_it nedit append "[exec] (nedit) {nedit}"
128 fi
129 if [ -x `which gqmpeg` ]; then
130 echo " [exec] (gqmpeg) {gqmpeg}" >> $FILENAME
131 fi
132 if [ -x `which xmixer` ]; then
133 echo " [exec] (xmixer) {xmixer}" >> $FILENAME
134 fi
135 if [ -x `which gmix` ]; then
136 echo " [exec] (gmix) {gmix}" >> $FILENAME
137 fi
138 if [ -x `which xplaycd` ]; then
139 echo " [exec] (xplaycd) {xplaycd}" >> $FILENAME
140 fi
141 if [ -x `which soundtracker` ]; then
142 echo " [exec] (soundtracker) {soundtracker}" >> $FILENAME
143 fi
144echo "[end]" >> $FILENAME
145 52
146echo "[submenu] (Terminals)" >> $FILENAME
147 if [ -x `which xterm` ]; then
148 echo " [exec] (xterm) {xterm -fg white -bg black}" >> $FILENAME
149 fi
150 if [ -x `which gnome-terminal` ]; then
151 echo " [exec] (gnome-terminal) {gnome-terminal}" >> $FILENAME
152 fi
153 if [ -x `which Eterm` ]; then
154 echo " [exec] (Eterm) {Eterm}" >> $FILENAME
155 fi
156 if [ -x `which konsole` ]; then
157 echo " [exec] (konsole) {konsole}" >> $FILENAME
158 fi
159 if [ -x `which aterm` ]; then
160 echo " [exec] (aterm) {aterm}" >> $FILENAME
161 fi
162 if [ -x `which rxvt` ]; then
163 echo " [exec] (rxvt) {rxvt}" >> $FILENAME
164 fi
165echo "[end]" >> $FILENAME
166 53
54append_menu "[submenu] (Browsers)"
55 find_it netscape append "[exec] (netscape) {netscape}"
56 find_it opera append "[exec] (opera) {opera}"
57 find_it galeon append "[exec] (galeon) {galeon}"
58 find_it mozilla append "[exec] (mozilla) {mozilla}"
59 find_it konqueror append "[exec] (konqueror) {konqueror}"
60append_menu "[end]"
167 61
168echo "[submenu] (Misc)" >> $FILENAME
169 if [ -x `which acroread` ]; then
170 echo " [exec] (acroread) {acroread}" >> $FILENAME
171 fi
172 if [ -x `which gcalc` ]; then
173 echo " [exec] (gcalc) {gcalc}" >> $FILENAME
174 fi
175 if [ -x `which xgdb` ]; then
176 echo " [exec] (xgdb) {xgdb}" >> $FILENAME
177 fi
178 if [ -x `which ddd` ]; then
179 echo " [exec] (ddd) {ddd}" >> $FILENAME
180 fi
181 if [ -x `which xterm` ]; then
182 echo " [exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}" >> $FILENAME
183 fi
184echo "[end]" >> $FILENAME
185
186echo "[submenu] (X utils)" >> $FILENAME
187 if [ -x `which xpenguins` ]; then
188 echo " [exec] (xpenguins) {xpenguins}" >> $FILENAME
189 fi
190 if [ -x `which xcalc` ]; then
191 echo " [exec] (xcalc) {xcalc}" >> $FILENAME
192 fi
193 if [ -x `which xfontsel` ]; then
194 echo " [exec] (xfontsel) {xfontsel}" >> $FILENAME
195 fi
196 if [ -x `which xman` ]; then
197 echo " [exec] (xman) {xman}" >> $FILENAME
198 fi
199 if [ -x `which xload` ]; then
200 echo " [exec] (xload) {xload}" >> $FILENAME
201 fi
202 if [ -x `which xfig` ]; then
203 echo " [exec] (xfig) {xfig}" >> $FILENAME
204 fi
205 if [ -x `which xbiff` ]; then
206 echo " [exec] (xbiff) {xbiff}" >> $FILENAME
207 fi
208 if [ -x `which editres` ]; then
209 echo " [exec] (editres) {editres}" >> $FILENAME
210 fi
211 if [ -x `which viewres` ]; then
212 echo " [exec] (viewres) {viewres}" >> $FILENAME
213 fi
214 if [ -x `which xsnow` ]; then
215 echo " [exec] (xsnow) {xsnow}" >> $FILENAME
216 fi
217 if [ -x `which xclock` ]; then
218 echo " [exec] (xclock) {xclock}" >> $FILENAME
219 fi
220echo "[end]" >> $FILENAME
221 62
63append_menu "[submenu] (Editors)"
64 find_it nedit append "[exec] (nedit) {nedit}"
65 find_it vim append "[exec] (vim) {vim -g}"
66 find_it xemacs append "[exec] (xemacs) {xemacs}"
67 find_it gedit append "[exec] (gedit) {gedit}"
68 find_it xedit append "[exec] (xedit) {xedit}"
69 find_it kword append "[exec] (kword) {kword}"
70append_menu "[end]"
222 71
223echo "[workspaces] (Workspace List)" >> $FILENAME
224echo "[submenu] (Styles) {Choose a style...}" >> $FILENAME
225echo "[stylesdir] (@pkgdatadir@/styles)" >> $FILENAME
226echo "[end]" >> $FILENAME
227echo "[config] (Configuration)" >> $FILENAME
228echo "[reconfig] (Reconfigure)" >> $FILENAME
229echo "[restart] (Restart)" >> $FILENAME
230echo "[exit] (Exit)" >> $FILENAME
231 72
232echo "[end]" >> $FILENAME 73append_menu "[submenu] (Net)"
74 find_it realplay append "[exec] (realplay) {realplay}"
75 find_it licq append "[exec] (licq) {licq}"
76 find_it sylpheed append "[exec] (sylpheed) {sylpheed}"
77
78 find_it gftp append "[exec] (gftp) {gftp}"
79 find_it xchat append "[exec] (xchat) {xchat}"
80 find_it irssi append "[exec] (irssi) {xterm -title irssi -e irssi}"
81 find_it BitchX append "[exec] (BitchX) {xterm -title BitchX -fg white -bg black -e BitchX -N}"
82 find_it bitchx append "[exec] (BitchX) {xterm -title BitchX -fg white -bg black -e bitchx -N}"
83 find_it ircii append "[exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}"
84append_menu "[end]"
85
86
87append_menu "[submenu] (Graphics)"
88 find_it gimp append "[exec] (gimp) {gimp}"
89 find_it xv append "[exec] (xv) {xv}"
90 find_it gqview append "[exec] (gqview) {gqview}"
91 find_it xpaint append "[exec] (xpaint) {xpaint}"
92append_menu "[end]"
93
94
95append_menu "[submenu] (Music)"
96 find_it xmms append "[exec] (xmms) {xmms}"
97 find_it gqmpeg append "[exec] (gqmpeg) {gqmpeg}"
98 find_it xmixer append "[exec] (xmixer) {xmixer}"
99 find_it gmix append "[exec] (gmix) {gmix}"
100 find_it xplaycd append "[exec] (xplaycd) {xplaycd}"
101 find_it soundtracker append "[exec] (soundtracker) {soundtracker}"
102append_menu "[end]"
103
104
105append_menu "[submenu] (Terminals)"
106 find_it xterm append "[exec] (xterm) {xterm -fg white -bg black}"
107 find_it gnome-terminal append "[exec] (gnome-terminal) {gnome-terminal}"
108 find_it Eterm append "[exec] (Eterm) {Eterm}"
109 find_it konsole append "[exec] (konsole) {konsole}"
110 find_it aterm append "[exec] (aterm) {aterm}"
111 find_it rxvt append "[exec] (rxvt) {rxvt}"
112append_menu "[end]"
113
114
115append_menu "[submenu] (Misc)"
116 find_it acroread append "[exec] (acroread) {acroread}"
117 find_it gcalc append "[exec] (gcalc) {gcalc}"
118 find_it xgdb append "[exec] (xgdb) {xgdb}"
119 find_it ddd append "[exec] (ddd) {ddd}"
120 find_it xterm append "[exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}"
121append_menu "[end]"
122
123append_menu "[submenu] (X utils)"
124 find_it xpenguins append "[exec] (xpenguins) {xpenguins}"
125 find_it xcalc append "[exec] (xcalc) {xcalc}"
126 find_it xfontsel append "[exec] (xfontsel) {xfontsel}"
127 find_it xman append "[exec] (xman) {xman}"
128 find_it xload append "[exec] (xload) {xload}"
129 find_it xfig append "[exec] (xfig) {xfig}"
130 find_it xbiff append "[exec] (xbiff) {xbiff}"
131 find_it editres append "[exec] (editres) {editres}"
132 find_it viewres append "[exec] (viewres) {viewres}"
133 find_it xsnow append "[exec] (xsnow) {xsnow}"
134 find_it xclock append "[exec] (xclock) {xclock}"
135append_menu "[end]"
136
137append_menu "[workspaces] (Workspace List)"
138append_menu "[submenu] (Styles) {Choose a style...}"
139append_menu "[stylesdir] (@pkgdatadir@/styles)"
140append_menu "[end]"
141append_menu "[config] (Configuration)"
142append_menu "[reconfig] (Reconfigure)"
143append_menu "[restart] (Restart)"
144append_menu "[exit] (Exit)"
145
146append_menu "[end]"