author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 15 Jan 2009 21:45:51 +0200 | |
branch | fvwm |
changeset 369 | 2722227ca710 |
parent 346 | fe066283fced |
child 390 | 4944184fa48b |
permissions | -rw-r--r-- |
345 | 1 |
# -*- fvwm -*- |
2 |
||
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
3 |
##### |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
4 |
# Set Environment variables |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
5 |
########### |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
6 |
|
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
7 |
SetEnv fvwm_webbrowser /usr/bin/firefox |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
8 |
SetEnv fvwm_term /usr/bin/xterm |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
9 |
SetEnv fvwm_mail /usr/bin/icedove |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
10 |
SetEnv fvwm_media_player /usr/bin/vlc |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
11 |
SetEnv fvwm_video_player /usr/bin/vlc |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
12 |
|
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
13 |
# Tells how hard it should be to change the desktop viewport by moving the mouse over the edge of the |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
14 |
# screen and how hard it should be to move a window over the edge of the screen. |
341 | 15 |
EdgeResistance 250 10 |
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
16 |
# Percentage of a page to scroll when the cursor hits the edge of a page. |
341 | 17 |
EdgeScroll 100 100 |
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
18 |
# Width or height of the invisible window that fvwm creates on the edges of the screen that |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
19 |
# are used for the edge scrolling feature. |
341 | 20 |
ClickTime 750 |
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
21 |
EdgeThickness 1 |
341 | 22 |
|
23 |
DeskTopSize 3x3 |
|
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
24 |
|
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
25 |
DesktopName 0 Main |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
26 |
DesktopName 1 Work |
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
27 |
|
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
28 |
MenuStyle * fvwm, Foreground black, Background grey60, Greyed grey40 |
341 | 29 |
MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* |
30 |
||
31 |
ColormapFocus FollowsMouse |
|
32 |
||
33 |
# default Styles: |
|
34 |
# make sure these fonts exist on your system: |
|
35 |
Style * Font -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* |
|
36 |
Style * IconFont -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* |
|
37 |
Style * HilightFore black, HilightBack palevioletred |
|
38 |
Style * BorderWidth 7, HandleWidth 7 |
|
39 |
Style * Icon unknown1.xpm, Color lightgrey/dimgrey |
|
40 |
Style * MWMFunctions, MWMDecor, HintOverride |
|
41 |
Style * DecorateTransient, NoPPosition |
|
42 |
Style * IconBox 0 -10 -280 -1 |
|
43 |
Style * FocusFollowsMouse |
|
44 |
Style * TileCascadePlacement |
|
45 |
Style * EWMHUseStackingOrderHints |
|
46 |
||
47 |
# Styles for various Fvwm modules: |
|
48 |
Style Fvwm* NoTitle, Sticky, WindowListSkip |
|
49 |
Style Fvwm* BorderWidth 2, CirculateSkipIcon, CirculateSkip |
|
50 |
Style FvwmPager StaysOnTop |
|
51 |
Style FvwmBanner StaysOnTop |
|
52 |
Style FvwmButtons Icon toolbox.xpm, ClickToFocus |
|
53 |
||
54 |
# Styles for your common terminal emulator programs. |
|
55 |
# xterms and rxvts in a separate icon box: |
|
56 |
Style XTerm Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140 |
|
57 |
Style rxvt Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140 |
|
58 |
Style rxvt MWMBorder, MWMButtons |
|
59 |
||
60 |
# Styles for various common programs: |
|
61 |
Style *lock NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus |
|
62 |
Style xbiff NoTitle, Sticky, WindowListSkip, ClickToFocus |
|
63 |
Style xcalc Icon xcalc.xpm, NoButton 2,ClickToFocus |
|
64 |
Style xmh Icon mail1.xpm, NoIconTitle,StickyIcon |
|
65 |
Style xmh NoButton 2 |
|
66 |
Style xman Icon xman.xpm, ClickToFocus |
|
67 |
Style xmag Icon mag_glass.xpm, ClickToFocus |
|
68 |
Style xgraph Icon graphs.xpm, ClickToFocus |
|
69 |
Style xmosaic Color Green/Yellow, ClickToFocus |
|
70 |
Style OpenOffice* NoFuncHint |
|
71 |
||
72 |
||
73 |
# some simple default key bindings: |
|
74 |
Key Next A SCM Next [*] Focus |
|
75 |
Key Prior A SCM Prev [*] Focus |
|
76 |
||
77 |
# some simple default mouse bindings: |
|
78 |
# for the root window: |
|
79 |
Mouse 1 R A Menu MenuFvwmRoot Nop |
|
80 |
Mouse 2 R A Menu MenuFvwmWindowOps Nop |
|
81 |
Mouse 3 R A WindowList |
|
82 |
||
83 |
# for the title bar buttons: |
|
84 |
Mouse 0 1 A Menu MenuFvwmWindowOps2 Close |
|
85 |
Mouse 0 2 A FuncFvwmMaximize |
|
86 |
Mouse 0 4 A Iconify |
|
87 |
||
88 |
# for other parts of the window/borders/icons: |
|
89 |
Mouse 1 F A FuncFvwmResizeOrRaise |
|
90 |
Mouse 1 TS A FuncFvwmMoveOrRaise |
|
91 |
Mouse 1 I A FuncFvwmMoveOrIconify |
|
92 |
Mouse 2 I A Iconify |
|
93 |
Mouse 2 FST A Menu MenuFvwmWindowOps2 Nop |
|
94 |
Mouse 3 TSIF A RaiseLower |
|
95 |
||
96 |
######################## Initialization Functions ############################ |
|
97 |
AddToFunc StartFunction |
|
98 |
+ I Module FvwmAnimate |
|
344 | 99 |
# Don't splash Bunner. |
100 |
# + I Module FvwmBanner |
|
341 | 101 |
+ I Module FvwmButtons |
102 |
||
103 |
AddToFunc InitFunction |
|
104 |
+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70 |
|
105 |
||
106 |
# For some SM-s (like gnome-session) there is an internal background setter. |
|
107 |
AddToFunc SessionInitFunction |
|
108 |
+ I Nop |
|
109 |
||
110 |
######################## Menus ################### |
|
111 |
Read /etc/X11/fvwm/menudefs.hook Quiet |
|
112 |
Read menudefs.hook Quiet |
|
113 |
||
114 |
DestroyMenu MenuFvwmRoot |
|
115 |
AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title |
|
345 | 116 |
+ "&1. XTerm" Exec exec xterm |
117 |
+ "&2. Emacs" Exec exec emacs |
|
341 | 118 |
+ "" Nop |
119 |
+ "&D. Debian Menu" Popup "/Debian" |
|
120 |
+ "" Nop |
|
121 |
+ "&R. $[gt.Remote Logins]" Popup MenuFvwmLogins |
|
122 |
+ "" Nop |
|
123 |
+ "&U. $[gt.Utilities]" Popup MenuFvwmUtilities |
|
124 |
+ "" Nop |
|
125 |
+ "&M. $[gt.Fvwm Modules]" Popup MenuFvwmModules |
|
126 |
+ "&W. $[gt.Fvwm Window Ops]" Popup MenuFvwmWindowOps |
|
127 |
+ "&S. $[gt.Fvwm Config Ops]" Popup MenuFvwmConfig |
|
128 |
+ "" Nop |
|
129 |
+ "&F. $[gt.Refresh Screen]" Refresh |
|
130 |
+ "&C. $[gt.Recapture Screen]" Recapture |
|
131 |
+ "" Nop |
|
132 |
+ "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify |
|
133 |
||
134 |
DestroyMenu MenuFvwmUtilities |
|
135 |
AddToMenu MenuFvwmUtilities "$[gt.Utilities]" Title |
|
136 |
+ "&T. Top" Exec exec xterm -T Top -n Top -e top |
|
137 |
+ "&C. Calculator" Exec exec xcalc |
|
138 |
+ "&M. Xman" Exec exec xman |
|
139 |
+ "&G. Xmag" Exec exec xmag |
|
140 |
+ "&R. Editres" Exec exec editres |
|
141 |
+ "" Nop |
|
142 |
+ "&E. XEmacs" Exec exec xemacs |
|
143 |
+ "&A. Xmh Mail" FuncFvwmMailXmh xmh "-font fixed" |
|
144 |
+ "" Nop |
|
145 |
+ "&L. XLock" Exec exec xlock -mode random |
|
146 |
+ "" Nop |
|
147 |
+ "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults |
|
148 |
||
149 |
DestroyMenu MenuFvwmConfig |
|
150 |
AddToMenu MenuFvwmConfig "$[gt.Fvwm Config Ops]" Title |
|
151 |
+ "&S. $[gt.Sloppy Focus]" FuncFvwmFocusPolicyChange SloppyFocus |
|
152 |
+ "&C. $[gt.Click To Focus]" FuncFvwmFocusPolicyChange ClickToFocus |
|
153 |
+ "&F. $[gt.Focus Follows Mouse]" FuncFvwmFocusPolicyChange FocusFollowsMouse |
|
154 |
+ "" Nop |
|
155 |
+ "&1. $[gt.Colormap Follows Mouse]" ColormapFocus FollowsMouse |
|
156 |
+ "&2. $[gt.Colormap Follows Focus]" ColormapFocus FollowsFocus |
|
157 |
+ "" Nop |
|
158 |
+ "&3. $[gt.Full Paging ON]" EdgeScroll 100 100 |
|
159 |
+ "&4. $[gt.All Paging OFF]" EdgeScroll 0 0 |
|
160 |
+ "&5. $[gt.Horizontal Paging Only]" EdgeScroll 100 0 |
|
161 |
+ "&6. $[gt.Vertical Paging Only]" EdgeScroll 0 100 |
|
162 |
+ "&7. $[gt.Partial Paging]" EdgeScroll 50 50 |
|
163 |
+ "&8. $[gt.Full Paging && Edge Wrap]" EdgeScroll 100000 100000 |
|
164 |
||
165 |
# The window Ops menus exhibit a different HotKey style. |
|
166 |
# There are 2 versions of the WindowOps Menu, meant to be bound to different |
|
167 |
# things. Here is the "common" part: |
|
168 |
DestroyFunc FuncFvwmWindowCommon |
|
169 |
AddToFunc FuncFvwmWindowCommon |
|
170 |
+ I AddToMenu $0 "$[gt.&Move]" Move |
|
171 |
+ I AddToMenu $0 "$[gt.&Resize]" Resize |
|
172 |
+ I AddToMenu $0 "$[gt.R&aise]" Raise |
|
173 |
+ I AddToMenu $0 "$[gt.&Lower]" Lower |
|
174 |
+ I AddToMenu $0 "$[gt.(De)&Iconify]" Iconify |
|
175 |
+ I AddToMenu $0 "$[gt.(Un)&Stick]" Stick |
|
176 |
+ I AddToMenu $0 "$[gt.(Un)Ma&ximize]" Maximize |
|
177 |
+ I AddToMenu $0 "" Nop |
|
178 |
+ I AddToMenu $0 "$[gt.&Delete]" Delete |
|
179 |
+ I AddToMenu $0 "$[gt.&Close]" Close |
|
180 |
+ I AddToMenu $0 "$[gt.Destroy]" Destroy |
|
181 |
+ I AddToMenu $0 "" Nop |
|
182 |
||
183 |
# First windowops menu, bound to: |
|
184 |
# mouse 2 on root |
|
185 |
# Root menu |
|
186 |
DestroyMenu MenuFvwmWindowOps |
|
187 |
AddToMenu MenuFvwmWindowOps "$[gt.Window Ops]" Title |
|
188 |
FuncFvwmWindowCommon MenuFvwmWindowOps |
|
189 |
+ "$[gt.Re&fresh Window]" RefreshWindow |
|
190 |
||
191 |
# Second windowops menu, bound to: |
|
192 |
# any mouse on titlebar button 1 |
|
193 |
# mouse 2 on frame, side or titlebar |
|
194 |
DestroyMenu MenuFvwmWindowOps2 |
|
195 |
AddToMenu MenuFvwmWindowOps2 |
|
196 |
FuncFvwmWindowCommon MenuFvwmWindowOps2 |
|
197 |
+ Scroll&Bar Module FvwmScroll 2 2 |
|
198 |
+ "&$[gt.Print]" FuncFvwmPrint |
|
199 |
+ "$[gt.Print Re&verse]" FuncFvwmPrintReverse |
|
200 |
||
201 |
# 3 different ways to log on, take your pick: |
|
202 |
DestroyFunc FuncFvwmRloginXterm |
|
203 |
AddToFunc FuncFvwmRloginXterm \ |
|
204 |
I Exec xterm -name $0 -title "$USER @ $0" -e rlogin $0 |
|
205 |
DestroyFunc FuncFvwmRloginRxvt |
|
206 |
AddToFunc FuncFvwmRloginRxvt \ |
|
207 |
I Exec rxvt -name $0 -n $0 -title $USER@$0 -e rlogin $0 |
|
208 |
DestroyFunc FuncFvwmRloginSshRxvt |
|
209 |
AddToFunc FuncFvwmRloginSshRxvt \ |
|
210 |
I Exec Exec ssh $0 rxvt -display $HOSTDISPLAY |
|
211 |
||
212 |
# be sure to fill these in with your correct machine names: |
|
213 |
DestroyMenu MenuFvwmLogins |
|
214 |
AddToMenu MenuFvwmLogins |
|
215 |
+ &dopey FuncFvwmRloginXterm dopey |
|
216 |
+ &snoopy FuncFvwmRloginXterm snoopy |
|
217 |
+ s&ignal Exec rxterm signal |
|
218 |
||
219 |
DestroyMenu MenuFvwmModules |
|
220 |
AddToMenu MenuFvwmModules "$[gt.Fvwm Modules]" Title |
|
221 |
+ "&1. $[gt.Control Animation]" Popup MenuFvwmAnimate |
|
222 |
+ "&B. Button-Bar" Module FvwmButtons |
|
223 |
+ "&O. IconBox" FuncFvwmConfigureIconBox |
|
224 |
+ "&F. Forms" Popup MenuFvwmForms |
|
225 |
+ "&I. Identify" Module FvwmIdent |
|
226 |
+ "&M. IconMan" Module FvwmIconMan |
|
227 |
+ "&N. Banner" Module FvwmBanner |
|
228 |
+ "&C. Console" Module FvwmConsole |
|
229 |
+ "&P. Pager" Module FvwmPager 0 0 |
|
230 |
+ "&2. Pager (2 $[gt.desks])" Module FvwmPager 0 1 |
|
231 |
+ "&R. Backer" Module FvwmBacker |
|
232 |
+ "&S. ScrollBar" Module FvwmScroll 50 50 |
|
233 |
+ "&T. FvwmTaskBar" Module FvwmTaskBar |
|
234 |
+ "&U. AutoRaise" Module FvwmAuto 200 Raise Nop |
|
235 |
+ "&W. WinList" Module FvwmWinList |
|
236 |
+ "&X. $[gt.Stop Module Menu]" Popup MenuFvwmStopModule |
|
237 |
||
238 |
DestroyMenu MenuFvwmStopModule |
|
239 |
AddToMenu MenuFvwmStopModule "$[gt.Stop Fvwm Modules]" Title |
|
240 |
+ "&B. $[gt.Stop] Button-Bar" KillModule FvwmButtons |
|
241 |
+ "&O. $[gt.Stop] IconBox" KillModule FvwmIconBox |
|
242 |
+ "&M. $[gt.Stop] IconMan" KillModule FvwmIconMan |
|
243 |
+ "&P. $[gt.Stop] Pager" KillModule FvwmPager |
|
244 |
+ "&R. $[gt.Stop] Backer" KillModule FvwmBacker |
|
245 |
+ "&S. $[gt.Stop] ScrollBar" KillModule FvwmScroll |
|
246 |
+ "&T. $[gt.Stop] FvwmTaskBar" KillModule FvwmTaskBar |
|
247 |
+ "&U. $[gt.Stop] AutoRaise" KillModule FvwmAuto |
|
248 |
+ "&W. $[gt.Stop] WinList" KillModule FvwmWinList |
|
249 |
||
250 |
DestroyMenu MenuFvwmForms |
|
251 |
AddToMenu MenuFvwmForms |
|
252 |
+ "&C. Capture" Module FvwmForm FvwmForm-Capture |
|
253 |
+ "&D. Form Defaults" Module FvwmForm FvwmForm-Form |
|
254 |
+ "&R. Rlogin" Module FvwmForm FvwmForm-Rlogin |
|
255 |
+ "&P. RootCursor" Module FvwmForm FvwmForm-RootCursor |
|
256 |
+ "&S. Setup" Module FvwmForm FvwmForm-Setup |
|
257 |
+ "&T. Talk Form" Module FvwmForm FvwmForm-Talk |
|
258 |
+ "&Q. QuitVerify" Module FvwmForm FvwmForm-QuitVerify |
|
259 |
||
260 |
# Configure and start using an iconbox on the fly |
|
261 |
DestroyFunc FuncFvwmConfigureIconBox |
|
262 |
AddToFunc FuncFvwmConfigureIconBox |
|
263 |
+ I Module FvwmIconBox |
|
264 |
+ I Style * NoIcon |
|
265 |
||
266 |
DestroyMenu MenuFvwmQuitVerify |
|
267 |
AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title |
|
268 |
+ "&Q. $[gt.Yes, Really Quit]" Quit |
|
269 |
+ "" Nop |
|
270 |
+ "&R. $[gt.Restart]" Restart |
|
271 |
+ "" Nop |
|
272 |
+ "&T. $[gt.Start] twm" Restart twm |
|
273 |
+ "&C. $[gt.Start] ctwm" Restart ctwm |
|
274 |
+ "&2. $[gt.Start] tvtwm" Restart tvtwm |
|
275 |
+ "&V. $[gt.Start] vtwm" Restart vtwm |
|
276 |
+ "&M. $[gt.Start] mwm" Restart mwm |
|
277 |
+ "&O. $[gt.Start] olwm" Restart /usr/openwin/bin/olwm |
|
278 |
+ "" Nop |
|
279 |
+ "&X. $[gt.Just an Xterm]" Restart xterm -n '"X Console"' -T '"X Console"' |
|
280 |
+ "" Nop |
|
281 |
+ "&N. $[gt.No, Don't Quit]" Nop |
|
282 |
||
283 |
######################## Sample Functions ########################## |
|
284 |
||
285 |
DestroyFunc FuncFvwmMailXmh |
|
286 |
AddToFunc FuncFvwmMailXmh |
|
287 |
+ I Next [$0] Iconify false |
|
288 |
+ I Next [$0] Focus |
|
289 |
+ I None [$0] Exec $0 $1 |
|
290 |
||
291 |
DestroyFunc FuncFvwmMoveOrRaise |
|
292 |
AddToFunc FuncFvwmMoveOrRaise |
|
293 |
+ I Raise |
|
294 |
+ M Move |
|
295 |
+ D Lower |
|
296 |
||
297 |
DestroyFunc FuncFvwmMaximize |
|
298 |
AddToFunc FuncFvwmMaximize |
|
299 |
+ M Maximize 0 100 |
|
300 |
+ H Maximize 0 100 |
|
301 |
+ C Maximize 0 80 |
|
302 |
+ D Maximize 100 100 |
|
303 |
||
304 |
DestroyFunc FuncFvwmMoveOrIconify |
|
305 |
AddToFunc FuncFvwmMoveOrIconify |
|
306 |
+ I Raise |
|
307 |
+ M Move |
|
308 |
+ D Iconify |
|
309 |
||
310 |
DestroyFunc FuncFvwmResizeOrRaise |
|
311 |
AddToFunc FuncFvwmResizeOrRaise |
|
312 |
+ I Raise |
|
313 |
+ M Resize |
|
314 |
+ D Lower |
|
315 |
||
316 |
DestroyFunc FuncFvwmPrint |
|
317 |
AddToFunc FuncFvwmPrint |
|
318 |
+ I Raise |
|
319 |
+ I Exec xdpr -id $w |
|
320 |
||
321 |
DestroyFunc FuncFvwmPrintReverse |
|
322 |
AddToFunc FuncFvwmPrintReverse |
|
323 |
+ I Raise |
|
324 |
+ I Exec xdpr 1/2 -h -rv -id $w |
|
325 |
||
326 |
DestroyFunc FuncFvwmFocusPolicyChange |
|
327 |
AddToFunc FuncFvwmFocusPolicyChange |
|
328 |
+ I Style * $0 |
|
329 |
+ I Recapture |
|
330 |
||
331 |
# Read config files for modules: |
|
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
332 |
# read ConfigFvwmBacker |
341 | 333 |
read ConfigFvwmButtons |
334 |
read ConfigFvwmIconBox |
|
335 |
read ConfigFvwmIconMan |
|
336 |
read ConfigFvwmIdent |
|
337 |
read ConfigFvwmPager |
|
338 |
read ConfigFvwmScroll |
|
339 |
read ConfigFvwmTaskBar |
|
340 |
read ConfigFvwmWinList |
|
341 |
||
342 |
# Local variables: |
|
343 |
# comment-start: "# " |
|
342
e071a639eaf7
Added media players list, some docs.
gavenkoa@gavenko.bifit.int
parents:
341
diff
changeset
|
344 |
# End: |