diff options
author | fluxgen <fluxgen> | 2002-05-24 11:34:05 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-05-24 11:34:05 (GMT) |
commit | c9e7dbde630b2d38b172b6cfd7b527a76110412e (patch) | |
tree | ee0180a12b7aebe7fec3af44b3af0c2c8e425865 | |
parent | 8699ca47897de5e3a4a8a83d3b4661348ad33a43 (diff) | |
download | fluxbox_paul-c9e7dbde630b2d38b172b6cfd7b527a76110412e.zip fluxbox_paul-c9e7dbde630b2d38b172b6cfd7b527a76110412e.tar.bz2 |
removed
-rwxr-xr-x | data/generate_menu | 154 |
1 files changed, 0 insertions, 154 deletions
diff --git a/data/generate_menu b/data/generate_menu deleted file mode 100755 index 736c25a..0000000 --- a/data/generate_menu +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | # generate_menu for Fluxbox | ||
2 | # Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org) | ||
3 | # | ||
4 | # Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | # copy of this software and associated documentation files (the "Software"), | ||
6 | # to deal in the Software without restriction, including without limitation | ||
7 | # the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | # and/or sell copies of the Software, and to permit persons to whom the | ||
9 | # Software is furnished to do so, subject to the following conditions: | ||
10 | # | ||
11 | # The above copyright notice and this permission notice shall be included in | ||
12 | # all copies or substantial portions of the Software. | ||
13 | # | ||
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | # DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | #!/bin/sh | ||
23 | |||
24 | FILENAME=menu.in | ||
25 | |||
26 | find_it() { | ||
27 | _it="`which \"$1\" 2>/dev/null | grep \"^/.*$1\"`" | ||
28 | if [ ! -z "$_it" ]; then | ||
29 | if [ -x "$_it" ]; then | ||
30 | shift | ||
31 | $* | ||
32 | else | ||
33 | echo "$1 exists but it is not executable! Check permissions." | ||
34 | fi | ||
35 | fi | ||
36 | } | ||
37 | |||
38 | append() { | ||
39 | echo " $*" >> $FILENAME | ||
40 | } | ||
41 | |||
42 | append_menu() { | ||
43 | echo "$*" >> $FILENAME | ||
44 | } | ||
45 | |||
46 | # Start of menu | ||
47 | |||
48 | echo "[begin] (Fluxbox @VERSION@)" > $FILENAME | ||
49 | |||
50 | find_it xterm append "[exec] (xterm) {xterm -fg white -bg black}" | ||
51 | find_it nedit append "[exec] (nedit) {nedit}" | ||
52 | |||
53 | |||
54 | append_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}" | ||
60 | append_menu "[end]" | ||
61 | |||
62 | |||
63 | append_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}" | ||
70 | find_it kwrite append "[exec] (kwrite) {kwrite}" | ||
71 | append_menu "[end]" | ||
72 | |||
73 | |||
74 | append_menu "[submenu] (Net)" | ||
75 | find_it realplay append "[exec] (realplay) {realplay}" | ||
76 | find_it licq append "[exec] (licq) {licq}" | ||
77 | find_it sylpheed append "[exec] (sylpheed) {sylpheed}" | ||
78 | |||
79 | find_it gftp append "[exec] (gftp) {gftp}" | ||
80 | find_it xchat append "[exec] (xchat) {xchat}" | ||
81 | find_it irssi append "[exec] (irssi) {xterm -title irssi -e irssi}" | ||
82 | find_it BitchX append "[exec] (BitchX) {xterm -title BitchX -fg white -bg black -e BitchX -N}" | ||
83 | find_it bitchx append "[exec] (BitchX) {xterm -title BitchX -fg white -bg black -e bitchx -N}" | ||
84 | find_it ircii append "[exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}" | ||
85 | append_menu "[end]" | ||
86 | |||
87 | |||
88 | append_menu "[submenu] (Graphics)" | ||
89 | find_it gimp append "[exec] (gimp) {gimp}" | ||
90 | find_it xv append "[exec] (xv) {xv}" | ||
91 | find_it gqview append "[exec] (gqview) {gqview}" | ||
92 | find_it xpaint append "[exec] (xpaint) {xpaint}" | ||
93 | find_it kpaint append "[exec] (kpaint) {kpaint}" | ||
94 | find_it kiconedit append "[exec] (kiconedit) {kiconedit}" | ||
95 | append_menu "[end]" | ||
96 | |||
97 | |||
98 | append_menu "[submenu] (Music)" | ||
99 | find_it xmms append "[exec] (xmms) {xmms}" | ||
100 | find_it gqmpeg append "[exec] (gqmpeg) {gqmpeg}" | ||
101 | find_it xmixer append "[exec] (xmixer) {xmixer}" | ||
102 | find_it gmix append "[exec] (gmix) {gmix}" | ||
103 | find_it kmix append "[exec] (kmix) {kmix}" | ||
104 | find_it grecord append "[exec] (grecord) {grecord}" | ||
105 | find_it kmidi append "[exec] (kmidi) {kmidi}" | ||
106 | find_it xplaycd append "[exec] (xplaycd) {xplaycd}" | ||
107 | find_it soundtracker append "[exec] (soundtracker) {soundtracker}" | ||
108 | append_menu "[end]" | ||
109 | |||
110 | |||
111 | append_menu "[submenu] (Terminals)" | ||
112 | append "[exec] (xterm) {xterm -fg white -bg black}" | ||
113 | find_it gnome-terminal append "[exec] (gnome-terminal) {gnome-terminal}" | ||
114 | find_it Eterm append "[exec] (Eterm) {Eterm}" | ||
115 | find_it konsole append "[exec] (konsole) {konsole}" | ||
116 | find_it aterm append "[exec] (aterm) {aterm}" | ||
117 | find_it rxvt append "[exec] (rxvt) {rxvt}" | ||
118 | append_menu "[end]" | ||
119 | |||
120 | |||
121 | append_menu "[submenu] (Misc)" | ||
122 | find_it acroread append "[exec] (acroread) {acroread}" | ||
123 | find_it gcalc append "[exec] (gcalc) {gcalc}" | ||
124 | find_it kcalc append "[exec] (kcalc) {kcalc}" | ||
125 | find_it kpackage append "[exec] (kpackage) {kpackage}" | ||
126 | find_it xgdb append "[exec] (xgdb) {xgdb}" | ||
127 | find_it ddd append "[exec] (ddd) {ddd}" | ||
128 | find_it xterm append "[exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}" | ||
129 | append_menu "[end]" | ||
130 | |||
131 | append_menu "[submenu] (X utils)" | ||
132 | find_it xpenguins append "[exec] (xpenguins) {xpenguins}" | ||
133 | find_it xcalc append "[exec] (xcalc) {xcalc}" | ||
134 | find_it xfontsel append "[exec] (xfontsel) {xfontsel}" | ||
135 | find_it xman append "[exec] (xman) {xman}" | ||
136 | find_it xload append "[exec] (xload) {xload}" | ||
137 | find_it xfig append "[exec] (xfig) {xfig}" | ||
138 | find_it xbiff append "[exec] (xbiff) {xbiff}" | ||
139 | find_it editres append "[exec] (editres) {editres}" | ||
140 | find_it viewres append "[exec] (viewres) {viewres}" | ||
141 | find_it xsnow append "[exec] (xsnow) {xsnow}" | ||
142 | find_it xclock append "[exec] (xclock) {xclock}" | ||
143 | append_menu "[end]" | ||
144 | |||
145 | append_menu "[workspaces] (Workspace List)" | ||
146 | append_menu "[submenu] (Styles) {Choose a style...}" | ||
147 | append_menu "[stylesdir] (@pkgdatadir@/styles)" | ||
148 | append_menu "[end]" | ||
149 | append_menu "[config] (Configuration)" | ||
150 | append_menu "[reconfig] (Reconfigure)" | ||
151 | append_menu "[restart] (Restart)" | ||
152 | append_menu "[exit] (Exit)" | ||
153 | |||
154 | append_menu "[end]" | ||