-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
662 lines (581 loc) · 23.5 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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
#
# .----------------. .----------------. .----------------.
# | .--------------. || .--------------. || .--------------. |
# | | _____ | || | _________ | || | _________ | |
# | | |_ _| | || | |_ ___ | | || | |_ ___ | | |
# | | | | | || | | |_ \_| | || | | |_ \_| | |
# | | | | _ | || | | _| _ | || | | _| _ | |
# | | _| |__/ | | || | _| |___/ | | || | _| |___/ | | |
# | | |________| | || | |_________| | || | |_________| | |
# | | | || | | || | | |
# | '--------------' || '--------------' || '--------------' |
# '----------------' '----------------' '----------------'
#
# 1: Functions
# 2: Styles
# 3: Colorsets
# 4: Decor
# 5: Menus
# 6: Bindings
# 7: Modules
#
# Environment variables
InfoStoreAdd terminal alacritty
SetEnv fvwm_term /usr/bin/alacritty
SetEnv fvwm_wallpaper $[FVWM_USERDIR]/wallpapers
SetEnv fvwm_icon $[FVWM_USERDIR]/icons
# ______ ___ _____________________ _ ______
# / __/ / / / |/ / ___/_ __/ _/ __ \/ |/ / __/
# / _// /_/ / / /__ / / _/ // /_/ / /\ \
# /_/ \____/_/|_/\___/ /_/ /___/\____/_/|_/___/
#
# + I [Action to do Immediately]
# + C [Action to do on Mouse Click]
# + D [Action to do on Mouse Double Click]
# + H [Action to do on Mouse Hold]
# + M [Action to do on Mouse Motion]
#
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec picom -b --config ~/.config/picom/picom.conf
+ I Exec exec autorandr -c
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec exec feh --bg-tile ~/.fvwm/wallpapers/white-tile.png
+ I Module FvwmMFL
+ I Module FvwmCommandS
+ I Module FvwmButtons
+ I Module FvwmButtons FvwmSideBar
+ I Module FvwmEvent FvwmEvent-NewWindow
+ I Module FvwmEvent EventNewDesk
+ I Module FvwmEvent StartLeft
+ I Module FvwmEvent StartRight
+ I Module FvwmEvent StartOther
DestroyFunc EmacsStart
AddToFunc EmacsStart
+ I PipeRead runemacs.sh
+ I Next ("Emacs") Iconify off
+ I Next ("Emacs") Raise
+ I Next ("Emacs") Focus NoWarp
# Mouse functions
DestroyFunc RaiseMoveX
AddToFunc RaiseMoveX
+ I Raise
+ M $0
+ D $1
DestroyFunc RaiseMove
AddToFunc RaiseMove
+ I Raise
+ M $0
DestroyFunc MoveToCurrent
AddToFunc MoveToCurrent
+ I ThisWindow MoveToPage
+ I ThisWindow MoveToDesk
# Run from FvwmIconMan when a button is clicked
DestroyFunc IconManClick
AddToFunc IconManClick
+ I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage, Focused) Iconify
+ I TestRc (Match) Break
+ I ThisWindow WindowShade off
+ I ThisWindow Iconify off
+ I ThisWindow Raise
+ I ThisWindow (AcceptsFocus) FlipFocus
# Toggle TitleBar
DestroyFunc ToggleTitle
AddToFunc ToggleTitle
+ I ThisWindow (State 1) WindowStyle Title
+ I TestRc (Match) State 1 False
+ I TestRc (Match) Break
+ I WindowStyle !Title
+ I State 1 True
# Window movement
DestroyFunc MoveLeft
AddToFunc MoveLeft
+ I ThisWindow (Maximized) Maximize
+ I Current PipeRead "echo $(windowmovement.sh left)"
+ I Raise
DestroyFunc MoveRight
AddToFunc MoveRight
+ I ThisWindow (Maximized) Maximize
+ I Current PipeRead "echo $(windowmovement.sh right)"
+ I Raise
DestroyFunc MoveOther
AddToFunc MoveOther
+ I ThisWindow PipeRead "echo ResizeMove frame $(currentscreenall.sh window other | cut -d 'x' -f1)p $(screenheighttaskbar.sh other)p \
$(currentscreenall.sh window y)p -0p"
+ I MoveToDesk 0 0
+ I MoveToPage 0 0
DestroyFunc LeeMaximize
AddToFunc LeeMaximize
+ I Current PipeRead "echo ResizeMove frame $(currentscreenall.sh window | cut -d 'x' -f1)p $(screenheighttaskbar.sh)p 0 0"
+ I Raise
DestroyFunc LeeIconify
AddToFunc LeeIconify
+ I Current Iconify
+ I Next Focus NoWarp
DestroyFunc LeeBringToTop
AddToFunc LeeBringToTop
+ I ThisWindow (Layer 6) WindowStyle StaysPut
+ I TestRc (NoMatch) WindowStyle StaysOnTop
# ____________ ____ ________
# / __/_ __/\ \/ / / / __/ __/
# _\ \ / / \ / /__/ _/_\ \
# /___/ /_/ /_/____/___/___/
#
# Global styles
DefaultFont "xft:Tamzen:pixelsize=15"
OpaqueMoveSize unlimited # all windows OpaqueMove (vs wireframe)
IgnoreModifiers L25 # ignore numlock (for bindings)
SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
Style * UseDecor KoolTitle, ClickToFocus, MouseFocusClickRaises, MinOverlapPlacement, GrabFocusOff, !UsePPosition \
ResizeOpaque, SnapAttraction 6 SameType ScreenAll, SnapGrid, DecorateTransient, StackTransientParent \
!FPGrabFocusTransient, FPReleaseFocusTransient, WindowShadeScrolls, WindowShadeSteps 20, !Icon \
BorderWidth 5, HandleWidth 5, Colorset 1, HilightColorset 2, BorderColorset 3, HilightBorderColorset 4
# Window specific styles
Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6
Style FvwmIdent WindowListSkip
Style Steam HandleWidth 0, !Title
Style valheim.x86_64 HandleWidth 0, !Title
Style feh !Title, PositionPlacement Center, NoPPosition, NoUSPosition
Style mpv !Title, HandleWidth 0, PositionPlacement -0 50-50w, StaysOnTop
Style Alacritty PositionPlacement -100p 50-50w
Style Emacs NoPPosition, UseUSPosition, PositionPlacement 0 0
Style firefox PositionPlacement -0 50-50w, !Title, NoPPosition, NoUSPosition
Style "Volume Mixer" !Title, PositionPlacement -0 -33p, StaysOnTop, BorderColorset 4 # always has focused border
Style "Top10" !Title, PositionPlacement -0 -33p, StaysOnTop, BorderColorset 4
# FvwmButtons
Style FvwmButtons BorderWidth 1, BorderColorset 6, FixedPosition, FixedSize, NeverFocus \
Sticky, StaysOnBottom, !Title, !Handles, UseDescor TaskbarBorder, WindowListSkip
Style "KoolTray" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable, NeverFocus
# Desktops and Pages
#
# +---+---+
# | | |
# +---+---+
# | | |
# +---+---+
#
# Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
# a grid of Pages. The following sets the name of four Desktops and then
# divides each Desktop into a 2x2 grid of Pages that are positioned as
DesktopName 0 I
DesktopName 0 II
DesktopName 0 III
DesktopName 0 IV
# EdgeScroll will move the view port between the Pages when the mouse
# moves to the edge of the screen. This set the amount of distance to
# scroll at 100% (full page) and the EdgeResistance which is a timer
# for how long the mouse as at the edge before it scrolls
EdgeScroll 0 0 # disabled (default 100 100)
EdgeResistance 450
EdgeThickness 2
Style * EdgeMoveDelay 350, EdgeMoveResistance 350
# EwmhBaseStruts [left] [right] [top] [bottom]
# Reserves space along the edge(s) of the Screen that will not
# be covered when maximizing or placing windows
EwmhBaseStruts 0 0 0 0
# This sets the ClickTime and MoveThreshold used to determine
# Double Clicks, Hold and Move for the mouse
ClickTime 250
MoveThreshold 3
# _________ __ ____ ___ __________________
# / ___/ __ \/ / / __ \/ _ \/ __/ __/_ __/ __/
# / /__/ /_/ / /__/ /_/ / , _/\ \/ _/ / / _\ \
# \___/\____/____/\____/_/|_/___/___/ /_/ /___/
#
Colorset 0 fg #32302c, bg #fffefe, TiledPixmap pixmaps/taskbarbg.xpm, hi #92998b, sh #343433 # menu
Colorset 1 fg #e4e3d5, bg #d8d4c8 # window titlebar inactive
Colorset 2 fg #e4e3d5, bg #d8d4c8 # window titlebar active
Colorset 3 fg #494b46, bg #494b46, hi #686d62, sh #494b46 # border inactive
Colorset 4 fg #222020, bg #222020, hi #32302c, sh #222020 # border active
Colorset 5 fg #32302c, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #fffefe, sh #948c79 # taskbar/menu
Colorset 6 fg #434343, bg #434343, sh #434343 # taskbar border
Colorset 7 fg #e4e3d5, bg #fffefe, TiledPixmap pixmaps/down.xpm, hi #5c6057, sh #92998b # menu active/hover
Colorset 8 fg #fffefe, bg #003c3c, TiledPixmap pixmaps/pagerbg.xpm, hi #fffefe, sh #948c79 # pager inactive
Colorset 9 fg #fffefe, bg #222020, TiledPixmap pixmaps/down.xpm, hi #92998b, sh #665f52 # taskbar pressed/pager active
Colorset 10 fg #a9a1e1, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #fffefe, sh #948c79 # RAM widget
Colorset 11 fg #a7b4a9, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #fffefe, sh #948c79 # CPU widget
Colorset 12 Transparent
Colorset 13 fg #494b46, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #606060, sh #1f1f1f # taskbar hover
Colorset 14 fg #494b46, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #606060, sh #1f1f1f # taskbar iconified
Colorset 15 fg #32302c, bg #999999, TiledPixmap pixmaps/iconbg.xpm, hi #fffefe, sh #fffefe # icons
Colorset 16 fg #32302c, bg #999999, TiledPixmap pixmaps/iconbg-xv.xpm, hi #fffefe, sh #948c79 # vx icon
Colorset 17 fg #ececfe, bg #e4e3d5, TiledPixmap pixmaps/pageractive.xpm, hi #606060, sh #665f52 # pager active
Colorset 18 fg #c4bba8, bg #999999, TiledPixmap pixmaps/taskbarbg.xpm, hi #fffefe, sh #948c79 # pager
# ___ _____________ ___
# / _ \/ __/ ___/ __ \/ _ \
# / // / _// /__/ /_/ / , _/
# /____/___/\___/\____/_/|_|
#
# Button Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2]
#
# 1 - WindowOps Menu
# 2 - Close
# 4 - Maximize
# 6 - Minimize
DestroyDecor KoolTitle
AddToDecor KoolTitle
+ TitleStyle RightJustified Height 25
+ Style * TitleFormat %n %
+ TitleStyle AllActive TiledPixmap pixmaps/titlebar.xpm -- Flat
+ TitleStyle AllInactive TiledPixmap pixmaps/titlebar.xpm -- Flat
+ BorderStyle Active -- HiddenHandles
+ BorderStyle Inactive -- HiddenHandles
+ ButtonStyle 2 \
ActiveUp (Pixmap icons/close-activeup.xpm -- Flat UseTitleStyle) \
ActiveDown (Pixmap icons/close-activedown.xpm -- Flat UseTitleStyle) \
Inactive (Pixmap icons/close-inactive.xpm -- Flat UseTitleStyle)
+ ButtonStyle 4 \
ActiveUp (Pixmap icons/maximize-activeup.xpm -- Flat UseTitleStyle) \
ActiveDown (Pixmap icons/maximize-activedown.xpm -- Flat UseTitleStyle) \
Inactive (Pixmap icons/maximize-inactive.xpm -- Flat UseTitleStyle)
+ ButtonStyle 6 \
ActiveUp (Pixmap icons/minimize-activeup.xpm -- Flat UseTitleStyle) \
ActiveDown (Pixmap icons/minimize-activedown.xpm -- Flat UseTitleStyle) \
Inactive (Pixmap icons/minimize-inactive.xpm -- Flat UseTitleStyle)
+ ButtonStyle 1 \
ActiveUp (Pixmap icons/windowops-activeup.xpm -- Flat UseTitleStyle) \
ActiveDown (Pixmap icons/windowops-activedown.xpm -- Flat UseTitleStyle) \
Inactive (Pixmap icons/windowops-inactive.xpm -- Flat UseTitleStyle)
# __ ________ ____ ______
# / |/ / __/ |/ / / / / __/
# / /|_/ / _// / /_/ /\ \
# /_/ /_/___/_/|_/\____/___/
#
MenuStyle * PopupDelayed, PopupDelay 200, PopdownImmediately
MenuStyle * PopupOffset -5 100, TitleWarpOff
MenuStyle * TitleUnderlines2, SeparatorsLong, TrianglesSolid
MenuStyle * AnimationOff, AutomaticHotkeysOff
MenuStyle * BorderWidth 1
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * ItemFormat "%|%5.5i%1.3l%2.3>%|"
MenuStyle * VerticalItemSpacing 1 1, VerticalTitleSpacing 2 2
MenuStyle * MenuColorset 5
MenuStyle * ActiveFore #e4e3d5, Hilight3D On, HilightBack #938122
MenuStyle * ActiveColorset 7
MenuStyle * Font "xft:Tamzen:pixelsize=20"
# The root menu will PopUp with a click in the root window or using alt-f1 (or menu)
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot
#+ "&Programs%icons/programs.png%" Popup MenuPrograms
+ "&Firefox" Exec exec librewolf
+ "&Emacs" EmacsStart
+ "&Terminal%icons/terminal.png%" Exec exec $[infostore.terminal]
+ "" Nop
+ "Refres&h%icons/refresh.png%" Refresh
+ "&Restart%icons/restart.png%" Restart
+ "&Quit%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit
# Generate XDGMenu
PipeRead "fvwm-menu-desktop -e"
# Programs menu
DestroyMenu MenuPrograms
AddToMenu MenuPrograms
+ "Firefox" Exec exec firefox
+ "Emacs" EmacsStart
# Window operations menus
DestroyMenu MenuWindowOps
AddToMenu MenuWindowOps
+ "Move" Move
+ "Resize" Resize
+ "Iconify" Iconify
+ "Maximize" Maximize
+ "Shade" WindowShade
+ "Stick" Stick
+ "" Nop
+ "Close" Close
+ "More..." Menu MenuWindowOpsLong This 0 0
DestroyMenu MenuWindowOpsLong
AddToMenu MenuWindowOpsLong
+ "Move" Move
+ "Resize" Resize
+ "(De)Iconify" Iconify
+ "(Un)Maximize" Maximize
+ "(Un)Shade" WindowShade
+ "(Un)Sticky" Stick
+ "(No)TitleBar" Pick (CirculateHit) ToggleTitle
+ "Send To" Popup MenuSendTo
+ "" Nop
+ "Identify" Module FvwmIdent
+ "" Nop
+ "Raise" Raise
+ "Lower" Lower
+ "" Nop
+ "StaysOnTop" Pick (CirculateHit) Layer 0 6
+ "StaysPut" Pick (CirculateHit) Layer 0 4
+ "StaysOnBottom" Pick (CirculateHit) Layer 0 2
+ "" Nop
+ "Close" Close
+ "Kill" Destroy
DestroyMenu MenuIconOps
AddToMenu MenuIconOps
+ "(De)Iconify" Iconify
+ "(Un)Maximize" Maximize
+ "(Un)Shade" WindowShade
+ "(Un)Sticky" Stick
+ "(No)TitleBar" Pick (CirculateHit) ToggleTitle
+ "Send To" Popup MenuSendTo
+ "" Nop
+ "Identify" Module FvwmIdent
+ "" Nop
+ "Raise" Raise
+ "Lower" Lower
+ "" Nop
+ "StaysOnTop" Pick (CirculateHit) Layer 0 6
+ "StaysPut" Pick (CirculateHit) Layer 0 4
+ "StaysOnBottom" Pick (CirculateHit) Layer 0 2
+ "" Nop
+ "Close" Close
+ "Kill" Destroy
DestroyMenu MenuSendTo
AddToMenu MenuSendTo
+ "Current" MoveToCurrent
+ "Page" PopUp MenuSendToPage
+ "Desk" PopUp MenuSendToDesk
DestroyMenu MenuSendToDesk
AddToMenu MenuSendToDesk
+ "Desk 0" MoveToDesk 0 0
+ "Desk 1" MoveToDesk 0 1
+ "Desk 2" MoveToDesk 0 2
+ "Desk 3" MoveToDesk 0 3
DestroyMenu MenuSendToPage
AddToMenu MenuSendToPage
+ "Page (0,0)" MoveToPage 0 0
+ "Page (0,1)" MoveToPage 0 1
+ "Page (1,0)" MoveToPage 1 0
+ "Page (1,1)" MoveToPage 1 1
# ___ _____ _____ _____ ___________
# / _ )/ _/ |/ / _ \/ _/ |/ / ___/ __/
# / _ |/ // / // // // / (_ /\ \
# /____/___/_/|_/____/___/_/|_/\___/___/
#
# Context:
# R = Root Window rrrrrrrrrrrrrrrrrrrrrr
# W = Application Window rIrrrr<---------^rrrrr
# F = Frame Corners rrrrrr[13TTTT642]rrrrr
# S = Frame Sides rIrrrr[wwwwwwwww]rrrrr
# T = Title Bar rrrrrr[wwwwwwwww]rrrrr
# I = Icon rIrrrrv_________>rrrrr
# rrrrrrrrrrrrrrrrrrrrrr
#
# Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
#
# Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing, (4) Super
#
# Format: Key <X> <Context> <Modifier> <Action>
# Mouse <X> <Context> <Modifier> <Action>
#
# Silent suppresses any errors (such as keyboards with no Menu key)
Silent Key F1 A M Menu MenuFvwmRoot
Silent Key Menu A A Menu MenuFvwmRoot
Silent Key Tab A M WindowList Root c c NoDeskSort, CurrentAtEnd, SelectOnRelease Meta_L
Silent Key 1 A 4 GotoDesk 0 0
Silent Key 2 A 4 GotoDesk 0 1
Silent Key 3 A 4 GotoDesk 0 2
Silent Key 4 A 4 GotoDesk 0 3
Silent Key Right A 4S GotoDesk 1 0 3 # one desk forward
Silent Key Left A 4S GotoDesk -1 0 3 # one desk back
Silent Key 1 A 4S MovetoDesk 0 0
Silent Key 2 A 4S MovetoDesk 0 1
Silent Key 3 A 4S MovetoDesk 0 2
Silent Key 4 A 4S MovetoDesk 0 3
Silent Key Return A 4 Exec runterminal.sh
Silent Key Left A 4 ThisWindow MoveLeft
Silent Key Right A 4 ThisWindow MoveRight
Silent Key Up A 4 PipeRead "echo $(windowmovement.sh up)"
Silent Key Down A 4 PipeRead "echo $(windowmovement.sh down)"
Silent Key O A 4 ThisWindow MoveOther
Silent Key R A 4 Exec rofi -show run
Silent Key F4 A M Close
Silent Key C A 4S Close
Silent Key S A 4S Exec screenshotssh.sh window
Silent Key S A 4 Exec screenshotssh.sh box
Silent Key D A 4 SendToModule FvwmScript-DesktopCycle SendString 1 2
Silent Key T A 4 ThisWindow LeeBringToTop
Silent Key Left A 4M ThisWindow Resize w-20p w0p
Silent Key Right A 4M ThisWindow Resize w+20p w0p
Silent Key Up A 4M ThisWindow Resize w0p w-20p
Silent Key Down A 4M ThisWindow Resize w0p w+20p
Silent Key Left A 4C ThisWindow AnimatedMove w-40p w0p
Silent Key Right A 4C ThisWindow AnimatedMove w+40p w0p
Silent Key Up A 4C ThisWindow AnimatedMove w0p w-40p
Silent Key Down A 4C ThisWindow AnimatedMove w0p w+40p
Silent Key XF86AudioLowerVolume A A Exec amixer -D pulse set Master 5%-
Silent Key XF86AudioRaiseVolume A A Exec amixer -D pulse set Master 5%+
Silent Key XF86AudioMute A A Exec amixer -D pulse set Master toggle
Silent Key XF86MonBrightnessDown A A Exec xbacklight -dec 5
Silent Key XF86MonBrightnessUp A A Exec xbacklight -inc 5
# Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
# 1 - Open the WindowOps menu
# 2 - Close on single click, Destory on double click
# 4 - Maximize (right/middle button will only maximize vertical/horizontal)
# 6 - Iconify (minimize)
Mouse 1 1 A Menu MenuWindowOps Delete
Mouse 1 2 A Close
Mouse 1 4 A LeeMaximize 100 100
Mouse 2 4 A Maximize 0 100
Mouse 3 4 A Maximize 100 0
Mouse 1 6 A Iconify
# TitleBar: Click to Raise, Move, Double Click to Maximize
# Mouse Wheel Up/Down to WindowShade On/Off
# Borders: Click to raise, Move to Resize
# Root Window: Left Click - Main Menu
# Right Click - WindowOps Menu
# Middle Click - Window List Menu
Mouse 1 T A RaiseMoveX Move Maximize
Mouse 1 FS A RaiseMove Resize
Mouse 4 T A WindowShade True
Mouse 5 T A WindowShade False
Mouse 1 R A Menu MenuFvwmRoot
Mouse 2 R A WindowList
Mouse 3 R A Menu MenuWindowOpsLong
Mouse 1 I A RaiseMoveX Move "Iconify off"
Mouse 3 T A Menu MenuWindowOps
Mouse 3 I A Menu MenuIconOps
# __ _______ ___ __ ____ ________
# / |/ / __ \/ _ \/ / / / / / __/ __/
# / /|_/ / /_/ / // / /_/ / /__/ _/_\ \
# /_/ /_/\____/____/\____/____/___/___/
#
# FvwmIdent
DestroyModuleConfig FvwmIdent:*
*FvwmIdent: Colorset 0
# FvwmScript
DestroyModuleConfig FvwmScript:*
*FvwmScript: DefaultColorset 0
*FvwmScript: Path $[FVWM_USERDIR]/scripts
# FvwmEvent
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: PassID
*FvwmEvent: new_desk
*FvwmEvent-NewWindow: StartDelay 3
*FvwmEvent-NewWindow: add_window "ThisWindow ("Alacritty|Mozilla*|Emacs|feh|Thunar|Nicotine*") Focus NoWarp"
DestroyModuleConfig EventNewDesk:*
*EventNewDesk: PassID
*EventNewDesk: new_desk "SendToModule FvwmScript-DesktopCycle SendString 1 1"
DestroyModuleConfig StartLeft: *
*StartLeft: add_window "ThisWindow ("Emacs|Thunar|Nicotine*") PipeRead 'echo $(windowmovement.sh left)'"
DestroyModuleConfig StartRight: *
*StartRight: add_window "ThisWindow ("Mozilla*") PipeRead 'echo $(windowmovement.sh right)'"
DestroyModuleConfig StartOther: * # Needs to run twice (fix)
*StartOther: add_window "ThisWindow ("*Discord*") MoveOther"
*StartOther: add_window "ThisWindow ("*Discord*") MoveOther"
# FvwmForm is a module that can be used to build a GUI
# form. Used with fvwm-menu-desktop-config.fpl
*FvwmFormDefault: Colorset 0
*FvwmFormDefault: ItemColorset 0
# FvwmPager
DestroyModuleConfig FvwmPager: *
*FvwmPager: Rows 2
*FvwmPager: Columns 2
*FvwmPager: Colorset * 18
*FvwmPager: Font none
*FvwmPager: HilightColorset * 5 # sets background for some reason
*FvwmPager: NoSeparators
*FvwmPager: UseSkipList
*FvwmPager: ShapeLabels
*FvwmPager: Window3DBorders
*FvwmPager: WindowColorsets 8 17 # inactive active
# FvwmIconMan
DestroyModuleConfig FvwmIconMan: *
*FvwmIconMan: Resolution desk
*FvwmIconMan: UseWinList true
*FvwmIconMan: ManagerGeometry 1x50+242+22
*FvwmIconMan: ButtonGeometry 1x22
*FvwmIconMan: Action Mouse 0 A ret
*FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
*FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
*FvwmIconMan: Colorset 12
*FvwmIconMan: IconColorset 14
*FvwmIconMan: IconAndSelectColorset 13
*FvwmIconMan: DrawIcons always
*FvwmIconMan: FocusAndSelectButton down
*FvwmIconMan: PlainColorset 5
*FvwmIconMan: FocusAndSelectColorset 9
*FvwmIconMan: FocusButton down
*FvwmIconMan: FocusColorset 9
*FvwmIconMan: SelectColorset 13
*FvwmIconMan: ReliefThickness 1
*FvwmIconMan: Font "xft:Tamzen:pixelsize=15"
*FvwmIconMan: Format "%i"
*FvwmIconMan: IconAndSelectButton flat
*FvwmIconMan: IconButton flat
*FvwmIconMan: PlainButton flat
*FvwmIconMan: SelectButton flat
*FvwmIconMan: ShowTransient false
*FvwmIconMan: Sort id
*FvwmIconMan: Title ""
*FvwmIconMan: TitleButton flat
*FvwmIconMan: DontShow "Volume Mixer"
*FvwmIconMan: DontShow "DateTime"
# FvwmButtons
DestroyModuleConfig FvwmButtons: *
Piperead "echo *FvwmButtons: Geometry \
763x109+$(expr $(currentscreenall.sh mouse | cut -d 'x' -f1) / 2 - 350)-8"
*FvwmButtons: Colorset 5
*FvwmButtons: Columns 7
*FvwmButtons: Rows 1
*FvwmButtons: Frame 1
*FvwmButtons: (Frame 1, Padding 2, Swallow IconPc "Module FvwmButtons IconPc")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconRecycle "Module FvwmButtons IconRecycle")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconMail "Module FvwmButtons IconMail")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconShell "Module FvwmButtons IconShell")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconEye "Module FvwmButtons IconEye")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconDoc "Module FvwmButtons IconDoc")
*FvwmButtons: (Frame 1, Padding 2, Swallow IconXv "Module FvwmButtons IconXv")
DestroyModuleConfig IconPc: *
*IconPc: Colorset 15
*IconPc: PressColorset 5
*IconPc: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/pc.png" \
Action (Mouse 1) Exec thunar)
DestroyModuleConfig IconRecycle: *
*IconRecycle: Colorset 15
*IconRecycle: PressColorset 5
*IconRecycle: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/recycle.png" \
Action (Mouse 1) Exec nicotine)
DestroyModuleConfig IconMail: *
*IconMail: Colorset 15
*IconMail: PressColorset 5
*IconMail: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/mail.png" \
Action (Mouse 1) Exec alacritty -e neomutt)
DestroyModuleConfig IconShell: *
*IconShell: Colorset 15
*IconShell: PressColorset 5
*IconShell: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/shell.png" \
Action (Mouse 1) Exec alacritty)
DestroyModuleConfig IconEye: *
*IconEye: Colorset 15
*IconEye: PressColorset 5
*IconEye: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/eye.png" \
Action (Mouse 1) Exec firefox)
DestroyModuleConfig IconDoc: *
*IconDoc: Colorset 15
*IconDoc: PressColorset 5
*IconDoc: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/doc.png" \
Action (Mouse1) EmacsStart)
DestroyModuleConfig IconXv: *
*IconXv: Colorset 16
*IconXv: (Frame 1, Padding 0, Icon "$[FVWM_USERDIR]/icons/xv.png" \
Action (Mouse 1) Exec gimp)
DestroyModuleConfig FvwmSideBar: *
*FvwmSideBar: Geometry 250x675-8+8
*FvwmSideBar: Colorset 5
*FvwmSideBar: Columns 1
*FvwmSideBar: Rows 80
*FvwmSideBar: Frame 1
*FvwmSideBar: (1x12, Frame 1, Padding 2, Swallow KoolTime "Module FvwmButtons KoolTime")
*FvwmSideBar: (1x25, Frame 1, Padding 2, Swallow KoolPager "Module FvwmButtons KoolPager")
*FvwmSideBar: (1x20, Frame 1, Padding 2, Swallow KoolLoadCpu "Module FvwmButtons KoolLoadCpu")
*FvwmSideBar: (1x23, Frame 1, Padding 2, Swallow KoolIconMan "Module FvwmButtons KoolIconMan")
DestroyModuleConfig KoolPager: *
*KoolPager: Colorset 5
*KoolPager: (Frame -1, Padding 2 1, Swallow FvwmPager "Module FvwmPager 0 3")
DestroyModuleConfig KoolLoadCpu: *
*KoolLoadCpu: Colorset 5
*KoolLoadCpu: (Frame -1, Padding 2, Swallow LoadMeter "FvwmScript FvwmScript-LoadMeter")
DestroyModuleConfig KoolTime: *
*KoolTime: Colorset 5
*KoolTime: (Frame -1, Padding 2, Swallow DateTime "FvwmScript FvwmScript-KoolTime")
DestroyModuleConfig KoolIconMan: *
*KoolIconMan: Colorset 5
*KoolIconMan: (Frame -1, Padding 2, Swallow (Respawn) FvwmIconMan "Module FvwmIconMan")