Debian Codegraph @

fvwm/components/functions/Preferences-Menu

raw
1 # Menu with preferences
2 #
3 # Included in components/desktop/FVWM-Crystal_Functions
4 # The Music player and Audio mixer prefs menu appears into the Music button menu.
5 # apps/DesktopIcons have its own preferences.
6
7 DestroyMenu /Preferences
8 AddToMenu /Preferences
9 + '%22x22/fvwm-crystal/user-desktop.png%$[gt.Used recipe]' Popup /Preferences/Recipes
10 + '%22x22/fvwm-crystal/geometry.png%$[gt.Desktop geometry]' Popup /Preferences/Geometry
11 + '%22x22/fvwm-crystal/font.png%$[gt.Character fonts]' Script scripts/FontSelector/FontSelector
12 + '%22x22/fvwm-crystal/handles.png%$[gt.Handle width]' Popup /Preferences/HandleWidth
13 Test (x xcompmgr) Test (x transset) + '%22x22/fvwm-crystal/BlingBling.png%$[gt.Translucency]' Popup /Preferences/Translucency
14 Test (x xcompmgr) Test (x transset) + '%22x22/fvwm-crystal/BlingBling2.png%$[gt.Bling bling]' Popup /Preferences/BlingBling
15 + '%22x22/fvwm-crystal/utilities-terminal.png%$[gt.Default terminal]' Popup /Preferences/DefaultTerminal
16 + '%22x22/fvwm-crystal/utilities-terminal.png%$[gt.FvwmConsole terminal]' Popup /Preferences/FvwmConsoleTerminal
17 + '%22x22/fvwm-crystal/utilities-terminal.png%$[gt.QuakeConsole terminal]' Popup /Preferences/QuakeConsoleTerminal
18 + '%22x22/fvwm-crystal/system-file-manager.png%$[gt.Desktop manager]' Popup /Preferences/DesktopManager
19 + '%22x22/fvwm-crystal/icon.png%$[gt.Type of icons]' Popup /Preferences/IconsType
20 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.Desktop menu]' Popup /Preferences/DesktopMenu
21 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.Notification area manager]' Popup /preferences/NotificationAreaManager
22 + "" Nop
23 + '%22x22/fvwm-crystal/focus.png%$[gt.Window focus policy]' Popup /Preferences/FocusPolicy
24 + '%22x22/fvwm-crystal/utilities-terminal.png%$[gt.Privileged terminals]' Popup /Preferences/PrivilegedTerminals
25 + "" Nop
26 + '%22x22/fvwm-crystal/applications.png%$[gt.Generate application menu]' GenerateApplicationMenu
27 + '%22x22/fvwm-crystal/silent.png%$[gt.Silent operations]' Popup /Preferences/SilentOps
28 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.Preferences editor]' LaunchPrefEditors
29 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.Key binding modifiers editor]' Script scripts/KeyModifiersEditor/KeyModifiersEditor
30
31 #
32 # Reload the recipe instead of restart
33 #
34 DestroyFunc ReloadRecipe
35 AddToFunc ReloadRecipe
36 + I All (FvwmButtons-Pager) PutOnBottom
37 + I All (FvwmPager) PutOnBottom
38 + I All (FvwmButtons) Close
39 + I All (FvwmIconMan) Close
40 + I All (FvwmPager) Close
41 + I Exec exec killall stalonetray $[infostore.SILENT]
42 + I Exec exec killall trayer $[infostore.SILENT]
43 + I Exec exec killall UpdateInfoline $[infostore.SILENT]
44 + I PipeRead "if [ '$*' != '' ]; \
45 then echo Read \\'$*\\'; \
46 else echo Read \\'$[infostore.Fvwm_Crystal_Recipe]\\'; fi"
47
48 #
49 # Used recipe
50 #
51 DestroyMenu /Preferences/Recipes
52 AddToMenu /Preferences/Recipes
53 + MissingSubmenuFunction Recipes-generator
54 + '%22x22/categories/directory.png%$[gt.System]' Popup $[FVWM_SYSTEMDIR]/recipes
55 Test (f $[FVWM_USERDIR]/recipes) + '%22x22/categories/directory.png%$[gt.User]' Popup $[FVWM_USERDIR]/recipes
56
57 DestroyFunc Recipes-generator
58 AddToFunc Recipes-generator
59 + I DestroyMenu recreate $0
60 + I AddToMenu $0
61 + I PipeRead 'for i in $0/*; do \
62 name=$(basename "${i}"); \
63 echo \"AddToMenu $0 \'${name}\' Recipe-Set \'${i}\'\"; done'
64
65 DestroyFunc Recipe-Set
66 AddToFunc Recipe-Set
67 + I InfoStoreAdd Fvwm_Crystal_Recipe "$*"
68 + I SavePreferences LastChoosenRecipe "InfoStoreAdd Fvwm_Crystal_Recipe $*"
69 + I ReloadRecipe '$*'
70
71 All (Recipe-Restart-Dialog) Close
72 DestroyModuleConfig Recipe-Restart-Dialog: *
73 *Recipe-Restart-Dialog: Title "$[gt.Restart FVWM-Crystal]"
74 *Recipe-Restart-Dialog: Text "$[gt.New recipe will be used after next startup]"
75 *Recipe-Restart-Dialog: Line center
76 *Recipe-Restart-Dialog: Line center
77 *Recipe-Restart-Dialog: Button quit " $[gt.Restart] " ^M
78 *Recipe-Restart-Dialog: Command ReloadRecipe
79 *Recipe-Restart-Dialog: Button quit " $[gt.Not now] " ^[
80 *Recipe-Restart-Dialog: Command Nop
81 *Recipe-Restart-Dialog: Line center
82
83 #
84 # Desktop geometry
85 #
86 DestroyMenu /Preferences/Geometry
87 AddToMenu /Preferences/Geometry
88 + '%22x22/fvwm-crystal/Jewel2.png%1 $[gt.page]' SetGeometry 1
89 + '%22x22/fvwm-crystal/Jewel2.png%2 $[gt.pages]' SetGeometry 2
90 + '%22x22/fvwm-crystal/Jewel2.png%3 $[gt.pages]' SetGeometry 3
91 + '%22x22/fvwm-crystal/Jewel2.png%4 $[gt.pages]' SetGeometry 4
92 + '%22x22/fvwm-crystal/Jewel2.png%5 $[gt.pages]' SetGeometry 5
93 + '%22x22/fvwm-crystal/Jewel2.png%6 $[gt.pages]' SetGeometry 6
94 + '%22x22/fvwm-crystal/Jewel2.png%7 $[gt.pages]' SetGeometry 7
95 + '%22x22/fvwm-crystal/Jewel2.png%8 $[gt.pages]' SetGeometry 8
96 + '%22x22/fvwm-crystal/Jewel2.png%9 $[gt.pages]' SetGeometry 9
97
98 DestroyFunc SetGeometry
99 AddToFunc SetGeometry
100 + I InfoStoreAdd OldX $[infostore.Desk_Pages_X]
101 + I InfoStoreAdd Desk_Pages_X $0
102 # The page number in FVWM begin at 0
103 + I PipeRead 'last=$(( $0-1)); old=$(( $[infostore.OldX]-1 )); if [ $last -lt $old ]; then for page in $(seq $0 $old); do echo "GotoPage $page 0"; echo \'All (CurrentPage) WindowStyle !FixedPosition\'; echo "UpdateStyles"; echo "All (CurrentPage) MoveToPage $last 0"; for file in $(ls /tmp/fullscreen.??.0x???????.$page.0.tmp 2>/dev/null); do new=$(echo $file | sed -e "s:$page.0:$last.0:"); mv $file $new 2>/dev/null; done; done; fi'
104 + I InfoStoreRemove OldX
105 + I SavePreferences DeskPageX "InfoStoreAdd Desk_Pages_X $[0]"
106 + I DesktopSize $[infostore.Desk_Pages_X]x$[infostore.Desk_Pages_Y]
107 + I FvwmPagerWindow
108
109 # Characters fonts, sizes and styles
110 # Deplaced in scripts/FontSelector/FontSelector
111 #
112 # Files that use them:
113 # decorations/* (theme files: use title_font and title_font_size)
114 # recipes/* (panel_font panel_font_size)
115 # components/styles/Menu (menu_font menu_font_size)
116 #
117 # Some good UTF-8 fonts are aqua_pfont, aquafont, AR PL Ukai, AR PL Uming, Bitstream Cyberbit,
118 # Dialog, Dialoginput, IPAGothic, IPAMincho, IPAPGothic, IPAPMincho, M+ 1c *, M+ 1m *, M+ 1mm *,
119 # M+ 1p, M+ 2c, M+ 2m, M+ 2p, MigMix, Migu, Monospaced, Ricty, Ricty Discord, SansSerif,
120 # Sazanami, Sazanami Gothic, Serif, TakaoExGothic, TakaoExMincho, TakaoGothic, TakaoMincho,
121 # TakaoPGothic, TakaoPMincho, UmePlus, unifont, VL Gothic, VL PGothic, WenQuanYi Micro Hey,
122 # WenQuanYi Micro Hey Mono.
123
124 #
125 # Handles width
126 #
127 DestroyMenu /Preferences/HandleWidth
128 AddToMenu /Preferences/HandleWidth
129 + '%22x22/fvwm-crystal/Jewel2.png%1 $[gt.pixel]' MenuHandleWidth 1
130 + '%22x22/fvwm-crystal/Jewel2.png%2 $[gt.pixels]' MenuHandleWidth 2
131 + '%22x22/fvwm-crystal/Jewel2.png%3 $[gt.pixels]' MenuHandleWidth 3
132 + '%22x22/fvwm-crystal/Jewel2.png%4 $[gt.pixels]' MenuHandleWidth 4
133 + '%22x22/fvwm-crystal/Jewel2.png%5 $[gt.pixels]' MenuHandleWidth 5
134 + '%22x22/fvwm-crystal/Jewel2.png%6 $[gt.pixels]' MenuHandleWidth 6
135 + '%22x22/fvwm-crystal/Jewel2.png%7 $[gt.pixels]' MenuHandleWidth 7
136
137 DestroyFunc MenuHandleWidth
138 AddToFunc MenuHandleWidth
139 + I Piperead 'echo InfoStoreAdd handle_width $0'
140 + I SavePreferences HandleWidth "InfoStoreAdd handle_width $[0]"
141 + I Style * HandleWidth $[0]
142
143 #
144 # Transparency
145 #
146 DestroyMenu /Preferences/Translucency
147 AddToMenu /Preferences/Translucency
148 + '%22x22/fvwm-crystal/BlingBling.png%$[gt.Start translucency]' StartTranslucency
149 + '%22x22/fvwm-crystal/Off.png%$[gt.Stop translucency]' StopTranslucency
150
151 DestroyFunc StartTranslucency
152 AddToFunc StartTranslucency
153 + I Exec exec xcompmgr
154 + I Module FvwmForm Translucency-Dialog
155
156 DestroyFunc StopTranslucency
157 AddToFunc StopTranslucency
158 + I Exec exec killall xcompmgr
159
160 #
161 # Bling bling
162 #
163 DestroyMenu /Preferences/BlingBling
164 AddToMenu /Preferences/BlingBling
165 + '%22x22/fvwm-crystal/BlingBling2.png%$[gt.Start bling bling]' StartBlingBling
166 + '%22x22/fvwm-crystal/Off.png%$[gt.Stop bling bling]' StopBlingBling
167
168 DestroyFunc StartBlingBling
169 AddToFunc StartBlingBling
170 + I Exec exec xcompmgr
171 + I Module FvwmEvent FvwmTranslucencyChangeEvent
172 + I Module FvwmForm Translucency-Dialog
173
174 DestroyFunc StopBlingBling
175 AddToFunc StopBlingBling
176 + I KillModule FvwmEvent FvwmTranslucencyChangeEvent
177 + I Exec exec killall xcompmgr
178
179 All (Translucency-Dialog) Close
180 DestroyModuleConfig Translucency-Dialog: *
181 *Translucency-Dialog: Title "$[gt.Translucency]"
182 *Translucency-Dialog: Text "$[gt.Translucency is not supported by FVWM.]"
183 *Translucency-Dialog: Line center
184 *Translucency-Dialog: Text "$[gt.Unexpected results may occur.]"
185 *Translucency-Dialog: Line center
186 *Translucency-Dialog: Text "$[gt.You have been warned!]"
187 *Translucency-Dialog: Line center
188 *Translucency-Dialog: Line center
189 *Translucency-Dialog: Button quit " $[gt.OK] " ^[
190 *Translucency-Dialog: Command Nop
191 *Translucency-Dialog: Line center
192
193 #
194 # Default terminal
195 #
196 DestroyMenu /Preferences/DefaultTerminal
197 AddToMenu /Preferences/DefaultTerminal
198 Test (x gnome-terminal) + '%22x22/apps/gnome-terminal.png%GNOME Terminal' SelectDefaultTerminal gnome-terminal
199 Test (x multi-gnome-terminal) + '%22x22/apps/multi-gnome-terminal.png%Multi GNOME Terminal' SelectDefaultTerminal multi-gnome-terminal
200 Test (x xfce4-terminal) + '%22x22/apps/xfce4-terminal.png%XFCE4 Terminal' SelectDefaultTerminal xfce4-terminal
201 Test (x terminator) + '%22x22/apps/terminator.png%Terminator' SelectDefaultTerminal terminator
202 Test (x mrxvt) + '%22x22/apps/mrxvt.png%MRxvt' SelectDefaultTerminal mrxvt
203 Test (x urxvtd) + '%22x22/apps/urxvt.png%URxvtD' SelectDefaultTerminal urxvtc
204 Test (x urxvt) + '%22x22/apps/urxvt.png%URxvt' SelectDefaultTerminal urxvt
205 Test (x aterm) + '%22x22/apps/aterm.png%Aterm' SelectDefaultTerminal aterm
206 Test (x Eterm) + '%22x22/apps/Eterm.png%Eterm' SelectDefaultTerminal Eterm
207 Test (x xterm) + '%22x22/apps/xterm.png%XTerm' SelectDefaultTerminal xterm
208 Test (x x-terminal-emulator) + '%22x22/apps/xterm.png%Debian Default Terminal' SelectDefaultTerminal x-terminal-emulator
209
210 DestroyFunc SelectDefaultTerminal
211 AddToFunc SelectDefaultTerminal
212 + I FindCommand DefaultTerminal $0 terminator urxvtc urxvt Eterm aterm mrxvt xterm gnome-terminal konsole xfce4-terminal x-terminal-emulator
213 + I SavePreferences DefaultTerminal "FindCommand DefaultTerminal $0 terminator urxvtc urxvt Eterm aterm mrxvt xterm gnome-terminal konsole xfce4-terminal x-terminal-emulator"
214 + I Include Exec-Accelerator
215
216 #
217 # MiniConsole terminal
218 #
219 DestroyMenu /Preferences/FvwmConsoleTerminal
220 AddToMenu /Preferences/FvwmConsoleTerminal
221 Test (x mrxvt) + '%22x22/apps/mrxvt.png%MRxvt' SelectFvwmConsoleTerminal mrxvt
222 Test (x urxvt) + '%22x22/apps/urxvt.png%URxvt' SelectFvwmConsoleTerminal urxvt
223 Test (x aterm) + '%22x22/apps/aterm.png%Aterm' SelectFvwmConsoleTerminal aterm
224 Test (x xterm) + '%22x22/apps/xterm.png%XTerm' SelectFvwmConsoleTerminal xterm
225
226 DestroyFunc SelectFvwmConsoleTerminal
227 AddToFunc SelectFvwmConsoleTerminal
228 + I FindCommand FvwmConsoleTerminal $0 mrxvt urxvt aterm xterm
229 + I SavePreferences FvwmConsoleTerminal "FindCommand FvwmConsoleTerminal $0 mrxvt urxvt aterm xterm"
230
231 #
232 # QuakeConsole terminal
233 #
234 DestroyMenu /Preferences/QuakeConsoleTerminal
235 AddToMenu /Preferences/QuakeConsoleTerminal
236 Test (x mrxvt) + '%22x22/apps/mrxvt.png%MRxvt' SelectQuakeConsoleTerminal mrxvt
237 Test (x urxvt) + '%22x22/apps/urxvt.png%URxvt' SelectQuakeConsoleTerminal urxvt
238 Test (x aterm) + '%22x22/apps/aterm.png%Aterm' SelectQuakeConsoleTerminal aterm
239 Test (x xterm) + '%22x22/apps/xterm.png%XTerm' SelectQuakeConsoleTerminal xterm
240
241 DestroyFunc SelectQuakeConsoleTerminal
242 AddToFunc SelectQuakeConsoleTerminal
243 + I FindCommand QuakeConsoleTerminal $0 mrxvt urxvt aterm xterm
244 + I SavePreferences QuakeConsoleTerminal "FindCommand QuakeConsoleTerminal $0 mrxvt urxvt aterm xterm"
245
246 #
247 # Desktop manager
248 #
249 DestroyMenu /Preferences/DesktopManager
250 AddToMenu /Preferences/DesktopManager
251 + '%22x22/fvwm-crystal/Off.png%$[gt.None]' TestDesktopManager-None
252 + '%22x22/fvwm-crystal/fvwm-crystal.png%FVWM-Crystal' TestDesktopManager-Crystal
253 Test (x rox) + "" Nop
254 Test (!x rox,x nautilus) + "" Nop
255 Test (x rox) + '%22x22/apps/rox.png%ROX-Filer' ActivateDesktopManager-ROX
256 Test (x nautilus) + '%22x22/apps/nautilus.png%Nautilus' ActivateDesktopManager-Nautilus
257
258 DestroyFunc TestDesktopManager-None
259 AddToFunc TestDesktopManager-None
260 + I PipeRead 'pidof nautilus $[infostore.SILENT] || pidof rox $[infostore.SILENT] || echo LaunchDesktopManager-None'
261 + I PipeRead 'pidof nautilus $[infostore.SILENT] || pidof rox $[infostore.SILENT] && echo ActivateDesktopManager-None'
262
263 DestroyFunc TestDesktopManager-Crystal
264 AddToFunc TestDesktopManager-Crystal
265 + I PipeRead 'pidof nautilus $[infostore.SILENT] || pidof rox $[infostore.SILENT] || echo LaunchDesktopManager-Crystal'
266 + I PipeRead 'pidof nautilus $[infostore.SILENT] || pidof rox $[infostore.SILENT] && echo ActivateDesktopManager-Crystal'
267
268 DestroyFunc LaunchDesktopManager-None
269 AddToFunc LaunchDesktopManager-None
270 + I SavePreferences DefaultDesktopManager "LoadPreferences LastChoosenWallpaper"
271 + I Exec exec killall DesktopCheckMounts $[infostore.SILENT]
272 + I Exec exec rm $[infostore.tmpdrivefile] $[infostore.SILENT]
273 + I KillModule FvwmButtons DesktopIcons
274 + I DestroyModuleConfig DesktopIcons: *
275
276 DestroyFunc LaunchDesktopManager-Crystal
277 AddToFunc LaunchDesktopManager-Crystal
278 + I SavePreferences DefaultDesktopManager "Include components/apps/DesktopIcons"
279 + I Include components/apps/DesktopIcons
280
281 DestroyFunc ActivateDesktopManager-None
282 AddToFunc ActivateDesktopManager-None
283 + I SavePreferences DefaultDesktopManager "LoadPreferences LastChoosenWallpaper"
284 Test (!EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-Dialog
285 Test (EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-SM-Dialog
286
287 DestroyFunc ActivateDesktopManager-Crystal
288 AddToFunc ActivateDesktopManager-Crystal
289 + I SavePreferences DefaultDesktopManager "Include components/apps/DesktopIcons"
290 Test (!EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-Dialog
291 Test (EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-SM-Dialog
292
293 DestroyFunc ActivateDesktopManager-ROX
294 AddToFunc ActivateDesktopManager-ROX
295 + I SavePreferences DefaultDesktopManager "Include components/apps/ROX-Filer"
296 Test (!EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-Dialog
297 Test (EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-SM-Dialog
298
299 DestroyFunc ActivateDesktopManager-Nautilus
300 AddToFunc ActivateDesktopManager-Nautilus
301 + I SavePreferences DefaultDesktopManager "Include components/apps/Nautilus"
302 Test (!EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-Dialog
303 Test (EnvIsSet SESSION_MANAGER) + I Module FvwmForm DesktopManager-SM-Dialog
304
305 All (DesktopManager-Dialog) Close
306 DestroyModuleConfig DesktopManager-Dialog: *
307 *DesktopManager-Dialog: Title "$[gt.Changed desktop manager]"
308 *DesktopManager-Dialog: Text "$[gt.Selected desktop manager will be used]"
309 *DesktopManager-Dialog: Line center
310 *DesktopManager-Dialog: Text "$[gt.at the next start of your X session]"
311 *DesktopManager-Dialog: Line center
312 *DesktopManager-Dialog: Line center
313 *DesktopManager-Dialog: Button quit " $[gt.Logout] " ^M
314 *DesktopManager-Dialog: Command Quit
315 *DesktopManager-Dialog: Button quit " $[gt.Not now] " ^[
316 *DesktopManager-Dialog: Command Nop
317 *DesktopManager-Dialog: Line center
318
319 All (DesktopManager-SM-Dialog) Close
320 DestroyModuleConfig DesktopManager-SM-Dialog: *
321 *DesktopManager-SM-Dialog: Title "$[gt.Changed desktop manager]"
322 *DesktopManager-SM-Dialog: Text "$[gt.Selected desktop manager will be used]"
323 *DesktopManager-SM-Dialog: Line center
324 *DesktopManager-SM-Dialog: Text "$[gt.at the next start of your X session]"
325 *DesktopManager-SM-Dialog: Line center
326 *DesktopManager-SM-Dialog: Line center
327 *DesktopManager-SM-Dialog: Button quit " $[gt.Logout] " ^M
328 *DesktopManager-SM-Dialog: Command QuitSession
329 *DesktopManager-SM-Dialog: Button quit " $[gt.Not now] " ^[
330 *DesktopManager-SM-Dialog: Command Nop
331 *DesktopManager-SM-Dialog: Line center
332
333 #
334 # Type of icons
335 #
336 DestroyFunc ReloadIcons
337 AddToFunc ReloadIcons
338 + I All (Iconic) DestroyWindowStyle
339 + I Style * !EWMHMiniIconOverride, !IconOverride, !NoIcon
340 + I Include components/functions/Window-Basic
341 + I Include components/desktop/FVWM-Crystal_styles
342 + I Include components/desktop/Icon-$0
343 + I LoadPreferences DefaultDesktopManager
344 + I Include components/functions/Music-$[infostore.MusicPlayer]
345 + I PipeRead 'if [ $[0] = Thumbnails ]; then echo "RecoverThumbnails"; fi'
346 #+ I All (CurrentPage, Iconic) PlaceAgain Icon
347
348 DestroyMenu /Preferences/IconsType
349 AddToMenu /Preferences/IconsType
350 + '%22x22/fvwm-crystal/Off.png%$[gt.No icon]' SelectIconsType None
351 + '' Nop
352 + '%22x22/fvwm-crystal/icon.png%$[gt.Thumbnails]' SelectIconsType Thumbnails
353 + '%22x22/fvwm-crystal/icon2.png%Amiga' SelectIconsType Amiga
354 + '%22x22/fvwm-crystal/icon3.png%Mwm' SelectIconsType Mwm
355
356 DestroyFunc SelectIconsType
357 AddToFunc SelectIconsType
358 + I SavePreferences IconsType "Include components/desktop/Icon-$0"
359 #+ I Module FvwmForm IconsType-Dialog
360 + I ReloadIcons $0
361
362 All (IconsType-Dialog) Close
363 DestroyModuleConfig IconsType-Dialog: *
364 *IconsType-Dialog: Title "$[gt.Restart FVWM-Crystal]"
365 *IconsType-Dialog: Text "$[gt.New type of icons will be used after next startup]"
366 *IconsType-Dialog: Line center
367 *IconsType-Dialog: Line center
368 *IconsType-Dialog: Button quit " $[gt.Restart] " ^M
369 *IconsType-Dialog: Command Restart
370 *IconsType-Dialog: Button quit " $[gt.Not now] " ^[
371 *IconsType-Dialog: Command Nop
372 *IconsType-Dialog: Line center
373
374 #
375 # Desktop menu
376 #
377 DestroyMenu /Preferences/DesktopMenu
378 AddToMenu /Preferences/DesktopMenu
379 + '%22x22/fvwm-crystal/Off.png%$[gt.No menu with left click]' SetNoDesktopMenu
380 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.Menu with left click]' SetDesktopMenu
381 Test (Version > 2.6.5) + '' Nop
382 Test (Version > 2.6.5) + '%22x22/fvwm-crystal/Off.png%$[gt.No XDG menu with Alt+A]' SetNoXDGMenu
383 Test (Version > 2.6.5) + '%22x22/fvwm-crystal/On.png%$[gt.XDG Menu with Alt+A]' SetXDGMenu
384
385 DestroyFunc SetNoDesktopMenu
386 AddToFunc SetNoDesktopMenu
387 + I SavePreferences DesktopMenu "Mouse 1 R $[Mod] -"
388 + I Mouse 1 R $[Mod] -
389
390 DestroyFunc SetDesktopMenu
391 AddToFunc SetDesktopMenu
392 + I SavePreferences DesktopMenu "Mouse 1 R $[Mod] DesktopMenu"
393 + I Mouse 1 R $[Mod] DesktopMenu
394
395 DestroyFunc SetNoXDGMenu
396 AddToFunc SetNoXDGMenu
397 + I SavePreferences XDGMenu "SetEnv XDGMenu no"
398 + I Key A A $[Mod1] -
399 + I Key A A $[Mod1]2 -
400
401 DestroyFunc SetXDGMenu
402 AddToFunc SetXDGMenu
403 + I SavePreferences XDGMenu "SetEnv XDGMenu yes"
404 + I Include .menu
405 + I Key A A $[Mod1] Menu FvwmMenu
406 + I Key A A $[Mod1]2 Menu FvwmMenu
407
408 #
409 # Notification Area Application
410 #
411 DestroyMenu /Preferences/NotificationAreaManager
412 AddToMenu /Preferences/NotificationAreaManager
413 Test (x trayer) + '%22x22/apps/trayer.png%Trayer' SelectNotificationAreaManager trayer
414 Test (x stalonetray) + '%22x22/apps/stalonetray.png%StaloneTray' SelectNotificationAreaManager stalonetray
415 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.No notification area]' NotificationAreaWidth 0
416 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.1 icon width]' NotificationAreaWidth 1
417 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.2 icons width]' NotificationAreaWidth 2
418 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.3 icons width]' NotificationAreaWidth 3
419 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.4 icons width]' NotificationAreaWidth 4
420 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.5 icons width]' NotificationAreaWidth 5
421 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.6 icons width]' NotificationAreaWidth 6
422 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.7 icons width]' NotificationAreaWidth 7
423 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.8 icons width]' NotificationAreaWidth 8
424 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.9 icons width]' NotificationAreaWidth 9
425 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.12 icons width]' NotificationAreaWidth 12
426 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.15 icons width]' NotificationAreaWidth 15
427 + '%22x22/fvwm-crystal/trayer-app.png%$[gt.20 icons width]' NotificationAreaWidth 20
428
429
430 DestroyFunc SelectNotificationAreaManager
431 AddToFunc SelectNotificationAreaManager
432 + I FindCommand NotificationAreaManager $0 trayer stalonetray
433 + I SavePreferences NotificationAreaManager "FindCommand NotificationAreaManager $0 trayer stalonetray"
434 + I Include components/functions/NotificationAreaManager-$[infostore.NotificationAreaManager]
435 + I ReloadRecipe
436 #+ I Module FvwmForm NotificationAreaManager-Dialog
437
438 All (NotificationAreaManager-Dialog) Close
439 DestroyModuleConfig NotificationAreaManager-Dialog: *
440 *NotificationAreaManager-Dialog: Title "$[gt.Restart FVWM-Crystal]"
441 *NotificationAreaManager-Dialog: Text "$[gt.New notification area setting will be used after next startup]"
442 *NotificationAreaManager-Dialog: Line center
443 *NotificationAreaManager-Dialog: Line center
444 *NotificationAreaManager-Dialog: Button quit " $[gt.Restart] " ^M
445 *NotificationAreaManager-Dialog: Command Restart
446 *NotificationAreaManager-Dialog: Button quit " $[gt.Not now] " ^[
447 *NotificationAreaManager-Dialog: Command Nop
448 *NotificationAreaManager-Dialog: Line center
449
450 DestroyFunc NotificationAreaWidth
451 AddToFunc NotificationAreaWidth
452 + I FindCommand NotificationArea-Width $0 2 3 4 5 6 7 8 9
453 + I Piperead `echo SetEnv trayer_width $(($0*24))`
454 + I SavePreferences NotificationArea-Width "SetEnv trayer_width $[trayer_width]"
455 + I ReloadRecipe
456 #+ I Module FvwmForm NotificationAreaManager-Dialog
457
458 #
459 # Music player
460 #
461 DestroyMenu /Preferences/MusicPlayer
462 AddToMenu /Preferences/MusicPlayer
463 Test (x alsaplayer) + '%22x22/apps/alsaplayer.png%Alsaplayer' SelectMusicPlayer alsaplayer
464 Test (x alsaplayer) + '%22x22/apps/alsaplayer.png%Alsaplayer daemon' SelectMusicPlayer alsaplayerdaemon
465 Test (x mpc) + '%22x22/apps/gmpc.png%MPD' SelectMusicPlayer mpd
466 Test (x quodlibet) + '%22x22/apps/quodlibet.png%Quod Libet' SelectMusicPlayer quodlibet
467 Test (x xmms-shell) + '%22x22/apps/xmms.png%XMMS' SelectMusicPlayer xmms
468 Test (x xmms2) + '%22x22/apps/xmms2.png%XMMS2' SelectMusicPlayer xmms2
469 Test (x cmus-remote) + '%22x22/apps/cmus.png%C* Music Player' SelectMusicPlayer cmus
470 Test (x cdcd) + '%22x22/apps/goobox.png%cdcd' SelectMusicPlayer cdcd
471 Test (x mocp) + '%22x22/apps/mocp.png%Music On Console' SelectMusicPlayer mocp
472 Test (x audacious) + '%22x22/apps/audacious.png%Audacious' SelectMusicPlayer audacious
473 Test (x mplayer) + '%22x22/apps/mplayer.png%MPlayer' SelectMusicPlayer mplayer
474 Test (x mplayer2) + '%22x22/apps/mplayer.png%MPlayer2' SelectMusicPlayer mplayer2
475
476 DestroyFunc SelectMusicPlayer
477 AddToFunc SelectMusicPlayer
478 #+ I FindCommand MusicPlayer $0 alsaplayer alsaplayerdaemon mpd quodlibet audacious xmms xmm2 cmus mocp cdcd mplayer mplayer2
479 + I InfoStoreAdd MusicPlayer $0
480 + I Include components/functions/Music-$[infostore.MusicPlayer]
481 + I SavePreferences DefaultMusicPlayer "InfoStoreAdd MusicPlayer $[infostore.MusicPlayer]"
482
483 #
484 # Icons in fvwm-menu-directory generated browse media files menu
485 #
486 DestroyMenu /Preferences/MediaFileMenuIcons
487 AddToMenu /Preferences/MediaFileMenuIcons
488 + '%22x22/fvwm-crystal/audio-x-generic-2.png%$[gt.Icons]' SelectMenuIcons
489 + '%22x22/fvwm-crystal/audio-x-generic-1.png%$[gt.No icon]' SelectNoMenuIcons
490
491 DestroyFunc SelectMenuIcons
492 AddToFunc SelectMenuIcons
493 + I SetEnv MediaMenuIcons 1
494 + I SavePreferences MediaMenuIcons "SetEnv MediaMenuIcons 1"
495 + I PipeRead '$[FVWM_USERDIR]/scripts/media_directories $[infostore.USERDIR] 1'
496 + I Include components/functions/Music-$[infostore.MusicPlayer]
497
498 DestroyFunc SelectNoMenuIcons
499 AddToFunc SelectNoMenuIcons
500 + I SetEnv MediaMenuIcons 0
501 + I SavePreferences MediaMenuIcons "SetEnv MediaMenuIcons 0"
502 + I PipeRead '$[FVWM_USERDIR]/scripts/media_directories $[infostore.USERDIR] 0'
503 + I Include components/functions/Music-$[infostore.MusicPlayer]
504
505 #
506 # Mplayer DBD channels list
507 #
508 DestroyMenu /Preferences/MplayerChannelList
509 AddToMenu /Preferences/MplayerChannelList
510 Test (F /dev/dvb/adapter0/frontend0) + '%22x22/apps/mplayer.png%DVB 1' Module FvwmForm SelectChannelList-Dialog CARD=1
511 Test (F /dev/dvb/adapter1/frontend0) + '%22x22/apps/mplayer.png%DVB 2' Module FvwmForm SelectChannelList-Dialog CARD=2
512 Test (F /dev/dvb/adapter2/frontend0) + '%22x22/apps/mplayer.png%DVB 3' Module FvwmForm SelectChannelList-Dialog CARD=3
513 Test (F /dev/dvb/adapter3/frontend0) + '%22x22/apps/mplayer.png%DVB 4' Module FvwmForm SelectChannelList-Dialog CARD=4
514
515 DestroyFunc SelectMplayerChannelList
516 AddToFunc SelectMplayerChannelList
517 + I SavePreferences MplayerChannelList$[0] "InfoStoreAdd MplayerChannelList$[0] '$[1]'"
518 + I InfoStoreAdd MplayerChannelList$[0] '$[1]'
519
520 All (SelectChannelList-Dialog) Close
521 DestroyModuleConfig Module SelectChannelList-Dialog: *
522 *SelectChannelList-Dialog: Title "$[gt.Select channel list]"
523 *SelectChannelList-Dialog: Text "$[gt.Enter the name of the channel list for the DVB input] $CARD"
524 #*SelectChannelList-Dialog: Line center
525 #*SelectChannelList-Dialog: Line center
526 #PipeRead 'echo "*SelectChannelList-Dialog: Text \\"$[gt.It must be in] /home/$(id -un)/.mplayer/\\""'
527 *SelectChannelList-Dialog: Line center
528 *SelectChannelList-Dialog: Line center
529 PipeRead 'echo "*SelectChannelList-Dialog: Input file 40 \\"/home/$(id -un)/.mplayer/channels.conf\\""'
530 *SelectChannelList-Dialog: Line center
531 *SelectChannelList-Dialog: Line center
532 *SelectChannelList-Dialog: Button quit " $[gt.Save] " ^M
533 *SelectChannelList-Dialog: Command SelectMplayerChannelList $CARD "$(file)"
534 *SelectChannelList-Dialog: Button quit " $[gt.Not now] " ^[
535 *SelectChannelList-Dialog: Command Nop
536 *SelectChannelList-Dialog: Line center
537
538 All (MediaDirectories-Dialog) Close
539 DestroyModuleConfig Module MediaDirectories-Dialog: *
540 *MediaDirectories-Dialog: Title "$[gt.Media directories]"
541 *MediaDirectories-Dialog: Text "$[gt.You should edit the file]"
542 *MediaDirectories-Dialog: Line center
543 *MediaDirectories-Dialog: Line center
544 *MediaDirectories-Dialog: Text "$[FVWM_USERDIR]/Preferences/MediaDirectories"
545 *MediaDirectories-Dialog: Line center
546 *MediaDirectories-Dialog: Line center
547 *MediaDirectories-Dialog: Text "$[gt.and choose a player in the preferences.]"
548 *MediaDirectories-Dialog: Line center
549 *MediaDirectories-Dialog: Line center
550 *MediaDirectories-Dialog: Text "$[gt.Each line has the following format:]"
551 *MediaDirectories-Dialog: Line center
552 *MediaDirectories-Dialog: Line center
553 *MediaDirectories-Dialog: Text "$[gt.type path]"
554 *MediaDirectories-Dialog: Line center
555 *MediaDirectories-Dialog: Line center
556 *MediaDirectories-Dialog: Text "$[gt.where type is one of the following]"
557 *MediaDirectories-Dialog: Line center
558 *MediaDirectories-Dialog: Line center
559 *MediaDirectories-Dialog: Text "audio video cdrom dvd"
560 *MediaDirectories-Dialog: Line center
561 *MediaDirectories-Dialog: Line center
562 *MediaDirectories-Dialog: Text "$[gt.and path is the full path to the media directory.]"
563 *MediaDirectories-Dialog: Line center
564 *MediaDirectories-Dialog: Line center
565 *MediaDirectories-Dialog: Text "$[gt.Nothing else is allowed in that file.]"
566 *MediaDirectories-Dialog: Line center
567 *MediaDirectories-Dialog: Line center
568 *MediaDirectories-Dialog: Button quit " $[gt.OK] " ^[
569 *MediaDirectories-Dialog: Command Nop
570 *MediaDirectories-Dialog: Line center
571
572 #
573 # Audio mixer
574 #
575 DestroyMenu /Preferences/Mixer
576 AddToMenu /Preferences/Mixer
577 Test (x amixer) + '%22x22/apps/alsamixer.png%ALSA Mixer' SelectMixer amixer
578 Test (x aumix) + '%22x22/apps/aumix.png%Aumix' SelectMixer aumix
579 + "" Nop
580 Test (x mpc) + '%22x22/apps/gmpc.png%MPD' SelectMixer mpd
581 Test (x quodlibet) + '%22x22/apps/quodlibet.png%Quod Libet' SelectMixer quodlibet
582 Test (x xmms-shell) + '%22x22/apps/xmms.png%XMMS' SelectMixer xmms
583 Test (x xmms2) + '%22x22/apps/xmms2.png%XMMS2' SelectMixer xmms2
584 Test (x cmus-remote) + '%22x22/apps/cmus.png%C* Music Player' SelectMixer cmus
585 Test (x cdcd) + '%22x22/apps/goobox.png%cdcd' SelectMixer cdcd
586 Test (x audacious) + '%22x22/apps/audacious.png%Audacious' SelectMixer audacious
587 Test (x amixer) + "" Nop
588 Test (x amixer) PipeRead `for i in $(sed -e 's/\\([0-9]*\\).*/\\1/' -e 's/^0//' < /proc/asound/pcm | uniq); \
589 do for j in $(amixer -c "$i" controls | grep Volume | sed -e 's:\\(numid=\\)\\(.*\\)\\(,iface.*\\):\\2:'); \
590 do ControlT="$(amixer -c ${i} cget numid=${j})"; \
591 Control="$(echo ${ControlT} | sed -e "s:\\(.*name='\\)\\(.*\\)\\('.*\\):\\2:")"; \
592 echo "+ '%22x22/apps/alsamixer.png%$[gt.Sound Card] ${i} ${Control}' SelectSoundCard '${i}' '${j}'"; \
593 done; \
594 done`
595
596 DestroyFunc SelectMixer
597 AddToFunc SelectMixer
598 + I FindCommand DefaultMixer $0 amixer aumix mpd quodlibet audacious xmms xmms2 cmus cdcd
599 + I SavePreferences DefaultMixer "InfoStoreAdd Mixer $[infostore.DefaultMixer]"
600 + I PipeRead `echo InfoStoreAdd Mixer $[infostore.DefaultMixer]`
601 + I Schedule 500 Include components/functions/Mixer
602
603 DestroyFunc SelectSoundCard
604 AddToFunc SelectSoundCard
605 + I SavePreferences DefaultSoundCard "InfoStoreAdd SoundCard '$0'"
606 + I SavePreferences DefaultSoundDevice "InfoStoreAdd SoundDevice '$1'"
607 + I PipeRead `echo InfoStoreAdd SoundCard $0`
608 + I PipeRead `echo InfoStoreAdd SoundDevice \\'$1\\'`
609 + I Schedule 1000 Include components/functions/Mixer
610
611 #
612 # Window focus policy
613 #
614 DestroyMenu /Preferences/FocusPolicy
615 AddToMenu /Preferences/FocusPolicy
616 + '%22x22/fvwm-crystal/amiga.png%Amiga' ActivateFocusPolicy-Amiga
617 #+ '%22x22/fvwm-crystal/Boing.png%Amiga' ActivateFocusPolicy-Amiga
618 + '%22x22/fvwm-crystal/fvwm-crystal.png%FVWM-Crystal' ActivateFocusPolicy-FVWM-Crystal
619 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.FVWM-Crystal with raise]' ActivateFocusPolicy-FVWM-Crystal-Raise
620 + '%22x22/fvwm-crystal/windows.png%MS Windows' ActivateFocusPolicy-MSWindows
621
622 DestroyFunc ActivateFocusPolicy-Amiga
623 AddToFunc ActivateFocusPolicy-Amiga
624 + I Include components/styles/FocusPolicy-Amiga
625 + I SavePreferences DefaultFocusPolicy "Include components/styles/FocusPolicy-Amiga"
626
627 DestroyFunc ActivateFocusPolicy-FVWM-Crystal
628 AddToFunc ActivateFocusPolicy-FVWM-Crystal
629 + I Include components/styles/FocusPolicy-FVWM-Crystal
630 + I SavePreferences DefaultFocusPolicy "Include components/styles/FocusPolicy-FVWM-Crystal"
631
632 DestroyFunc ActivateFocusPolicy-FVWM-Crystal-Raise
633 AddToFunc ActivateFocusPolicy-FVWM-Crystal-Raise
634 + I Include components/styles/FocusPolicy-FVWM-Crystal-Raise
635 + I SavePreferences DefaultFocusPolicy "Include components/styles/FocusPolicy-FVWM-Crystal-Raise"
636
637 DestroyFunc ActivateFocusPolicy-MSWindows
638 AddToFunc ActivateFocusPolicy-MSWindows
639 + I Include components/styles/FocusPolicy-MSWindows
640 + I SavePreferences DefaultFocusPolicy "Include components/styles/FocusPolicy-MSWindows"
641
642 #
643 # Privileged terminals
644 #
645 DestroyMenu /Preferences/PrivilegedTerminals
646 AddToMenu /Preferences/PrivilegedTerminals
647 + '%22x22/fvwm-crystal/On.png%$[gt.On]' SetPrivilegedTerminals
648 + '%22x22/fvwm-crystal/Off.png%$[gt.Off]' UnsetPrivilegedTerminals
649
650 DestroyFunc SetPrivilegedTerminals
651 AddToFunc SetPrivilegedTerminals
652 + I SavePreferences PrivilegedTerminals "Style XTerm FPOverrideGrabFocus"
653 + I Schedule 333 AppendPreferences PrivilegedTerminals "Style URxvt FPOverrideGrabFocus"
654 + I Schedule 666 AppendPreferences PrivilegedTerminals "Style Eterm FPOverrideGrabFocus"
655 + I Schedule 1000 LoadPreferences PrivilegedTerminals
656
657 DestroyFunc UnsetPrivilegedTerminals
658 AddToFunc UnsetPrivilegedTerminals
659 + I SavePreferences PrivilegedTerminals "Style XTerm !FPOverrideGrabFocus"
660 + I Schedule 333 AppendPreferences PrivilegedTerminals "Style URxvt !FPOverrideGrabFocus"
661 + I Schedule 666 AppendPreferences PrivilegedTerminals "Style Eterm !FPOverrideGrabFocus"
662 + I Schedule 1000 LoadPreferences PrivilegedTerminals
663
664 #
665 # Application menu
666 #
667 DestroyFunc GenerateApplicationMenu
668 AddToFunc GenerateApplicationMenu
669 + I A fvwm-crystal.generate-menu $[FVWM_SYSTEMDIR] $[FVWM_USERDIR]
670 + I Test (Version > 2.6.5) Test (EnvMatch XDGMenu yes) A $[FVWM_SYSTEMDIR]/scripts/XDG-Menu
671
672 All (Menu-Restart-Dialog) Close
673 DestroyModuleConfig Menu-Restart-Dialog: *
674 *Menu-Restart-Dialog: Title "$[gt.Restart FVWM-Crystal]"
675 *Menu-Restart-Dialog: Text "$[gt.New menu entries will be used after next startup]"
676 *Menu-Restart-Dialog: Line center
677 *Menu-Restart-Dialog: Line center
678 *Menu-Restart-Dialog: Button quit " $[gt.Restart] " ^M
679 *Menu-Restart-Dialog: Command Restart
680 *Menu-Restart-Dialog: Button quit " $[gt.Not now] " ^[
681 *Menu-Restart-Dialog: Command Nop
682 *Menu-Restart-Dialog: Line center
683
684 DestroyFunc Pref-Warning
685 AddToFunc Pref-Warning
686 + I All (Pref-Warning-Dialog) Close
687 + I DestroyModuleConfig Pref-Warning-Dialog: *
688 + I *Pref-Warning-Dialog: Title "$[gt.Preference Warning]"
689 + I *Pref-Warning-Dialog: Text "$[gt.Please edit the following file to suit your need]"
690 + I *Pref-Warning-Dialog: Line center
691 + I *Pref-Warning-Dialog: Line center
692 + I *Pref-Warning-Dialog: Text "$[gt.and restart this tool:]"
693 + I *Pref-Warning-Dialog: Line center
694 + I *Pref-Warning-Dialog: Line center
695 + I *Pref-Warning-Dialog: Text "$[*]"
696 + I *Pref-Warning-Dialog: Line center
697 + I *Pref-Warning-Dialog: Line center
698 + I *Pref-Warning-Dialog: Button quit " $[gt.OK] " ^[
699 + I *Pref-Warning-Dialog: Command Nop
700 + I *Pref-Warning-Dialog: Line center
701 + I Module FvwmForm Pref-Warning-Dialog
702
703 #
704 # Silent operations
705 #
706 DestroyMenu /Preferences/SilentOps
707 AddToMenu /Preferences/SilentOps
708 + '%22x22/fvwm-crystal/On.png%$[gt.On]' SetSilentOps
709 + '%22x22/fvwm-crystal/Off.png%$[gt.Off]' UnsetSilentOps
710
711 DestroyFunc SetSilentOps
712 AddToFunc SetSilentOps
713 + I InfoStoreAdd SILENT '2>/dev/null'
714 + I SavePreferences SilentOps "InfoStoreAdd SILENT \'2>/dev/null\'"
715 + I Include components/functions/Exec-Accelerator
716
717 DestroyFunc UnsetSilentOps
718 AddToFunc UnsetSilentOps
719 + I InfoStoreAdd SILENT ' '
720 + I SavePreferences SilentOps "InfoStoreAdd SILENT \' \'"
721 + I Include components/functions/Exec-Accelerator
722
723 #
724 # Launch Preference Editors
725 #
726
727 # the file to edit must be in $[FVWM_USERDIR]/preferences
728 # see apps/DesktopIcons and scripts/FileEditors/*
729 DestroyFunc LaunchFileWithHelp
730 AddToFunc LaunchFileWithHelp
731 + I SetEnv FileEditWithHelp $0
732 + I Include scripts/FileEditors/$0-Help
733 + I Script scripts/FileEditors/FileEditWithHelp
734
735 DestroyFunc LaunchPrefEditors
736 AddToFunc LaunchPrefEditors
737 + I Script scripts/PrefVars/PrefVars
738 + I LaunchFileWithHelp ShowDirectories
739
740 #
741 # Wallpaper thumbnails size
742 #
743 # See Wallpaper
744 DestroyMenu /WPThumbSize
745 AddToMenu /WPThumbSize
746 + "42" WPThumbSize 42
747 + "96" WPThumbSize 96
748 + "120" WPThumbSize 120
749 + "180" WPThumbSize 180
750
751 DestroyFunc WPThumbSize
752 AddToFunc WPThumbSize
753 + I InfoStoreAdd WallpaperThumbSize $0
754 + I SavePreferences WallpaperThumbSize "InfoStoreAdd WallpaperThumbSize $0"
755 + I Schedule 300 Include components/functions/Wallpaper
756
757 # vim:ft=fvwm