/
config
2740 lines (2397 loc) · 140 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
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
########################################################################
# _____________________________
# / ___________________________/
# / /_ ___ ______ ___
# / __/| / / | /| / / __ `__ \ ___
# / / | |/ /| |/ |/ / / / / / / /__/
# /_/ |___/ |__/|__/_/ /_/ /_/
#
# _ ___ __ __ __ __
# / | / (_)____ _/ /_ / /______/ /_ ____ _____/ /___
# / |/ / // __ `/ __ \/ __/ ___/ __ \/ __ `/ __ // _ \
# / /| / // /_/ / / / / /_(__ ) / / / /_/ / /_/ // __/
# /_/ |_/_/ \__, /_/ /_/\__/____/_/ /_/\__,_/\__,_/ \___/
# /____/
#
#
# Fvwm Nightshade Configuration
InfoStoreAdd ns_version 0.7.9.20160427
# Copyright (C) 2016
#
# Authors:
# Thomas Funk <t.funk@web.de>
# Bernhard Popp <kermit.popp@googlemail.com>
#
# Thanks to (in no specific order):
# Thomas Adam, Tavis Ormandy, Aelsi, Scientific, unambiguous, Kermit
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
########################################################################
#
# Introductions:
#
# There are many comments, but a good reading of the fvwm FAQ, of the man
# pages of fvwm and its modules is suggested/recommended.
#
########################################################################
#
# Overview:
#
# 1. GLOBAL SETTINGS
# 1.1 Paths, Variables (SetEnv, InfoStore)
# 1.2.1 Paths and directories
# 1.2.2 Environment settings
# 1.2.3 Default applications
# 1.2.3 Others
# 1.3 Miscellaneous (BugOpts)
# 2. GLOBAL LOOK
# 2.1 Cursors
# 2.2 Fonts
# 2.3 Colorsets
# 2.4 Windows Decorations
# 2.4.1 General
# 2.4.2 Icons
# 2.4.3 Applications
# 2.5 Theme related decorations
# 3. GLOBAL FEEL
# 3.1 General
# 3.2 Windows
# 4. APPLCATIONS LOOK
# 4.1 Windows Decorations
# 4.1.1 General
# 4.1.2 Icons
# 4.2 Menus
# 4.2.1 WinOps menu
# 5. APPLICATIONS FEEL
# 5.1 General
# 5.2 Applications
# 6. BINDINGS
# 6.1 Mouse
# 6.1.1. Pointer in Root or anywhere
# 6.1.2. Pointer in Window Buttons
# 6.1.3. Pointer in Window Decorations
# 6.1.4. Pointer in Icons
# 6.1.5. Pointer in Window (and in Icon for consistency)
# 6.2 Keyboard
# 6.2.1 ALT + Key
# 6.2.2 ALT-SHIFT + Key
# 6.2.3 ALT-CTRL-SHIFT
# 6.2.4 CTRL + Key
# 6.2.5 CTRL-ALT + Key
# 6.2.6 SHIFT-CTRL + Key
# 6.3 Strokes
# 7. MODULES
# 7.1 FvwmAnimate
# 7.2 FvwmBacker
# 7.3 FvwmBanner
# 7.4 FvwmEvent
# 7.4.1 Common FvwmEvents
# 7.4.2 Sound FvwmEvents
# 7.5 FvwmForm
# 7.5.1 RunCommand
# 7.5.2 About box
# 7.5.2 Message box
# 7.5.2 Show Colorset
# 7.6 FvwmIdent
# 7.7 FvwmScript
# 7.8 FvwmTransSet
# 7.9 Others
# 8. FUNCTIONS
# 8.1 Startup
# 8.1.1 Start
# 8.1.2 Session
# 8.2 General
# 8.3 Window/Icon
# 8.4 Menus
# 9. MENUS
# 9.1 Root menu
# 9.2 Help menu
# 9.3 Modules and Applets menus
# 9.4 Configuration menu
# 9.5 Fvwm Quit menu
# 9.6 Window Ops menus
#
########################################################################
########################################################################
# 1. G L O B A L S E T T I N G S
########################################################################
#=======================================================================
# 1.1 Paths, Variables (SetEnv, InfoStore)
#=======================================================================
#-----------------------------------------------------------------------
# Set shell for Exec command
#-----------------------------------------------------------------------
ExecUseShell /bin/bash
#***********************************************************************
# 1.2.1 Paths and directories
#***********************************************************************
#-----------------------------------------------------------------------
# ModulePath is builtin, you may add some directories here
#
# IMPORTANT: if you decide to set a ModulePath, please note that modules
# are normally installed into a version-dependent directory. Be sure to
# update this file after installing a new version.
#-----------------------------------------------------------------------
ModulePath $[FVWM_USERDIR]/lib:$[FNS_SYSTEMDIR]/lib:+
#-----------------------------------------------------------------------
# LocalePath specifies a colon separated list of "locale path" in which
# to search for string translations. A locale path is constituted by a
# directory path and a text domain separated by a semicolon (';').
#-----------------------------------------------------------------------
LocalePath $[FVWM_USERDIR]/locale;fvwm-nightshade:;fvwm-nightshade:+
#-----------------------------------------------------------------------
# The default ImagePath for icons is:
# /usr/include/X11/bitmap:/usr/include/X11/pixmaps
#
# If the fvwm_icons are not installed in one of these directories or if
# you want to add a personal image put them here
#-----------------------------------------------------------------------
ImagePath $[FVWM_USERDIR]/artwork/icons:$[FVWM_USERDIR]/artwork/icons/scalable:+
ImagePath +:$[FNS_SYSTEMDIR]/artwork/icons:$[FNS_SYSTEMDIR]/artwork/icons/scalable
ImagePath +:/usr/share/pixmaps:/usr/share/pixmaps/fvwm
#-----------------------------------------------------------------------
# FnsSoundPath is a Fvwm-Nightshade builtin, you may add some directories here.
# You can search for sounds over 'fns-find-file [file name]' which returns
# the full path of the specified sound file (if available).
# The predefine sound search paths are:
# $[FVWM_USERDIR]/artwork/sounds:$[FNS_SYSTEMDIR]/artwork/sounds
#-----------------------------------------------------------------------
FnsSoundPath +:/usr/share/sounds
#-----------------------------------------------------------------------
# actual wallpaper
#-----------------------------------------------------------------------
InfoStoreAdd fvwm_wallpaper $[FVWM_USERDIR]/.wallpaper
#***********************************************************************
# 1.2.2 Environment settings
#***********************************************************************
# These settings are rolled out to $[FVWM_USERDIR]/.settings
# They can configured with the FNS-BaseSetup
Load .settings
FuncSetThemeDir $[infostore.used_theme]
#-----------------------------------------------------------------------
# State of pcmanfm
#-----------------------------------------------------------------------
PipeRead 'if [ -z `pidof pcmanfm` ]; then echo SetEnv PcmanFmStatus 0 ;fi'
#***********************************************************************
# 1.2.3 Others
#***********************************************************************
#-----------------------------------------------------------------------
# Adjust ratio to calculate resolution dependant things
#-----------------------------------------------------------------------
PipeRead "echo InfoStoreAdd aspect_ratio `perl -e 'printf \"%.2f\",$[vp.width]/$[vp.height]'`"
# find the smallest resolution depending on the aspect ratio
PipeRead `perl -e 'if ($[infostore.aspect_ratio] > 2.0) { \
print "InfoStoreAdd ref_width 800\\n"; \
print "InfoStoreAdd ref_height 384\\n"; \
} elsif ($[infostore.aspect_ratio] > 1.6) { \
print "InfoStoreAdd ref_width 960\\n"; \
print "InfoStoreAdd ref_height 540\\n"; \
} elsif ($[infostore.aspect_ratio] > 1.4) { \
print "InfoStoreAdd ref_width 960\\n"; \
print "InfoStoreAdd ref_height 640\\n"; \
} else { \
print "InfoStoreAdd ref_width 800\\n"; \
print "InfoStoreAdd ref_height 600\\n"; \
}'`
#InfoStoreAdd ratio 1.1
PipeRead "echo InfoStoreAdd ratio `perl -e 'printf \"%.2f\",log($[vp.width]*$[vp.height])/log(10)-log($[infostore.ref_width]*$[infostore.ref_height])/log(10)+1'`"
#InfoStoreAdd hratio 0.8
PipeRead "echo InfoStoreAdd hratio `perl -e 'printf \"%.2f\",($[vp.height]/540)'`"
#InfoStoreAdd wratio 2
PipeRead "echo InfoStoreAdd wratio `perl -e 'printf \"%.2f\",($[vp.width]/800)'`"
#=======================================================================
# 1.3 Miscellaneous
#=======================================================================
# This commands controls several workarounds for bugs in third party
# programs
#-----------------------------------------------------------------------
# Disables ConfigureNotify events that are usually sent to an application
# while it is moved. If some windows flicker annoyingly while being moved,
# this option may help
#-----------------------------------------------------------------------
BugOpts FlickeringMoveWorkaround True
#-----------------------------------------------------------------------
# Enabling this option might help for Qt applications using DragnDrop.
# Surpresses the forwarding of unknown ClientEvent messages to windows
# -- usually this is harmless, but Qt has problems handling unrecognised
# ClientEvent messages.
#-----------------------------------------------------------------------
#BugOpts QtDragnDropWorkaround True
########################################################################
# 2. G L O B A L L O O K
########################################################################
# Cursors, default fonts, Windows Decoration and Menu Styles
########################################################################
#=======================================================================
# 2.1 Cursors
#=======================================================================
CursorStyle ROOT left_ptr black white
CursorStyle TITLE top_left_arrow black white
CursorStyle DEFAULT top_left_arrow black white
CursorStyle SYS hand2 black white
CursorStyle MENU top_left_arrow black white
CursorStyle POSITION top_left_corner black white
CursorStyle MOVE fleur black white
CursorStyle RESIZE sizing black white
CursorStyle WAIT watch black white
CursorStyle SELECT crosshair black white
CursorStyle DESTROY pirate black white
CursorStyle TOP top_side black white
CursorStyle RIGHT right_side black white
CursorStyle BOTTOM bottom_side black white
CursorStyle LEFT left_side black white
CursorStyle TOP_LEFT top_left_corner black white
CursorStyle TOP_RIGHT top_right_corner black white
CursorStyle BOTTOM_LEFT bottom_left_corner black white
CursorStyle BOTTOM_RIGHT bottom_right_corner black white
CursorStyle TOP_EDGE top_side black white
CursorStyle RIGHT_EDGE right_side black white
CursorStyle BOTTOM_EDGE bottom_side black white
CursorStyle LEFT_EDGE left_side black white
CursorStyle STROKE plus black white
#=======================================================================
# 2.2 Fonts
#=======================================================================
# For window titles, another for icons, and another for the menus
Style * Font "xft:$[infostore.used_font]:pixelsize=$[infostore.fontsize]"
Style * IconFont "xft:monospace:pixelsize=$[infostore.fontsize]:Medium"
#=======================================================================
# 2.3 Colorsets (based on Fvwm-Themes)
#=======================================================================
# You will find all colorsets in the theme specific file:
#-----------------------------------------------------------------------
Load $[FNS_THEMEDIR]/colorsets
#=======================================================================
# 2.4 Window Decorations
#=======================================================================
#=======================================================================
# 2.5 Theme related decorations
#=======================================================================
# In the decor file there a all decoration stuff needed for the specific
# theme like
# window bar: buttons, titlebar, ...
# Menus: for the Root and WinOps menu style
# mouse bindings for the buttons
#-----------------------------------------------------------------------
Load $[FNS_THEMEDIR]/decor
########################################################################
# 3. G L O B A L F E E L
########################################################################
#=======================================================================
# 3.1 General
#=======================================================================
#-----------------------------------------------------------------------
# Xinerama support
#-----------------------------------------------------------------------
Xinerama on
#-----------------------------------------------------------------------
# Resize and move feedback windows in the center of the screen
#-----------------------------------------------------------------------
Emulate mwm
#-----------------------------------------------------------------------
# How hard it should be to change the desktop viewport by moving the
# mouse over the edge of the screen
#-----------------------------------------------------------------------
EdgeResistance 350
#-----------------------------------------------------------------------
# Scrolling complete page when hiting the edge of a page
# EdgeScroll 0 0 disables scrolling
#-----------------------------------------------------------------------
Test (EnvMatch DesktopScrollOn 1) EdgeScroll 100 100
Test (EnvMatch DesktopScrollOn 0) EdgeScroll 0 0
#-----------------------------------------------------------------------
# In order to enable page scrolling via the mouse, four windows called
# the "pan frames" are placed at the very edge of the screen. 1 gives
# the smallest pan frames, which seem to work best except on some servers.
#-----------------------------------------------------------------------
EdgeThickness 1
#-----------------------------------------------------------------------
# makes fvwm attempt to recognize and respect the mwm decoration hints
# that applications occasionally use
#-----------------------------------------------------------------------
Style * MWMDecor
#-----------------------------------------------------------------------
# makes fvwm shade out operations that mwm would prohibit, but it lets
# you perform the operation anyway
#-----------------------------------------------------------------------
Style * HintOverride
#-----------------------------------------------------------------------
# makes fvwm attempt to recognize and respect the olwm and olvwm hints
# that many older XView and OLIT applications use
#-----------------------------------------------------------------------
Style * OLDecor
#-----------------------------------------------------------------------
# This command controls the cursor during the execution of certain commands
#-----------------------------------------------------------------------
BusyCursor * True
#-----------------------------------------------------------------------
# Specifies the maximum delay in milliseconds between a button press and
# a button release for the Function command to consider the action a
# mouse click. Default is 150 ms
#-----------------------------------------------------------------------
ClickTime 300
#-----------------------------------------------------------------------
# Use EWMH hints and respect EWMH hints which change the window layer.
#-----------------------------------------------------------------------
Style * EWMHUseStackingOrderHints
#=======================================================================
# 3.2 Windows
#=======================================================================
#-----------------------------------------------------------------------
# Never hide the position or size of a window that is usually shown when
# it is moved or resized
#-----------------------------------------------------------------------
HideGeometryWindow Never
#-----------------------------------------------------------------------
# SnapAttraction lets nearby windows snap together, or snap to edges so
# that they are easier to align on your desktop, The default is off.
#-----------------------------------------------------------------------
Style * SnapAttraction 3 All
#-----------------------------------------------------------------------
# shows the content of a window while moving
#-----------------------------------------------------------------------
OpaqueMoveSize 100
#-----------------------------------------------------------------------
# shows the content of a window while resizing
#-----------------------------------------------------------------------
Style * ResizeOpaque
#-----------------------------------------------------------------------
# The WindowShadeSteps option selects the number of steps for animation
# when shading a window with WindowShade.
#-----------------------------------------------------------------------
#Style * WindowShadeSteps 20
#-----------------------------------------------------------------------
# The focus policy. Once you are used to clicking *inside* windows to
# raise them you will not want to lose this feature.
#-----------------------------------------------------------------------
Style * ClickToFocus
Style * MouseFocusClickRaises
#-----------------------------------------------------------------------
# You can use the IgnoreModifiers command to turn individual modifiers
# off for bindings. Now CapsLock, NumLock and ScrollLock are removed from
# the keyboard map.
# For more infos please read http://fvwm.org/documentation/faq/#5.5
#-----------------------------------------------------------------------
IgnoreModifiers L25
#-----------------------------------------------------------------------
# TileCascadePlacement automatically places new windows in a smart
# location - a location in which they do not overlap any other windows
# on the screen.
#-----------------------------------------------------------------------
Style * TileCascadePlacement
#-----------------------------------------------------------------------
# !UsePPosition instructs fvwm to ignore the PPosition field in window
# geometry hints. Emacs annoyingly sets PPosition to (0,0)!
#-----------------------------------------------------------------------
Style * !UsePPosition
#Style * !FPGrabFocus
#-----------------------------------------------------------------------
# transient windows
#-----------------------------------------------------------------------
# You can do a lot of things with transient windows. However, you may
# want to set transient style by application (in styles).
Style * DecorateTransient
#-----------------------------------------------------------------------
# In *general* it is not a good idea to be able to lower transient window
# under its main window, but why not...
#-----------------------------------------------------------------------
#Style * DontRaiseTransient
#-----------------------------------------------------------------------
# Remove the relief around an iconified apps
#-----------------------------------------------------------------------
Style * IconBackgroundRelief 0
########################################################################
# 4. A P P L I C A T I O N S L O O K
########################################################################
# If needed put in here all application specific styles. For information
# see style comments in GLOBAL LOOK
#=======================================================================
# 4.1 Windows Decorations
#=======================================================================
#***********************************************************************
# 4.1.1 General
#***********************************************************************
# If any application needs a specific window related style put it here
#-----------------------------------------------------------------------
# All Fvwm* named windows
#-----------------------------------------------------------------------
Style Fvwm* Colorset 0
#-----------------------------------------------------------------------
# FvwmBanner
#-----------------------------------------------------------------------
Style FvwmBanner !Title
#-----------------------------------------------------------------------
# FvwmForm-Messages
#-----------------------------------------------------------------------
Style FvwmForm-Messages !Title
#-----------------------------------------------------------------------
# FvwmForm-RunCommand
#-----------------------------------------------------------------------
Style FvwmForm-RunCommand !Title
#-----------------------------------------------------------------------
# FvwmForm-About
#-----------------------------------------------------------------------
Style FvwmForm-About !Title
#-----------------------------------------------------------------------
# FNS-BaseSetup - should be positioned in the center at initial start
#-----------------------------------------------------------------------
Test (!f $[FVWM_USERDIR]/.settings) Style FNS-BaseSetup PositionPlacement Center
#***********************************************************************
# 4.1.2 Icons
#***********************************************************************
# If a window has no icon associated, then the below will use.
Style Untitled EWMHMiniIconOverride, Icon question2.svg:48x48, MiniIcon question2.svg:16x16
Style NoClass UseStyle Untitled
Style NoResource UseStyle Untitled
Style X* EWMHMiniIconOverride, Icon x.svg:48x48, MiniIcon x.svg:16x16
Style error EWMHMiniIconOverride, Icon bomb.svg:48x48, MiniIcon bomb.svg:16x16
Style FvwmIdent EWMHMiniIconOverride, Icon question.svg:48x48, MiniIcon question.svg:16x16
Style FvwmConsole EWMHMiniIconOverride, Icon fvwm_footprint.svg:48x48, MiniIcon fvwm_footprint.svg:16x16
Style FvwmForm EWMHMiniIconOverride, Icon fvwm_footprint.svg:48x48, MiniIcon fvwm_footprint.svg:16x16
Style FvwmScript EWMHMiniIconOverride, Icon fvwm_footprint.svg:48x48, MiniIcon fvwm_footprint.svg:16x16
#-----------------------------------------------------------------------
# FNS related icons
#-----------------------------------------------------------------------
Style FNS-BaseSetup EWMHMiniIconOverride, Icon icon_fns.svg:48x48, MiniIcon icon_fns.svg:16x16
Style FNS-WindowsBehaviour EWMHMiniIconOverride, Icon WinBehaviour.svg:48x48, MiniIcon WinBehaviour.svg:16x16
Style FNS-MenuConfigurator EWMHMiniIconOverride, Icon MenuConfigurator.svg:48x48, MiniIcon MenuConfigurator.svg:16x16
Style FNS-CompConfigurator EWMHMiniIconOverride, Icon CompConfigurator.svg:48x48, MiniIcon CompConfigurator.svg:16x16
Style FNS-MenuBuilder EWMHMiniIconOverride, Icon PersonalMenuCreator.svg:48x48, MiniIcon PersonalMenuCreator.svg:16x16
Style FNS-Script-FileBrowser EWMHMiniIconOverride, Icon filemanager.svg:48x48, MiniIcon filemanager.svg:16x16
Style FNS-CpuPerformance EWMHMiniIconOverride, Icon cpu.svg:48x48, MiniIcon cpu.svg:16x16
Style FNS-Script-Date EWMHMiniIconOverride, Icon clock.svg:48x48, MiniIcon clock.svg:16x16
Style Chrono EWMHMiniIconOverride, Icon Chrono.svg:48x48, MiniIcon Chrono.svg:16x16
Style Kalende EWMHMiniIconOverride, Icon Kalende.svg:48x48, MiniIcon Kalende.svg:16x16
########################################################################
# 5. A P P L I C A T I O N S F E E L
########################################################################
#=======================================================================
# 5.1 General
#=======================================================================
#-----------------------------------------------------------------------
# makes fvwm attempt to recognize and respect the mwm prohibited
# operations hints that applications occasionally use. But should only
# used for applications with problems because setting this globally will
# break Java programs by respecting MwmLayer.
#-----------------------------------------------------------------------
#Style <app> MWMFunctions
#=======================================================================
# 5.2 Applications
#=======================================================================
#-----------------------------------------------------------------------
# Stalonetray
#-----------------------------------------------------------------------
Style stalonetray EWMHUseStackingOrderHints
Style stalonetray WindowListSkip
#-----------------------------------------------------------------------
# FvwmBanner
#-----------------------------------------------------------------------
Style FvwmBanner Sticky
Style FvwmBanner StaysOnTop
Style FvwmBanner WindowListSkip
Style FvwmBanner CirculateSkip
########################################################################
# 6. B I N D I N G S
########################################################################
#=======================================================================
# 6.1 Mouse
#=======================================================================
# Handle some Mouse bindings now...
# Recall that mouse formats look like this:
#
# +------------+
# | || || || |
# | |
# +------------+
# 1 2 3
#-----------------------------------------------------------------------
# Contexts: Desktop
# R = Root Window rrrrrrrrrrrrrrrrrrrrrr
# W = Application Window rIrrrrFSSSSSSSSSFrrrrr
# F = Frame Corners rrrrrrS13TTTT642Srrrrr
# S = Frame Sides rIrrrrSwwwwwwwwwSrrrrr
# T = Title Bar rrrrrrSwwwwwwwwwSrrrrr
# I = Icon rIrrrrFSSSSSSSSSFrrrrr
# rrrrrrrrrrrrrrrrrrrrrr
# Numbers are buttons: 1 3 5 7 9 0 8 6 4 2
#
# Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
#-----------------------------------------------------------------------
# Buttons:
# +----------------------------------------------------------+
# | X X X X X X X X X X |
# +----------------------------------------------------------+
# | 1 3 5 7 9 0 8 6 4 2 |
# | |
#
#***********************************************************************
# 6.1.1. Pointer in Root or anywhere
#***********************************************************************
# Button Context Modifi Function
Mouse 1 R A Menu MenuRoot
Mouse 2 R A WindowList
Mouse 3 RFT A Menu MenuDesktopOps
#-----------------------------------------------------------------------
# Roll mouse wheel anywhere with SHIFT-ALT + cursor left/right for goto page
#-----------------------------------------------------------------------
Mouse 4 A SC FuncGotoPage +1p +0p
Mouse 5 A SC FuncGotoPage -1p +0p
#-----------------------------------------------------------------------
# Roll mouse wheel anywhere with SHIFT-CTRL + cursor left/right for goto page
# with active window
#-----------------------------------------------------------------------
Mouse 4 A SM Current FuncMoveWindowToPage +1p +0p
Mouse 5 A SM Current FuncMoveWindowToPage -1p +0p
#-----------------------------------------------------------------------
# Help info with SHIFT-CTRL-ALT in Root
#-----------------------------------------------------------------------
# Button Context Modifi Function
Mouse 0 R SCM FuncShowMessage "Mouse Bindings for Root area" \
"Mouse 1: Root menu. With icons on desktop use left Win key" \
"Mouse 2: Window list" \
"Mouse 3: Desktop Oops menu. With icons on desktop use" \
" CTRL + left Win key" \
"Mouse 4/5: Switch to page left/right with" \
" SHIFT-ALT + rolling wheel up/down anywhere" \
" Switch with window to page left/right with" \
" SHIFT-CTRL + rolling wheel up/down anywhere" \
#***********************************************************************
# 6.1.2. Pointer in Window Buttons
#***********************************************************************
# Bindings for window buttons in the theme related file
# $[FNS_THEMEDIR]/decor
#***********************************************************************
# 6.1.3. Pointer in Window Decorations
#***********************************************************************
# Button Context Modifi Function
#-----------------------------------------------------------------------
# Button 1 in the titlebar, with any modifiers, gives
# move <- drag, resize <- click or maximize <- double click
#-----------------------------------------------------------------------
Mouse 1 T A FuncMoveOrRaiseOrMaximize
#-----------------------------------------------------------------------
# Button 1 in the corners or sides, with any modifiers, gives
# resize <- drag, raise <- click or maximize <- double click
#-----------------------------------------------------------------------
Mouse 1 SF A FuncResizeOrRaiseOrMaximize
#-----------------------------------------------------------------------
# Button 2 in the titlebar, corners or sides, with any modifiers, gives
# move <- drag, raise/lower <- click
#-----------------------------------------------------------------------
Mouse 2 TSF A FuncMoveOrRaiseLower
#-----------------------------------------------------------------------
# Button 2 in the window, with ALT key, gives
# move <- drag, raise/lower <- click
#-----------------------------------------------------------------------
Mouse 2 W M FuncMoveOrRaiseLower
#-----------------------------------------------------------------------
# Button 3 in the titlebar, corners or sides, with any modifiers, gives
# WindowOps2 menu <- click, with ALT key WindowOps menu <- click
#-----------------------------------------------------------------------
Mouse 3 TSF A Menu MenuWindowOpsTrimmed
Mouse 3 TSF M Menu MenuWindowOpsFull
#-----------------------------------------------------------------------
# Roll mouse wheel on Titlebars to shade/unshade
#-----------------------------------------------------------------------
Mouse 4 T A FuncWheelToggleShade True
Mouse 5 T A FuncWheelToggleShade False
#-----------------------------------------------------------------------
# Help info with SHIFT-CTRL-ALT to Pointer in Window Decorations
#-----------------------------------------------------------------------
# Button Context Modifi Function
Mouse 0 T SCM FuncShowMessage "Mouse Bindings for Titlebar" \
"Mouse 1: Drag moves window" \
" Maximize on double click" \
"Mouse 2: Drag moves window" \
" Raise or lower with click" \
"Mouse 3: WindowOpsTrimmed menu with click" \
" WindowOpsFull menu with ALT + click" \
"Mouse 4/5: Shade/unshade window" \
" with rolling wheel up/down"
Mouse 0 SF SCM FuncShowMessage "Mouse Bindings for Corners and Sides" \
"Mouse 1: Drag resize window" \
" Maximize on double click" \
"Mouse 2: Drag moves window" \
" Raise or lower with click" \
"Mouse 3: WindowOpsTrimmed menu with click" \
" WindowOpsFull menu with ALT + click"
Mouse 0 W SCM FuncShowMessage "Mouse Bindings for Window area" \
"Mouse 1: Root menu with ALT + click" \
"Mouse 2: Drag + ALT moves window" \
" Raise or lower with ALT + click" \
"Mouse 4/5: Switch to page left/right with" \
" SHIFT-CTRL + rolling wheel up/down anywhere" \
" Switch with window to page left/right with" \
" SHIFT-ALT + rolling wheel up/down anywhere" \
#***********************************************************************
# 6.1.4. Pointer in Icons
#***********************************************************************
# Button Context Modifi Function
#-----------------------------------------------------------------------
# Button 1 in icon, with any modifiers, gives
# move <- drag, deiconify <- double click
#-----------------------------------------------------------------------
Mouse 1 I A FuncMoveOrIconify
#-----------------------------------------------------------------------
# Button 2 in icon, with any modifiers, gives
# deiconify <- click
#-----------------------------------------------------------------------
Mouse 2 I A FuncIconify
#-----------------------------------------------------------------------
# Button 2 in icon, with CTRL key, gives
# deiconify all icons from the same resource group <- click
#-----------------------------------------------------------------------
Mouse 2 I C FuncIconifySameResource toggle
#-----------------------------------------------------------------------
# Button 3 in icon, with any modifiers, gives
# WindowOps2 menu <- click
#-----------------------------------------------------------------------
Mouse 3 I A Menu MenuWindowOpsTrimmed
#-----------------------------------------------------------------------
# Button 3 in icon, with CTRL key, gives
# WindowGroupOps menu
#-----------------------------------------------------------------------
Mouse 3 I C Menu MenuWindowGroupOps
#-----------------------------------------------------------------------
# Help info with SHIFT-CTRL-ALT to Pointer in Icons
#-----------------------------------------------------------------------
# Button Context Modifi Function
Mouse 0 I SCM FuncShowMessage "Mouse Bindings for Icons" \
"Mouse 1: Drag moves icon" \
" Deiconify with double click" \
" Root menu with ALT + click" \
"Mouse 2: Deiconify icon with click" \
" All of same resource group with CTRL + click" \
"Mouse 3: WindowOpsTrimmed menu with click" \
" WindowGroupOps menu with CTRL + click"
#***********************************************************************
# 6.1.5. Pointer in Window (and in Icon for consistency)
#***********************************************************************
# Button Context Modifi Function
Mouse 1 WI M Menu MenuRoot
#=======================================================================
# 6.2 Keyboard
#=======================================================================
# All keyboard bindings are located in $FNS_SYSTEMDIR/.bindings or
# $FVWM_USERDIR/.bindings
Load .bindings
#=======================================================================
# 6.3 Strokes
#=======================================================================
# You need fvwm compiled with stroke support and libstroke installed
# See the Stroke and StrokeFunc entries in the fvwm man page
# We use mostly simple stroke motion. For complex stroke motions we need
# to consider many sloppy stroke motions for each action.
#-----------------------------------------------------------------------
#STROKE 2
#-----------------------------------------------------------------------
# Button Context Modifi Function
#Mouse 3 R N StrokeFunc FeedBack DrawMotion
#Mouse 3 W M StrokeFunc FeedBack DrawMotion
#-----------------------------------------------------------------------
#STROKE 2 We need to redefine the default bindings
#-----------------------------------------------------------------------
#Stroke 0 0 RN WindowList mouse -1p -1p
#Stroke 0 0 WM WindowList mouse -1p -1p
#-----------------------------------------------------------------------
#PREF 11
#STROKE 2 A | from the top to the bottom
#-----------------------------------------------------------------------
#Stroke N852 0 RN Exec exec xterm
#Stroke N852 0 WM Exec exec xterm
#-----------------------------------------------------------------------
#STROKE 2 A | from the bottom to the top
#-----------------------------------------------------------------------
#Stroke N258 0 RN Exec exec emacs
#Stroke N258 0 WM Exec exec emacs
#-----------------------------------------------------------------------
#STROKE 2 A / from the bottom to the top
#-----------------------------------------------------------------------
#Stroke N159 0 RN Exec exec xfm
#Stroke N159 0 WM Exec exec xfm
#-----------------------------------------------------------------------
#STROKE 2 A C from the top
#-----------------------------------------------------------------------
#Stroke N9874123 0 RN Exec exec xcalc
#Stroke N9874123 0 WM Exec exec xcalc
#-----------------------------------------------------------------------
#STROKE 11 A N (from the bottom)
#-----------------------------------------------------------------------
#Stroke 7415963 0 RN Exec exec mozilla
#Stroke 74148963 0 RN Exec exec mozilla
#Stroke 74158963 0 RN Exec exec mozilla
#Stroke 7418963 0 RN Exec exec mozilla
#Stroke 415963 0 RN Exec exec mozilla
#
#Stroke 7415963 0 WM Exec exec mozilla
#Stroke 74148963 0 WM Exec exec mozilla
#Stroke 74158963 0 WM Exec exec mozilla
#Stroke 7418963 0 WM Exec exec mozilla
#Stroke 415963 0 WM Exec exec mozilla
#-----------------------------------------------------------------------
#STROKE 4 A clockwise box from the top left
#-----------------------------------------------------------------------
#Stroke N78963214 0 RN FvwmForm FvwmForm-QuitVerify
#Stroke N789632147 0 RN FvwmForm FvwmForm-QuitVerify
#Stroke N78963214 0 WM FvwmForm FvwmForm-QuitVerify
#Stroke N789632147 0 WM FvwmForm FvwmForm-QuitVerify
########################################################################
# 7. M O D U L E S
########################################################################
# Definitions used by Fvwm modules.
# (Alphabetic order is used, but the Form are at the end)
#=======================================================================
# 7.1 FvwmAnimate
#=======================================================================
DestroyModuleConfig FvwmAnimate: *
*FvwmAnimate: Color #6e6e6e
*FvwmAnimate: Effect twist
*FvwmAnimate: Delay 3
*FvwmAnimate: Iterations 50
*FvwmAnimate: Width 5
#=======================================================================
# 7.2 FvwmBacker
#=======================================================================
DestroyModuleConfig FvwmBacker: *
*FvwmBacker: Command(Desk 0, Page * *) Colorset 24
#=======================================================================
# 7.3 FvwmBanner
#=======================================================================
DestroyModuleConfig FvwmBanner: *
*FvwmBanner: NoDecor
*FvwmBanner: Pixmap $[infostore.used_banner]
*FvwmBanner: Timeout 3
#=======================================================================
# 7.4 FvwmEvent
#=======================================================================
#***********************************************************************
# 7.4.1 Common FvwmEvents
#***********************************************************************
DestroyModuleConfig FvwmEventCommon: *
*FvwmEventCommon: deiconify FuncDeThumbnail
#***********************************************************************
# 7.4.2 Sound FvwmEvents
#***********************************************************************
DestroyModuleConfig FvwmEventSound: *
# replace rplay by a sound player that can play .au sound file
#*FvwmEvent: Cmd "Exec exec rplay "
*FvwmEventSound: StartDelay 3
*FvwmEventSound: Delay 1
#*FvwmEventSound: startup "/usr/share/sounds/gong.au"
#*FvwmEventSound: add_window "/usr/share/sounds/wipe.au"
#*FvwmEventSound: destroy_window "/usr/share/sounds/pook.au"
#*FvwmEventSound: iconify "/usr/share/sounds/clong.au"
#*FvwmEventSound: deiconify "/usr/share/sounds/clong.au"
#*FvwmEventSound: windowshade "/usr/share/sounds/slide.au"
#*FvwmEventSound: dewindowshade "/usr/share/sounds/slide.au"
#*FvwmEventSound: new_page "/usr/share/sounds/slide.au"
#=======================================================================
# 7.5 FvwmForm
#=======================================================================
#***********************************************************************
# 7.5.1 RunCommand Window
#***********************************************************************
DestroyModuleConfig FvwmForm-RunCommand: *
*FvwmForm-RunCommand: WarpPointer
*FvwmForm-RunCommand: Font 8x13
*FvwmForm-RunCommand: Title "$[gt.Run Command]"
*FvwmForm-RunCommand: Line center
*FvwmForm-RunCommand: Text "$[gt.Run Command]"
*FvwmForm-RunCommand: Line left
*FvwmForm-RunCommand: Text "$[gt.Command:]"
*FvwmForm-RunCommand: Input Command 30 ""
*FvwmForm-RunCommand: Line center
*FvwmForm-RunCommand: Selection cmd multiple
*FvwmForm-RunCommand: Choice TERM TERM off "$[gt.Run in Terminal]"
*FvwmForm-RunCommand: Line expand
*FvwmForm-RunCommand: Button quit "$[gt.Execute]" ^M
*FvwmForm-RunCommand: Command $(TERM?exec xterm -hold -T "$(Command)" -n "$(Command)" -e $(Command))
*FvwmForm-RunCommand: Command exec $(Command)
*FvwmForm-RunCommand: Button quit "$[gt.Cancel]"
*FvwmForm-RunCommand: Command Nop
#***********************************************************************
# 7.5.2 About box
#***********************************************************************
DestroyModuleConfig FvwmForm-About: *
*FvwmForm-About: WarpPointer
*FvwmForm-About: Title "$[gt.About]"
*FvwmForm-About: Font 10x20
*FvwmForm-About: Line center
*FvwmForm-About: Text "FVWM-Nightshade"
*FvwmForm-About: Font 8x13bold
*FvwmForm-About: Line center
*FvwmForm-About: Text "$[gt.Version]: $[infostore.ns_version]"
*FvwmForm-About: Line center
*FvwmForm-About: Line center
*FvwmForm-About: Line center
*FvwmForm-About: Text "$[gt.Authors]:"
*FvwmForm-About: Font 8x13
*FvwmForm-About: Line center
*FvwmForm-About: Text "Thomas Funk <t.funk@web.de>"
*FvwmForm-About: Line center
*FvwmForm-About: Text "Bernhard Popp <kermit.popp@googlemail.com>"
*FvwmForm-About: Line center
*FvwmForm-About: Line center
*FvwmForm-About: Line center
*FvwmForm-About: Button quit " $[gt.Close] " ^M
*FvwmForm-About: Command Nop
*FvwmForm-About: Line center
#***********************************************************************
# 7.5.2 Message box
#***********************************************************************
#-----------------------------------------------------------------------
# Shows a FvwmForm Infobox with one or multiple message line(s)
# realized with shell commands over PipeRead
#-----------------------------------------------------------------------
# Example: