summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdata/generate_menu154
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
24FILENAME=menu.in
25
26find_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
38append() {
39 echo " $*" >> $FILENAME
40}
41
42append_menu() {
43 echo "$*" >> $FILENAME
44}
45
46# Start of menu
47
48echo "[begin] (Fluxbox @VERSION@)" > $FILENAME
49
50find_it xterm append "[exec] (xterm) {xterm -fg white -bg black}"
51find_it nedit append "[exec] (nedit) {nedit}"
52
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]"
61
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}"
70 find_it kwrite append "[exec] (kwrite) {kwrite}"
71append_menu "[end]"
72
73
74append_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}"
85append_menu "[end]"
86
87
88append_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}"
95append_menu "[end]"
96
97
98append_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}"
108append_menu "[end]"
109
110
111append_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}"
118append_menu "[end]"
119
120
121append_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}"
129append_menu "[end]"
130
131append_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}"
143append_menu "[end]"
144
145append_menu "[workspaces] (Workspace List)"
146append_menu "[submenu] (Styles) {Choose a style...}"
147append_menu "[stylesdir] (@pkgdatadir@/styles)"
148append_menu "[end]"
149append_menu "[config] (Configuration)"
150append_menu "[reconfig] (Reconfigure)"
151append_menu "[restart] (Restart)"
152append_menu "[exit] (Exit)"
153
154append_menu "[end]"