-
Notifications
You must be signed in to change notification settings - Fork 4
/
fvwm2rc
261 lines (224 loc) · 8.71 KB
/
fvwm2rc
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
#=============================================================================
# FileName: .fvwm2rc
# Desc: fvwm config
# Author: Chu Yanshuo
# Email: [email protected]
# HomePage: http://yanshuo.name
# Version: 0.0.1
# LastChange: 2017-12-16 15:16:52
# History:
#=============================================================================
#######################################################################
# set environment variables #
#######################################################################
################
# set folder #
################
SetEnv fvwm_home $[HOME]/.fvwm
SetEnv fvwm_icon $[fvwm_home]/icons
SetEnv system_icon1 /usr/share/icons/deepin/actions
SetEnv system_icon2 /usr/share/icons/deepin/apps
SetEnv system_icon3 /usr/share/icons/deepin/cursors
SetEnv system_icon4 /usr/share/icons/deepin/devices
SetEnv system_icon5 /usr/share/icons/deepin/emblems
SetEnv system_icon6 /usr/share/icons/deepin/mimetypes
SetEnv system_icon7 /usr/share/icons/deepin/places
SetEnv system_icon8 /usr/share/icons/deepin/status
SetEnv system_icon9 /usr/share/icons/Papirus/22x22/apps
SetEnv system_icon10 /usr/share/icons/Faenza/apps/scalable
SetEnv system_icon12 /usr/share/icons/hicolor/scalable/apps
SetEnv system_icon13 /usr/share/icons/hicolor/scalable/actions
SetEnv system_icon14 /usr/share/icons/hicolor/scalable/animations
SetEnv system_icon15 /usr/share/icons/hicolor/scalable/apps
SetEnv system_icon16 /usr/share/icons/hicolor/scalable/categories
SetEnv system_icon17 /usr/share/icons/hicolor/scalable/devices
SetEnv system_icon18 /usr/share/icons/hicolor/scalable/emblems
SetEnv system_icon19 /usr/share/icons/hicolor/scalable/emotes
SetEnv system_icon20 /usr/share/icons/hicolor/scalable/filesystems
SetEnv system_icon21 /usr/share/icons/hicolor/scalable/intl
SetEnv system_icon22 /usr/share/icons/hicolor/scalable/mimetypes
SetEnv system_icon23 /usr/share/icons/hicolor/scalable/places
SetEnv system_icon24 /usr/share/icons/hicolor/scalable/status
SetEnv system_icon25 /usr/share/icons/hicolor/scalable/stock
SetEnv system_icon26 /usr/share/icons/Sea/apps/scalable
SetEnv fvwm_script $[fvwm_home]/scripts
SetEnv fvwm_tmp $[fvwm_home]/tmp
SetEnv fvwm_screenshot $[fvwm_home]/screenshot
SetEnv fvwm_path1 /usr/bin
SetEnv fvwm_path2 /usr/local/bin
#######################
# Set software path #
#######################
SetEnv fvwm_mutt $[fvwm_path1]/neomutt
SetEnv fvwm_firefox $[fvwm_path1]/firefox
SetEnv fvwm_chrome $[fvwm_path1]/google-chrome-stable
SetEnv fvwm_nautilus $[fvwm_path1]/dolphin
SetEnv fvwm_dolphin $[fvwm_path1]/dolphin
SetEnv fvwm_xterm $[fvwm_path1]/xterm
SetEnv fvwm_gnome-terminal $[fvwm_path1]/gnome-terminal
SetEnv fvwm_goldendict $[fvwm_path2]/goldendict
SetEnv fvwm_emacs $[fvwm_path1]/emacs
SetEnv fvwm_emacsclient $[fvwm_path1]/emacsclient
SetEnv fvwm_rstudio $[fvwm_path1]/rstudio
SetEnv fvwm_okular $[fvwm_path1]/okular
######################
# set width length #
######################
SetEnv back_borderwidth 1
SetEnv front_borderwidth 1
SetEnv fvwmbuttons_width 58
SetEnv fvwmbuttons_height 360
SetEnv fvwmpager_width 158
SetEnv fvwmpager_height 460
SetEnv fvwmpager_desktop_rows 5
SetEnv fvwmtray_height 360
SetEnv fvwmiconman_height 28
##############
# set font #
##############
SetEnv fvwm_font "xft:WenQuanYi Micro Hei:Bold:size=14:antialias=True"
SetEnv fvwm_font_large "xft:WenQuanYi Micro Hei:Bold:size=20:antialias=True"
#############
# osd_cat #
#############
SetEnv fvwm_osd_cat_b "osd_cat -A left -p bottom -o -300 -i -10 -f -adobe-courier-bold-r-normal--0-600-100-100-m-0-iso8859-1 -s 1 -d 1 -c"
SetEnv fvwm_osd_cat_s "osd_cat -l 8 -A right -p top -i -8 -s 1 -d 1 -f -adobe-courier-bold-r-normal--0-150-100-100-m-0-iso8859-1 -c"
SetEnv fvwm_page_N "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|###\\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_NW "\
+---+---+---+\\\\\\n\
\\\|###\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_NE "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|###\\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_C "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|###\\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_W "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|###\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_E "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|###\\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_S "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|###\\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_SW "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|###\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
SetEnv fvwm_page_SE "\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|\\\\\\n\
+---+---+---+\\\\\\n\
\\\|\\\ \\\ \\\ \\\|\\\ \\\ \\\ \\\|###\\\|\\\\\\n\
+---+---+---+\\\\\\n\
"
############
# margin #
############
Piperead "echo SetEnv fvwm_left_margin $(($[fvwmbuttons_width]+2*$[back_borderwidth]))"
Piperead "echo SetEnv fvwm_right_margin $(($[fvwmpager_width]+2*$[back_borderwidth]))"
Piperead "echo SetEnv fvwm_top_margin $(($[fvwmiconman_height]+2*$[back_borderwidth]))"
Piperead "echo SetEnv fvwm_vpw $(($[vp.width]-$[fvwm_left_margin]-$[fvwm_right_margin]))"
Piperead "echo SetEnv fvwm_vph $(($[vp.height]-2*$[fvwm_top_margin]))"
SetEnv fvwm_geometry "$[fvwm_vpw]x$[fvwm_vph]+[fvwm_left_margin]+$[fvwm_top_margin]"
EwmhBaseStruts $[fvwm_left_margin] $[fvwm_right_margin] 0 0
####################
# set image path #
####################
ImagePath $[fvwm_icon]:$[fvwm_icon];.png:$[fvwm_icon]/48x48:$[system_icon1]/256:$[system_icon2]/256:$[system_icon3]/256:$[system_icon4]/256:$[system_icon5]/256:$[system_icon6]/256:$[system_icon7]/256:$[system_icon8]/256:$[system_icon9]:$[system_icon10]:$[system_icon11]:$[system_icon12]:$[system_icon13]:$[system_icon14]:$[system_icon15]:$[system_icon16]:$[system_icon17]:$[system_icon18]:$[system_icon19]:$[system_icon20]:$[system_icon21]:$[system_icon22]:$[system_icon23]:$[system_icon24]:$[system_icon25]:$[system_icon26]:
#######################################################################
# desktop config #
#######################################################################
########################
# size and name, etc #
########################
DesktopSize 3x3
DesktopName 0 1
DesktopName 1 2
DesktopName 2 3
DesktopName 3 4
DesktopName 4 5
EdgeScroll 0 0
EdgeResistance 150 150
EdgeThickness 4
ClickTime 350
DoubleClickTime 500
MoveThreshold 3
OpaqueMoveSize -1
Emulate MWM
HideGeometryWindow Move
HideGeometryWindow Resize
SnapAttraction 5 SameType Screen
SnapGrid 3 3
XorValue 55555
SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
#################
# font config #
#################
DefaultFont $[fvwm_font]
WindowFont $[fvwm_font]
IconFont $[fvwm_font]
#######################################################################
# Load source files #
#######################################################################
Read ./conf/colorsets.fvwm2rc
Read ./conf/styles.fvwm2rc
Read ./conf/programfunc.fvwm2rc
Read ./conf/functions.fvwm2rc
Read ./conf/key.fvwm2rc
Read ./conf/mouse.fvwm2rc
Read ./conf/menus.fvwm2rc
Read ./conf/modules.fvwm2rc
Read ./conf/startupfunc.fvwm2rc