1 # You may want to copy this file in your personal theme directory and there
2 # configure (edit) your preferred applications. The default is ok thought.
4 # ----------------------------------------------------------------------------
5 # The following functions are used in many places.
7 DestroyFunc FuncFvwmViewManPage
8 AddToFunc FuncFvwmViewManPage
9 + I Exec exec xterm -fg $[fg.cs33] -bg $[bg.cs33] -g 80x40 -fn 7x14 -fb 7x14bold -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
11 DestroyFunc FuncFvwmViewFile
12 AddToFunc FuncFvwmViewFile
13 + I Exec exec xterm -fg $[fg.cs33] -bg $[bg.cs33] -g 80x24 -fn 7x14 -fb 7x14bold -n "File Viewer - $0" -T "File Viewer - $0" -e less -e "$0"
15 DestroyFunc FuncFvwmEditFile
16 AddToFunc FuncFvwmEditFile
17 + I Test (x emacs) Exec exec emacs "$0"
18 + I TestRc (Match) Break
19 + I Test (EnvIsSet EDITOR) FuncFvwmRunInXterm 'Edit File - $0' '$ENV[EDITOR] "$0"'
20 + I TestRc (!Match) FuncFvwmRunInXterm 'Edit File - $0' 'vi "$0"'
22 DestroyFunc FuncFvwmViewFileTail
23 AddToFunc FuncFvwmViewFileTail
24 + I Exec exec xterm -fg $[fg.cs33] -bg $[bg.cs33] -g 80x40 -fn 7x14 -fb 7x14bold -n "Tail File - $0" -T "Tail File - $0" -e less +F -f "$1"
26 DestroyFunc FuncFvwmOpenURL
27 AddToFunc FuncFvwmOpenURL
28 + I Test (x firefox) Exec firefox '$0'
29 + I TestRc (!Match) Test (x netscape) Exec netscape -remote 'openURL($0, new-window)' 2>/dev/null || netscape '$0'
30 + I TestRc (!Match) Test (x galeon) Exec galeon '$0'
31 + I TestRc (!Match) Test (x konqueror) Exec konqueror '$0'
32 + I TestRc (!Match) Test (x opera) Exec opera '$0'
33 + I TestRc (!Match) FuncFvwmRunInXterm 'Open URL - $0' 'links "$0"'
35 DestroyFunc FuncFvwmRunInXterm
36 AddToFunc FuncFvwmRunInXterm
37 + I exec xterm -fg $[fg.cs34] -bg $[bg.cs34] -g 80x40 -fn 7x14 -fb 7x14bold +sb -ut -T "$0" -n "$0" -e $1
39 # ----------------------------------------------------------------------------
40 # 'man fvwm-menu-directory' for details.
42 DestroyFunc FuncFvwmMenuDirectory
43 AddToFunc FuncFvwmMenuDirectory
44 + I PipeRead 'fvwm-menu-directory -d "$0" --exec-file "^emacs" --check-subdir --links --wm-icons'
46 DestroyMenu MenuFvwmBrowser
47 AddToMenu MenuFvwmBrowser
48 + DynamicPopupAction Piperead 'fvwm-menu-directory -r -na MenuFvwmBrowser -d $HOME -s --exec-file "^emacs" --xte="xterm -e" --wm-icons --check-subdir'
50 DestroyMenu MenuFvwmBrowserCached
51 AddToMenu MenuFvwmBrowserCached
52 + DynamicPopupAction Piperead 'fvwm-menu-directory -all -r -na MenuFvwmBrowserCached -d $HOME -s --exec-file "^emacs" --xte="xterm -e" --wm-icons --check-subdir'
54 # ----------------------------------------------------------------------------
55 # The following functions are mostly used in FvwmButtons modules and stroke.
56 # FuncFvwm[mouse-button][icon-name]
57 # When you click with the mouse button [mouse-button] on a button with an icon
58 # which is named [icon-name] then the coresponding command is executed.
60 # Used in aftersep, migo, olicha, redmond98
61 DestroyFunc FuncFvwmFileManager
62 AddToFunc FuncFvwmFileManager
63 + I Exec exec xterm -g 80x40 -sb +sk -si -sl 500 -j -ls -fn 7x14 -fb 7x14bold -n Midnight-Commander -T Midnight-Commander -e mc -x
65 DestroyFunc FuncFvwm2FileManager
66 AddToFunc FuncFvwm2FileManager
69 DestroyFunc FuncFvwm3FileManager
70 AddToFunc FuncFvwm3FileManager
71 + I Exec exec kfmclient openURL $HOME
73 # Used in aftersep, migo, olicha, redmond98, osx
74 DestroyFunc FuncFvwmTerminal
75 AddToFunc FuncFvwmTerminal
76 + I Exec exec xterm -fg $[fg.cs30] -bg $[bg.cs30] -n $USER@$HOST -T $USER@$HOST
78 DestroyFunc FuncFvwm2Terminal
79 AddToFunc FuncFvwm2Terminal
80 + I Exec exec xterm -fg $[fg.cs31] -bg $[bg.cs31] -n root@$HOST -T root@$HOST -e su -l
82 DestroyFunc FuncFvwm3Terminal
83 AddToFunc FuncFvwm3Terminal
86 # Used in aftersep, migo, olicha, redmond98, osx
87 DestroyFunc FuncFvwmEditor
88 AddToFunc FuncFvwmEditor
91 DestroyFunc FuncFvwm2Editor
92 AddToFunc FuncFvwm2Editor
95 DestroyFunc FuncFvwm3Editor
96 AddToFunc FuncFvwm3Editor
99 # Used in aftersep, migo, olicha, redmond98, osx
100 DestroyFunc FuncFvwmDocView
101 AddToFunc FuncFvwmDocView
102 + I Exec exec ghostview
104 DestroyFunc FuncFvwm2DocView
105 AddToFunc FuncFvwm2DocView
108 DestroyFunc FuncFvwm3DocView
109 AddToFunc FuncFvwm3DocView
112 # Used in aftersep, migo, olicha, redmond98, osx
113 DestroyFunc FuncFvwmImageView
114 AddToFunc FuncFvwmImageView
117 DestroyFunc FuncFvwm2ImageView
118 AddToFunc FuncFvwm2ImageView
121 DestroyFunc FuncFvwm3ImageView
122 AddToFunc FuncFvwm3ImageView
125 # Used in aftersep, migo, olicha, redmond98, osx
126 DestroyFunc FuncFvwmImageEdit
127 AddToFunc FuncFvwmImageEdit
130 DestroyFunc FuncFvwm2ImageEdit
131 AddToFunc FuncFvwm2ImageEdit
134 DestroyFunc FuncFvwm3ImageEdit
135 AddToFunc FuncFvwm3ImageEdit
138 # Used in migo, olicha
139 DestroyFunc FuncFvwmProcess
140 AddToFunc FuncFvwmProcess
141 + I FuncFvwmRunInXterm "Top" "top"
143 DestroyFunc FuncFvwm2Process
144 AddToFunc FuncFvwm2Process
147 DestroyFunc FuncFvwm3Process
148 AddToFunc FuncFvwm3Process
152 DestroyFunc FuncFvwmMail
153 AddToFunc FuncFvwmMail
154 + I FuncFvwmRunInXterm "Mail" "mail"
156 DestroyFunc FuncFvwm2Mail
157 AddToFunc FuncFvwm2Mail
158 + I FuncFvwmRunInXterm "Mail" "mutt"
160 DestroyFunc FuncFvwm3Mail
161 AddToFunc FuncFvwm3Mail
166 DestroyFunc FuncFvwmHelp
167 AddToFunc FuncFvwmHelp
170 DestroyFunc FuncFvwm2Help
171 AddToFunc FuncFvwm2Help
172 + I Exec exec gnome-help-browser
174 DestroyFunc FuncFvwm3Help
175 AddToFunc FuncFvwm3Help
176 + I Exec exec kdehelp
178 # Used in migo, olicha
179 DestroyFunc FuncFvwmCalculator
180 AddToFunc FuncFvwmCalculator
183 DestroyFunc FuncFvwm2Calculator
184 AddToFunc FuncFvwm2Calculator
187 DestroyFunc FuncFvwm3Calculator
188 AddToFunc FuncFvwm3Calculator
191 # Used in aftersep, migo, olicha, redmond98, osx
192 DestroyFunc FuncFvwmWWW
193 AddToFunc FuncFvwmWWW
194 + I Exec netscape -remote 'openURL(about:, new-window)' 2>/dev/null || netscape
196 DestroyFunc FuncFvwm2WWW
197 AddToFunc FuncFvwm2WWW
200 DestroyFunc FuncFvwm3WWW
201 AddToFunc FuncFvwm3WWW
205 DestroyFunc FuncFvwmIrc
206 AddToFunc FuncFvwmIrc
207 + I FuncFvwmRunInXterm irc irc
209 DestroyFunc FuncFvwm2Irc
210 AddToFunc FuncFvwm2Irc
213 DestroyFunc FuncFvwm3Irc
214 AddToFunc FuncFvwm3Irc
218 DestroyFunc FuncFvwmGame
219 AddToFunc FuncFvwmGame
220 + I Exec exec xmahjongg
222 DestroyFunc FuncFvwm2Game
223 AddToFunc FuncFvwm2Game
224 + I Exec exec gnomine
226 DestroyFunc FuncFvwm3Game
227 AddToFunc FuncFvwm3Game
231 DestroyFunc FuncFvwmCdPlayer
232 AddToFunc FuncFvwmCdPlayer
233 + I Exec exec xplaycd
235 DestroyFunc FuncFvwm2CdPlayer
236 AddToFunc FuncFvwm2CdPlayer
239 DestroyFunc FuncFvwm3CdPlayer
240 AddToFunc FuncFvwm3CdPlayer
244 DestroyFunc FuncFvwmSound
245 AddToFunc FuncFvwmSound
248 DestroyFunc FuncFvwm2Sound
249 AddToFunc FuncFvwm2Sound
252 DestroyFunc FuncFvwm3Sound
253 AddToFunc FuncFvwm3Sound
257 DestroyFunc FuncFvwmKeyboard
258 AddToFunc FuncFvwmKeyboard
259 + I Exec exec xkeycaps
261 DestroyFunc FuncFvwm2Keyboard
262 AddToFunc FuncFvwm2Keyboard
265 DestroyFunc FuncFvwm3Keyboard
266 AddToFunc FuncFvwm3Keyboard
267 + I FvwmScript FvwmScript-KeyboardSetup
270 DestroyFunc FuncFvwmWmLock
271 AddToFunc FuncFvwmWmLock
272 + I Exec xlock -nice 20 -mode random
274 DestroyFunc FuncFvwm2WmLock
275 AddToFunc FuncFvwm2WmLock
276 + I Exec xlock -nolock -nice 20 -mode random
278 DestroyFunc FuncFvwm3WmLock
279 AddToFunc FuncFvwm3WmLock
282 # Used in migo, luthien
283 DestroyFunc FuncFvwmWindowClose
284 AddToFunc FuncFvwmWindowClose
287 DestroyFunc FuncFvwm2WindowClose
288 AddToFunc FuncFvwm2WindowClose
291 DestroyFunc FuncFvwm3WindowClose
292 AddToFunc FuncFvwm3WindowClose
295 # Used in migo & luthien
296 DestroyFunc FuncFvwmWmRestart
297 AddToFunc FuncFvwmWmRestart
298 + I FuncFvwmConfirm `Do you really want to restart FVWM?` Restart --ok `Restart`
301 DestroyFunc FuncFvwm2WmRestart
302 AddToFunc FuncFvwm2WmRestart
305 DestroyFunc FuncFvwm3WmRestart
306 AddToFunc FuncFvwm3WmRestart
309 # used in stroke & luthien; IMHO, both beep and grab are very annoying
310 DestroyFunc FuncFvwmQuitVerify
311 AddToFunc FuncFvwmQuitVerify
312 + I FuncFvwmConfirm `Do you really want to quit FVWM?` Quit --ok `Yes, Quit`
313 #+ I FvwmForm FvwmForm-QuitVerify