-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig
402 lines (332 loc) · 12.3 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
394
395
396
397
398
399
400
401
402
# Date : Tue Nov 28 22:23:25 CST 2017
# Author : abel-abel
# 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_music_player /usr/bin/audacious
SetEnv fvwm_video_player /usr/bin/vlc
SetEnv fvwm_editor /usr/bin/emacs
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 Read
EdgeScroll 50 50
EdgeResistance -1
EdgeThickness 5
ClickTime 350
MoveThreshold 3
Style * SloppyFocus, MouseFocusClickRaises
EwmhBaseStruts 62 162 0 48
IgnoreModifiers L25
SnapGrid 20 20
# Function template (emacs yasnippet: fvwmapp)
# DestroyFunc Fvwm-hello
# AddToFunc Fvwm-hello
# + I (immediately)
# + C (click)
# + D (double click)
# + M (move)
# + H (hold)
DestroyFunc FvwmTerm
AddToFunc FvwmTerm
+ I Exec exec urxvt
DestroyFunc FvwmBrowser
AddToFunc FvwmBrowser
+ I Exec exec firefox
DestroyFunc FvwmEditor
AddToFunc FvwmEditor
+ I Exec exec $[fvwm_editor]
DestroyFunc FvwmSS
AddToFunc FvwmSS
+ I Exec exec fvwm_ss
DestroyFunc FvwmMusicPlayer
AddToFunc FvwmMusicPlayer
+ I Exec exec $[fvwm_music_player]
DestroyFunc FvwmVideoPlayer
AddToFunc FvwmVideoPlayer
+ I Exec exec $[fvwm_video_player]
DestroyFunc FvwmObs
AddToFunc FvwmObs
+ I Exec exec obs
DestroyFunc FvwmRecord
AddToFunc FvwmRecord
+ I Exec exec simplescreenrecorder
DestroyFunc FvwmScreenkey
AddToFunc FvwmScreenkey
+ I Exec exec screenkey
DestroyFunc FvwmChat
AddToFunc FvwmChat
+ I Exec exec /usr/bin/riot-desktop
DestroyFunc FvwmGimp
AddToFunc FvwmGimp
+ I Exec exec /usr/bin/gimp
DestroyFunc FvwmShutdown
AddToFunc FvwmShutdown
+ I Exec exec /sbin/shutdown -h now
DestroyFunc FvwmLaunch
AddToFunc FvwmLaunch
+ I Exec exec xfce4-appfinder
DestroyFunc FvwmFileManager
AddToFunc FvwmFileManager
+ I Exec exec thunar
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 FvwmWindowScreenshot
AddToFunc FvwmWindowScreenshot
+ I ThisWindow (!Shaded !Iconic Iconifiable) \
Exec import -window $[w.id] -quality 100 -silent \
"$[img_home]/screenshot/screenshot-`date +%F[%R]`.$[w.id].jpg"
DestroyFunc FvwmDesktopScreenshot
AddToFunc FvwmDesktopScreenshot
+ I Exec sleep $0; import -window root -quality 100 -silent \
"$[img_home]/screenshot/screenshot-`date +%F[%R]`.jpg"
DestroyFunc InitFunction
AddToFunc InitFunction
# will cause problems when move windows across pages
# + I Exec exec xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
+ I Exec exec fcitx
+ I Exec exec feh --bg-scale $[fvwm_wallpaper]/clannad.jpg
+ I FvwmTerm
+ I FvwmMusicPlayer
+ I FvwmBrowser
+ 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).
Key Super_L A S FvwmTerm
Key F1 A M Menu FvwmRootMenu
Key F2 A M FvwmLaunch
Key F4 A M Close
Key F11 A C FvwmMaximize 100 100
# 按键定义参见 /usr/include/X11/keysymdef.h
Key Down A MC GotoPage +0p +1p # 向下移动
Key Up A MC GotoPage +0p -1p # 向上移动
Key Right A MC GotoPage +1p +0p # 向右移动
Key Left A MC GotoPage -1p +0p # 向左移动
# Mouse
# 1 —— 左键
# 2 ——
# 3 —— 右键
# 4 —— 向上滚动
# 5 —— 向下滚动
# 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 M 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 -- 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 "*" Font "xft:WenQuanYi Zen Hei Mono:size=10"
Style "*" BorderWidth 1, HandleWidth 1
Style "*" MWMBorder, FirmBorder
Style "*" Colorset 4
Style "*" HilightColorset 3
Style "*" BorderColorset 5
Style "*" HilightBorderColorset 4
# 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
+ "Quit Fvwm%menu/quit.png%" Quit
DestroyMenu FvwmProgramsMenu
AddToMenu FvwmProgramsMenu "=w=" Title
+ "File%menu/Thunar.png%" FvwmFileManager
+ "Editor%menu/emacs.png%" FvwmEditor
+ "Browser%menu/firefox.png%" FvwmBrowser
+ "Audacious%menu/audacious.png%" FvwmMusicPlayer
+ "Live%menu/obs.png%" FvwmObs
+ "Gimp%menu/gimp.png%" FvwmGimp
+ "Riot%menu/riot.png%" FvwmChat
DestroyMenu FvwmOpsMenu
AddToMenu FvwmOpsMenu "^o^" Title
+ "(Un)Stick%menu/window-stick.xpm%" Stick
+ "Identify%menu/window-identify.xpm%" Module FvwmIdent
+ "%menu/window.xpm%Window Screenshot" Pick (CirculateHit) FvwmWindowScreenshot
+ "%menu/display.xpm%Screenshot" FvwmDesktopScreenshot 5
+ "Shutdown%menu/shutdown.svg%" FvwmShutdown
# 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"
Style "FvwmPager" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, FixedPosition, FixedSize, !Iconifiable
# StaysOnTop
DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 320x100+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 1
*FvwmPager: Columns 3
# *FvwmPager: DeskHilight Black
# *FvwmPager: Hilight Black
Style "MyButtons" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
DestroyModuleConfig MyButtons: *
*MyButtons: Geometry 420x60+320-0
*MyButtons: Colorset 9
*MyButtons: Rows 1
*MyButtons: Columns 38
*MyButtons: Frame 0
*MyButtons: Font "Shadow=3:xft:Sans:Bold:pixelsize=14:minspace=True:antialias=True"
*MyButtons: (2x1, Frame 0, Title(Center) "")
*MyButtons: (5x1, Frame 0, Icon 48x48/terminal.png, \
Action(Mouse 1) "FvwmTerm", \
Action(Mouse 3) "FvwmTerm")
*MyButtons: (5x1, Frame 0, Icon 48x48/audacious.png, \
Action(Mouse 1) "FvwmMusicPlayer")
*MyButtons: (5x1, Frame 0, Icon 48x48/emacs.png, \
Action(Mouse 1) "FvwmEditor")
*MyButtons: (5x1, Frame 0, Icon 48x48/gimp.png, \
Action(Mouse 1) "FvwmGimp")
*MyButtons: (5x1, Frame 0, Icon 48x48/firefox.png, \
Action(Mosue 1) "FvwmBrowser")
*MyButtons: (5x1, Frame 0, Icon 48x48/riot.png, \
Action(Mouse 1) "FvwmChat")
*MyButtons: (5x1, Frame 0, Icon 48x48/tux.png, \
Action(Mouse 1) "FvwmLaunch")
*MyButtons: (1x1, Frame 0)
Style "xclock" NoTitle, FixedPosition