-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
183 lines (157 loc) · 6.22 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
EdgeResistance 250 100
EdgeScroll 0 0 # disable mouse jumping between windows
EdgeScroll 100 100
ClickTime 750
# DeskTopSize 2x2 # 4 desktops
ImagePath +:$HOME/.fvwm/icons # icon path
Key 1 T SC MoveToPage 0 0 # shift+ctrl+1 will send the window whose title bar is sit by cursor at
Key 2 T SC MoveToPage 0 1
Key 3 T SC MoveToPage 1 0
Key 4 T SC MoveToPage 1 1
Key j A SC GoToPage 0 0
Key k A SC GoToPage 0 1
Key l A SC GoToPage 1 0
Key u A SC GoToPage 1 1
Key e A SC Exec exec emacs
Key f A SC Exec exec firefox
Key g A SC Exec exec pidgin
#Key x A SC Exec exec xterm
Key c A SCM Quit # shift+alt+ctrl+c: quit fvwm
Key r A SCM Restart # shift+alt+ctrl+r: restart fvwm
Key c WF SC Close # close current window
Key i W SC Iconify # minimize current window
Key p W SC Maximize # maximize current window
Key o W SC RaiseLower # defocus currrent window
#Key F3 A A Module FvwmConsole
Key F1 A M Exec exec myrxvt
#Key F2 A M Exec exec firefox
Key F4 A M Pick Close
Key X A 4 Pick Desktroy
CursorStyle ROOT arrows2.xpm 0 0
#CursorStyle TITLE 62
CursorStyle STROKE 86
# disable left-click menu
Mouse 1 R A Nop
# add close button to window
Mouse 1 6 A Close
ButtonStyle 6 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
Mouse 1 4 A Iconify
DestroyFunc Maximize-Func2
AddToFunc Maximize-Func2 "M" Maximize 100 0
+ "C" Maximize 80 0
+ "D" Maximize 100 100
Mouse 3 2 A Maximize-Func2
##### Initialization Functions #####
AddToFunc StartFunction
#+ I Module FvwmButtons MainPanel
+ I Module FvwmAnimate
+ I Module FvwmTaskBar
#+ I Module FvwmPager
#+ I Module FvwmButtons -g +0+0
+ I Exec exec xpmroot $[HOME]/.fvwm/background/background.png
# + I Exec exec xclock
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec xscreensaver -no-splash
AddToFunc SessionInitFunction
+ I All (xpmroot) Close
#+ I All (xclock) Close
AddToFunc ExitFunction
+ I Exec exec sync
##### Menus #####
#AddToMenu RootMenu "RootMenu" Title
#+ "Xterm" Exec exec xterm
#+ "Top" Exec exec xterm -T Top -n Top -e Top
#+ "Internet" Popup Internet
#+ "Edit" Popup Edit
#+ "Other" Popup Other
#+ "" Nop
#+ "Exit Fvwm" Popup Quit-Verify
#AddToMenu Internet "Internet" Title
#+ "Firefox" Exec exec firefox
# Window settings
Style * Colorset 92, HilightColorset 91
Style * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"
# disable auto-focusing on hovering
Style * ClickToFocus, ClickToFocusPassesClick
# set focus on clicking
Style * MouseFocusClickRaises
# disable animation while minimize and maximize
Style * NoIcon
# Try not to cascade for a new window
Style * TileCascadePlacement
Style * DecorateTransient
# Sticky Fvwm module
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip
# Colorset defining
Colorset 91 RootTransparent buffer, fg white, bg average, Tint cyan 15, bgTint cyan 15
Colorset 92 RootTransparent buffer, fg white, bg average, Tint blue 15, bgTint blue 15
# Transparency setting
BorderStyle Inactive Colorset 42 --flat
BorderStyle Active Colorset 41 --flat
TitleStyle AllInactive Colorset 42 --flat
TitleStyle AllActive Colorset 42 --flat
# Pager settings
SetEnv FvwmPagerDesktops "8"
PipeRead "echo SetEnv FvwmPager-Width /"$2[8*$FvwmPagerDesktops[/""
PipeRead "echo *FvwmPager: Geometry $[FvwmPager-Width]x24--10+-10" # sizing: 24-pixel, position "-1+-1"
##### Button bar #####
# FvwmButtons: Hilight3DOff, HilightBack #424164, ActiveFore white
# Colorset 0 Transparent, fg white
# #*FvwmButtons: ShowTips
# #*FvwmButtons: FocusFore coresilk
# #*FvwmButtons: NoSeperators
# #*FvwmButtons: UseSkipList
# *FvwmButtons: Colorset 0
# *FvwmButtons: Foreground grey90
# *FvwmButtons: Background #1c5572
# #*FvwmButtons: Font "-adobe-helvetica-bold-r-*-*-12-*, -*-simsun-medeium-r-*-*-12-*-*-*-*-*-*-*"
# *FvwmButtons: Font "-adobe-helvetica-bold-r-*-*-12-*"
# #*FvwmButtons: Face VGradient 128 1#2c80A0 1 #1c5572
# #*FvwmButtons: WindowBorderWidth 1
# #*FvwmButtons: Window3DBorders
# *FvwmButtons: Geometry +000 # position
# *FvwmButtons: Columns 2 # 8 buttons
# *FvwmButtons: Rows 1 # one row display
# ColormapFocus FollowsFocus
# Style FvwmButtons NoTitle,WindowListSkip,BorderWidth 1, HandleWidth 1, Sticky, StaysOnTop, CirculateSkip
# # programs for buttons
# *FvwmButtons: (Title (Side) "xrvt", Left, Bach #dedbde,Action (Mouse 1) `Exec exec myrxvt`)
# *FvwmButtons: (Title (Side) "xterm", Left, Bach #dedbde,Action (Mouse 1) `Exec exec xterm`)
# #*FvwmButtons: (Title (Side) "Firefox", Left, Bach #dedbde, Icon firefox.png,Action (
c
Mouse 1) `Exec exec firefox`)
# #*FvwmButtons: (Title (Side) "Run", Left, Bach #dedbde, Icon run.png,Action (Mouse 1) `Exec exec grun`)
# #*FvwmButtons: (Title (Side) "Restart", Left, Bach #dedbde,Icon reload.png,Action (Mouse 1) `Restart`)
# #*FvwmButtons: (Title (Side) "Quit", Left, Bach #dedbde,Icon reload.png,Action (Mouse 1) `Quite`)
##### taskbar #####
Style FvwmTaskBar NoTitle, WindowListSkip, CirculateSkip, Sticky, BorderWidth 1, NoHandles, StaysOnBottom
Style FvwmTaskBar NeverFocus, Layer 0
DestroyModuleConfig FvwmTaskBar: *
*FvwmTaskBar: Geometry -0-0
*FvwmTaskBar: Rows 1
*FvwmTaskBar: Font -adobe-helvetica-bold-r-*-*-12-*
#,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*
*FvwmTaskBar: Font "-adobe-helvetica-bold-r-*-*-12-*"
#,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*"
*FvwmTaskBar: SelFont -adobe-helvetica-bold-r-*-*-12-*
#,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*
*FvwmTaskBar: Colorset 0
*FvwmTaskBar: AutoStick
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: PageOnly
*FvwmTaskBar: ShowTips
*FvwmTaskBar: TipsColorSet 0
*FvwmTaskBar: StartName Fvwm
*FvwmTaskBar: StartMenu MenuFvwmRoot Mouse -100p -104m
*FvwmTaskBar: NoBrightFocus
#*FvwmTaskBar: 3DFvwm
# Taskbar color settings
*FvwmTaskBar: Back #C0C0C0
*FvwmTaskBar: Fore #3B3B3B
*FvwmTaskBar: FocusFore cornsilk
*FvwmTaskBar: IconBack #3B3B3B
*FvwmTaskBar: IconFore white
*FvwmTaskBar: ClockFormat %R %m/%d
*FvwmTaskBar: Action Click 3 Menu MenuFvwmWindowOps mouse -1p -100m