forked from liuxueyang/fvwm-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
394 lines (323 loc) · 12.2 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# Author : abel-abel
# Modified by: Lambda
# Most of the configuration are copied from:
# http://zensites.net/fvwm/guide/
# I only changed/added/remove some configurations.
# ==================================================
# $HOME/.fvwm/config
SetEnv img_home $[HOME]/Pictures
SetEnv fvwm_home $[HOME]/.fvwm
SetEnv fvwm_img $[fvwm_home]/images
SetEnv fvwm_icon $[fvwm_img]/icons
SetEnv fvwm_wallpaper $[fvwm_img]/wallpaper
SetEnv fvwm_video_player /usr/bin/vlc
SetEnv fvwm_editor /usr/bin/vim
SetEnv fvwm_ss /usr/bin/ss-qt5
ImagePath $[fvwm_icon]:$[fvwm_icon];.png:$[fvwm_wallpaper]:+
DesktopSize 3x3
DesktopName 0 Main
DesktopName 1 Code
DesktopName 2 Aux
EdgeScroll 50 50
EdgeResistance -1
EdgeThickness 5
ClickTime 350
MoveThreshold 3
Style * SloppyFocus, MouseFocusClickRaises
EwmhBaseStruts 62 80 0 0
IgnoreModifiers L25
# IgnoreModifiers L2
SnapGrid 10 10
# For windows who steal focus, ehmehmskypeehmehm
DestroyFunc EWMHActivateWindowFunc
DestroyFunc UrgencyFunc
# AddToFunc UrgencyFunc
# + I ThisWindow (!"Skype") Break
# + I Iconify off
# + I FlipFocus
# + I Raise
# + I WarpToWindow 5p 5p
Style "Skype" !FPFocusByProgram
# DestroyFunc Fvwm-hello
# AddToFunc Fvwm-hello
# + I (immediately)
# + C (click)
# + D (double click)
# + M (move)
# + H (hold)
DestroyFunc FvwmTerm
AddToFunc FvwmTerm
+ I Exec exec mate-terminal
DestroyFunc FvwmBrowser
AddToFunc FvwmBrowser
+ I Exec exec google-chrome-stable
DestroyFunc FvwmEditor
AddToFunc FvwmEditor
+ I Exec exec $[fvwm_editor]
DestroyFunc FvwmVideoPlayer
AddToFunc FvwmVideoPlayer
+ I Exec exec $[fvwm_video_player]
DestroyFunc FvwmGimp
AddToFunc FvwmGimp
+ I Exec exec /usr/bin/gimp
DestroyFunc FvwmLaunch
AddToFunc FvwmLaunch
+ I Exec exec xfce4-appfinder
DestroyFunc FvwmFileManager
AddToFunc FvwmFileManager
+ I Exec exec thunar
DestroyFunc FvwmPHPStorm
AddToFunc FvwmPHPStorm
+ I Exec /home/silvio/Scrivania/phpstorm.sh
DestroyFunc FvwmEmacs
AddToFunc FvwmEmacs
+ I Exec emacs27
DestroyFunc FvwmRestartFeh
AddToFunc FvwmRestartFeh
+ I Exec pkill feh
+ I Exec feh --bg-scale $[fvwm_wallpaper]/superabstraction_tara.jpg
DestroyFunc FvwmThunderbird
AddToFunc FvwmThunderbird
+ I Exec exec thunderbird
DestroyFunc FvwmIconifyOrShade
AddToFunc FvwmIconifyOrShade
+ C Iconify
+ D WindowShade
DestroyFunc FvwmIconify
AddToFunc FvwmIconify
+ C Iconify
DestroyFunc FvwmMove
AddToFunc FvwmMove
+ M Move
DestroyFunc FvwmResize
AddToFunc FvwmResize
+ M Resize
DestroyFunc FvwmScreenshot
AddToFunc FvwmScreenshot
+ I Exec xfce4-screenshooter
Style "gkrellm" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, StaysOnTop, FixedPosition, FixedSize, !Iconifiable
DestroyFunc InitFunction
AddToFunc InitFunction
+ I FvwmRestartFeh
+ I Exec exec nm-applet
+ I Exec exec xfce4-clipman
+ I Exec exec xset led on
# + I FvwmBrowser
# + I Exec exec gkrellm
# + I Exec exec xscreensaver
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmPager 0 2
+ I Module FvwmButtons MyButtons
# DestroyFunc RestartFunction
# AddToFunc RestartFunction
# + I Module FvwmTaskBar
DestroyFunc FvwmWindowShade
AddToFunc FvwmWindowShade
+ I WindowShade $0
DestroyFunc FvwmMaximize
AddToFunc FvwmMaximize
+ I Maximize $0 $1
DestroyFunc FvwmDeleteOrDestroy
AddToFunc FvwmDeleteOrDestroy
+ C Delete
+ D Destroy
# Template
# Key X Context Modifier Action
# Modifier is any combination of the following:
# (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing, or 1-5, representing the X Modifiers mod1-mod5 (man xmodmap).
Silent Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
Silent Key F1 A C GotoDesk 0 0
Silent Key F2 A C GotoDesk 0 1
Silent Key F3 A C GotoDesk 0 2
Silent Key F4 A C GotoDesk 0 3
Silent Key Super_R A A FvwmTerm
Key F4 A M Close
Key F11 A C FvwmMaximize 100 100
Key F1 A CS MoveToDesk 0 0
Key F2 A CS MoveToDesk 0 1
Key F3 A CS MoveToDesk 0 2
Key 1 A CS GotoPage 0 0
Key 2 A CS GotoPage 1 0
Key 3 A CS GotoPage 2 0
Key 4 A CS GotoPage 0 1
Key 5 A CS GotoPage 1 1
Key 6 A CS GotoPage 2 1
Key 7 A CS GotoPage 0 2
Key 8 A CS GotoPage 1 2
Key 9 A CS GotoPage 2 2
# Mouse 3 R A Menu FvwmWindowOpsMenu
Mouse 4 T A FvwmWindowShade True
Mouse 5 T A FvwmWindowShade False
Mouse 3 I A FvwmIconify
Mouse 3 T A FvwmIconify
Mouse 3 W C FvwmMove
Mouse 3 W S FvwmResize
Mouse 1 R A Menu FvwmRootMenu
Mouse 3 R A Menu FvwmOpsMenu
Mouse 1 5 A FvwmMaximize 100 100
Mouse 2 5 A FvwmMaximize 0 100
Mouse 3 5 A FvwmMaximize 100 0
Mouse 1 3 A FvwmIconifyOrShade
Mouse 1 1 A FvwmDeleteOrDestroy
# 弃用、使用键盘控制
# Mouse 5 A CM Scroll 0 100
# Mouse 4 A CM Scroll 100 0
# 产生拖动视角的效果
Mouse 1 A CM Scroll reverse
# Colorset 6 fg #343434, bg #ebebeb # title
# Colorset 3 fg #400c04, bg #d16952 # red
# Colorset 4 fg #ad8529, bg #e5bf45 # yellow
# Colorset 5 fg #2a520d, bg #76c24c # green
Colorset 3 fg #101060, bg #e6e7d7 # fg: darkblue, bg: milk white
Colorset 4 fg Black, bg #a6a797 # fg: black, bg: gray
Colorset 5 fg White, bg Black
DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle LeftJustified Height 18
+ BorderStyle Simple -- Flat
# + BorderStyle Simple -- NoInset Flat
+ ButtonStyle All -- UseTitleStyle
+ TitleStyle -- Flat
+ ButtonStyle 1 ActiveUp Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 ActiveDown Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 3 ActiveUp Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 ActiveDown Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 5 ActiveUp Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 ActiveDown Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
DestroyDecor UkkostaDecor
AddToDecor UkkostaDecor
+ TitleStyle LeftJustified Height 24
+ ButtonStyle 1 \
ActiveUp (Pixmap $[fvwm_img]/button/close-activeup.png -- Flat) \
ActiveDown (Pixmap $[fvwm_img]/button/close-activedown.png -- Flat) \
Inactive (Pixmap $[fvwm_img]/button/inactive.png -- Flat)
+ ButtonStyle 3 \
ActiveUp (Pixmap $[fvwm_img]/button/iconify-activeup.png -- Flat) \
ActiveDown (Pixmap $[fvwm_img]/button/iconify-activedown.png -- Flat) \
Inactive (Pixmap $[fvwm_img]/button/inactive.png -- Flat)
+ ButtonStyle 5 \
ActiveUp (Pixmap $[fvwm_img]/button/maximize-activeup.png -- Flat) \
ActiveDown (Pixmap $[fvwm_img]/button/maximize-activedown.png -- Flat) \
Inactive (Pixmap $[fvwm_img]/button/inactive.png -- Flat)
+ ButtonStyle 1 - Clear
+ ButtonStyle 3 - Clear MwmDecorMin
+ ButtonStyle 5 - Clear MwmDecorMax
+ TitleStyle AllActive MultiPixmap \
Main AdjustedPixmap $[fvwm_img]/decor/title-main-active.xpm, \
LeftEnd AdjustedPixmap $[fvwm_img]/decor/title-leftend-active.xpm, \
RightEnd AdjustedPixmap $[fvwm_img]/decor/title-rightend-active.xpm, \
UnderText AdjustedPixmap $[fvwm_img]/decor/title-undertext-active.xpm, \
LeftOfText AdjustedPixmap $[fvwm_img]/decor/title-leftoftext-active.xpm, \
RightOfext AdjustedPixmap $[fvwm_img]/decor/title-rightoftext-active.xpm
+ TitleStyle AllInactive MultiPixmap \
Main AdjustedPixmap $[fvwm_img]/decor/title-main-inactive.xpm, \
LeftEnd AdjustedPixmap $[fvwm_img]/decor/title-leftend-inactive.xpm, \
RightEnd AdjustedPixmap $[fvwm_img]/decor/title-rightend-inactive.xpm, \
UnderText AdjustedPixmap $[fvwm_img]/decor/title-undertext-inactive.xpm, \
LeftOfText AdjustedPixmap $[fvwm_img]/decor/title-leftoftext-inactive.xpm, \
RightOfext AdjustedPixmap $[fvwm_img]/decor/title-rightoftext-inactive.xpm
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ ButtonStyle All -- UseTitleStyle
Style "*" UseDecor UkkostaDecor
Style "*" Font "xft:Sans:Bold:size=12:minspace=False:antialias=True"
Style "*" BorderWidth 1 HandleWidth 1
Style "*" MWMBorder, FirmBorder
Style "*" Colorset 4
Style "*" HilightColorset 3
Style "*" BorderColorset 4
Style "*" HilightBorderColorset 3
# Colorset 7 fg Black, bg #e6e7d7, sh Black, hi #202070
Colorset 7 RootTransparent, fg Black, bg average, sh Black, \
hi #202070, Tint White 60, bgTint White 60
Colorset 8 fg DarkRed, bg #e6e7d7, sh Black, hi #202070
MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
MenuStyle * PopupOffset -5 100, TitleWarpOff
MenuStyle * TitleUnderlines2, SeparatorsLong, TrianglesSolid
MenuStyle * AnimationOff, AutomaticHotkeysOff
MenuStyle * BorderWidth 2
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * ItemFormat "%|%5.5i%1.3l%2.3>%|"
MenuStyle * VerticalItemSpacing 1 1, VerticalTitleSpacing 2 2
MenuStyle * MenuColorset 7
MenuStyle * ActiveFore, Hilight3DOff
MenuStyle * ActiveColorset 8
MenuStyle * Font "Shadow=2:xft:Sans:Bold:size=13:antialias=True"
PipeRead fvwm-menu-xlock
PipeRead fvwm-menu-desktop --enable-mini-icons --desktop kde
DestroyMenu FvwmRootMenu
AddToMenu FvwmRootMenu ":-)" Title
+ "Run%menu/find.svg%" FvwmLaunch
+ "Applications%menu/applications.svg%" Popup FvwmProgramsMenu
+ "Lock%menu/lock.png%" Popup XLockMenu
+ "FVWM Console%menu/terminal.png%" Module FvwmConsole
+ "XDGMenu" Popup XDGMenu
+ "" Nop
+ "Restart Fvwm%menu/restart.png%" Restart
+ "Restart Feh%menu/restart.png%" FvwmRestartFeh
+ "Quit Fvwm%menu/quit.png%" Quit
DestroyMenu FvwmProgramsMenu
AddToMenu FvwmProgramsMenu "=w=" Title
+ "Terminal%menu/terminal.png%" FvwmTerm
+ "File%menu/thunar.png%" FvwmFileManager
+ "Browser%menu/chrome.png%" FvwmBrowser
+ "IDE%menu/emacs.png%" FvwmEmacs
+ "IDE%menu/phpstorm.png%" FvwmPHPStorm
+ "Mail%menu/thunderbird.png%" FvwmThunderbird
DestroyMenu FvwmOpsMenu
AddToMenu FvwmOpsMenu "^o^" Title
+ "(Un)Stick%menu/window-stick.xpm%" Stick
+ "Identify%menu/window-identify.xpm%" Module FvwmIdent
+ "%menu/display.xpm%Screenshot" FvwmScreenshot
# Colorset 9 fg rgb:00/00/00, hi rgb:00/00/00, sh rgb:00/00/00, bg rgb:e9/e9/d9
Colorset 9 RootTransparent, fg Black, bg average, sh Black, \
hi #202070, Tint White 30, bgTint White 60
Colorset 10 fg rgb:00/00/00, hi rgb:dd/00/00, sh rgb:dd/00/00, bg rgb:fb/fc/ec
DestroyModuleConfig FvwmIdent: *
*FvwmIdent: Colorset 9
*FvwmIdent: Font "xft:Sans:Bold:size=12:antialias=True"
DestroyModuleConfig FvwmScript:*
*FvwmScript: DefaultColorset 9
Style "FvwmPager" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, FixedPosition, FixedSize, !Iconifiable, StaysOnTop
DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 80x280-0+0
*FvwmPager: Colorset * 9
*FvwmPager: HilightColorset * 10
*FvwmPager: BalloonColorset * 9
*FvwmPager: WindowColorsets 9 10
*FvwmPager: Font "xft:Sans:Bold:pixelsize=12:minspace=True:antialias=True"
*FvwmPager: Balloons All
*FvwmPager: BalloonFont "xft:Sans:Bold:pixelsize=12:minspace=True:antialias=True"
*FvwmPager: BallonYOffset +2
*FvwmPager: Window3dBorders
*FvwmPager: MiniIcons
*FvwmPager: UseSkipList
*FvwmPager: Rows 3
*FvwmPager: Columns 1
# *FvwmPager: DeskHilight Black
# *FvwmPager: Hilight Black
Style "MyButtons" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, StaysOnTop, FixedPosition, FixedSize, !Iconifiable
DestroyModuleConfig MyButtons: *
*MyButtons: Geometry 80x555-0+280
*MyButtons: Colorset 9
*MyButtons: Rows 20
*MyButtons: Columns 1
*MyButtons: Frame 0
*MyButtons: Font "Shadow=3:xft:Sans:Bold:pixelsize=14:minspace=True:antialias=True"
*MyButtons: (1x2, Frame 0, Icon 48x48/lambda.png, Action(Mouse 1) "FvwmLaunch")
*MyButtons: (1x2, Frame 0, Icon 48x48/terminal.png, Action(Mouse 1) "FvwmTerm")
*MyButtons: (1x2, Frame 0, Icon 48x48/thunar.png, Action(Mouse 1) "FvwmFileManager")
*MyButtons: (1x2, Frame 0, Icon 48x48/chrome.png, Action(Mosue 1) "FvwmBrowser")
*mybuttons: (1x2, frame 0, icon 48x48/phpstorm.png, action(mosue 1) "fvwmphpstorm")
*mybuttons: (1x2, frame 0, icon 48x48/emacs.png, action(mosue 1) "fvwmemacs")
*MyButtons: (1x2, Frame 0, Icon 48x48/thunderbird.png, Action(Mosue 1) "FvwmThunderbird")
*MyButtons: (1x2, Frame 0, Swallow (NoClose,UseOld) "stalonetray" "Exec stalonetray -v -t")
*MyButtons: (1x2, Frame 0, Swallow Clock "Module FvwmScript FvwmScript-Clock")
*MyButtons: (1x1, Frame 0, Swallow SysStats "Module FvwmScript FvwmScript-Sysstats")