-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
233 lines (199 loc) · 6.39 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
#################
#
#FvwmStep aka AfterStepClassic-1.1b3
#
#################
#################
# This is for workspaces, I don't use them, but you can add them here. You can install wmpager and add it to the Wharf.
# EdgeResistance, etc, put here in case you want to do this.
#################
EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750
DeskTopSize 1x1
################
#Init functions
################
AddToFunc StartFunction
+ I Module FvwmAnimate
AddToFunc InitFunction
+ I exec xsetroot -solid Steelblue4
################
#Icon Paths. Season with your own.
################
ImagePath $HOME/.fvwm:/usr/local/share/icons:$HOME/.fvwm/icons
################
#The Wharf
################
Style "Wharf" NoTitle, !Handles, !Borders, StaysOnBottom
*Wharf: Geometry 64x512-0+0
*Wharf: Font -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
*Wharf: Rows 15
*Wharf: Columns 1
*Wharf: Back #bfbfbf
*Wharf: Fore black
*Wharf: BoxSize 64x64
*Wharf: Pixmap tile.xpm
##############
# This collapses the Wharf into the AS Classic Logo.
###############
Module FvwmButtons RollBar
DestroyModuleConfig RollBar: *
*RollBar: Fore Black
*RollBar: Back grey
*RollBar: Geometry 64x64-0+0
*RollBar: Rows 1
*RollBar: Frame 0
*Rollbar: Pixmap tile.xpm
*RollBar: (1x1, Icon 'AfterStep.xpm', Panel (down, steps 6, delay 10, position module top, indicator 40) "Wharf" 'Module FvwmButtons Wharf')
Style RollBar NoTitle, NoHandles, Sticky, WindowListSkip, \
BorderWidth 0, CirculateSkip
*Wharf: (Swallow(UseOld,NoHint,Respawn) "wmclock" `Exec wmclock -12`)
)
*Wharf: (1x1 Icon 'monitor.xpm',\
Action(Mouse 1) 'Exec exec xterm'\
)
*Wharf: (1x1 Icon 'text.xpm',\
Action(Mouse 1) 'Exec exec leafpad'\
)
*Wharf: (1x1 Icon 'netscape3.xpm', \
Action(Mouse 1) 'Exec exec firefox' \
)
*Wharf: (1x1 Icon 'libreoffice-writer.png', \
Action(Mouse 1) 'Exec exec lowriter' \
)
*Wharf: (1x1 Icon 'FileFolders.xpm', \
Action(Mouse 1) 'Exec exec pcmanfm' \
)
*Wharf: (1x1 Icon 'interface.xpm',\
Action(Mouse 1) 'Exec leafpad /home/chris/.fvwm2rc'
)
*Wharf: (1x1 Icon 'recycler.xpm', \
Action(Mouse 1) 'restart'
#############
# Default Styles. Make sure these fonts exist on your system:
#############
Style * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
Style * IconFont -adobe-times-medium-r-*-*-8-*-*-*-*-*-*-*
Style * HilightFore White, HilightBack #000044
Style * IconBox 0 -10 -280 -1
Style * ClickToFocus
Style * TileCascadePlacement
Style "xterm" IconOverride, Icon monitor.xpm
Style "leafpad" IconOverride, Icon text.xpm
Style "Mozilla Firefox" IconOverride, Icon netscape3.xpm
Style "libreoffice" IconOverride, Icon libreoffice-writer.png
Style "chromium" IconOverride, Icon netscape3.xpm
Style "pcmanfm" IconOverride, Icon FileFolders.xpm
Style * IconSize 32x32
Style Wharf WindowListSkip
Style xconsole WindowListSkip
Style * DecorateTransient
#############
# This needs work to emulate AfterStep Classic 1.1b2
#############
MenuStyle * Foreground black, Background #bfbfbf, white
MenuStyle * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
MenuStyle * Hilight3DThickness 1
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * Animation, AutomaticHotkeysOff, DoubleClickTime
MenuStyle * BorderWidth 2, SidePic, SideColor
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * VerticalItemSpacing, VerticalTitleSpacing
##############
# NeXTStep Decor
##############
DestroyDecor DefaultDecor
AddToDecor DefaultDecor
+ ButtonStyle 1 \
ActiveUp (Pixmap minimize-bevel-button.png -- Flat) \
ActiveDown (Pixmap minimize-bevel-pressed.png -- Flat) \
Inactive (Pixmap minimize-bevel-pressed.png -- Flat)
+ ButtonStyle 2 \
ActiveUp (Pixmap close-bevel-button.png -- Flat) \
ActiveDown (Pixmap close-bevel-pressed.png -- Flat) \
Inactive (Pixmap close-bevel-pressed.png -- Flat)
+ TitleStyle -- Flat
+ BorderStyle Simple -- HiddenHandles NoInset
Style * UseDecor DefaultDecor
Mouse 1 1 A Iconify
Mouse 1 2 A Close
#############
# Menus
#############
######################## Menus ###################
AddToMenu RootMenu "HotList" Title
+ "XTerm" Exec exec xterm -geometry 80x25 -sl 256 -sb -ls -T '[email protected]'
+ "Firefox" Exec exec firefox
+ "Leafpad" Exec exec leafpad
+ "PictureViewer" Exec exec gpicview
+ "Writer" Exec exec lowriter
+ "Filemgr" Exec exec pcmanfm
+ "Exit ASClassic" Popup Quit-Verify
AddToMenu Quit-Verify "Really Quit?" Title
+ "Yes, Really Quit" Quit
+ "" Nop
+ "Restart ASClassic" Restart
+ "" Nop
+ "No, Don't Quit" Nop
############
# Mouse functions
############
AddToFunc MailFunction I Next (AcceptsFocus $0) Iconify -1
+ I Next (AcceptsFocus $0) Focus
+ I None (AcceptsFocus $0) Exec $0 $1
AddToFunc Move-or-Raise I Raise
+ M Move
+ D Lower
AddToFunc Move-or-Raise2 M Raise
+ M Move
+ D Lower
AddToFunc Maximize-Func M Maximize 0 100
+ C Maximize 0 80
+ D Maximize 100 100
AddToFunc Move-or-Iconify I Raise
+ M Move
+ D Iconify
AddToFunc Resize-or-Raise I Raise
+ M Resize
+ D Lower
AddToFunc Resize-or-Raise2 M Raise
+ M Resize
+ D Lower
AddToFunc PrintFunction I Raise
+ I Exec xdpr -id $w
AddToFunc PrintReverseFunction I Raise
+ I Exec xdpr 1/2 -h -rv -id $w
AddToFunc Iconify-and-Raise I Iconify
+ I Raise
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
##############
# This sets up the square minimzed icons
###############
Colorset 5 bg rgb:a8/a8/a8
Style * IconBackgroundColorset 5, IconBackgroundPadding 6, IconBackgroundRelief 2, IconTitleRelief 2
##############
#This should keep minimized icons packed between minimizes
##############
DestroyFunc DeiconifyAndRearrange
AddToFunc DeiconifyAndRearrange
+ C Iconify off
+ C All (CurrentPage, Iconic) PlaceAgain Icon
###################
# This is the animation for iconifying/deiconifying icons. Season to taste.
###################
*FvwmAnimate: Effect Zoom3D
*FvwmAnimate: Iterations 7
*FvwmAnimate: Delay 1
*FvwmAnimate: Width 0
*FvwmAnimate: Twist 1