guest@dotshare [~/groups/wms/fvwm] $ ls PeaceUpdated/ | cat

Peace(Updated) (scrot, raw, dl) (+5 likes)

Mafia Jul 04, 2012 (wms/fvwm)

SCROT

  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
##  Environmental variables

# Preferred applications
SetEnv fvwm_browser firefox
SetEnv fvwm_terminal urxvt
SetEnv fvwm_editor "urxvt -e vim"
SetEnv fvwm_mail "urxvt -e mutt"
SetEnv fvwm_chat "rxvt -e irssi"
SetEnv fvwm_player "urxvt -e cmus"
SetEnv fvwm_filemanager pcmanfm 
SetEnv fvwm_image_viewer feh
SetEnv fvwm_runner gmrun


##  General settings 

# Ignore CapsLock and NumLock modifiers
IgnoreModifiers 2L

# Resize and move windows instead of
# borders
#OpaqueMoveSize unlimited
#Style * ResizeOpaque

# Indexed window names to make sure
# each window name is unique
Style * IndexedWindowName

# Get rid of applications icons
Style * !Icon

# Hides the position and resize dialog 
HideGeometryWindow


##  Virtual Desktops 

# Number of desktops and default
DesktopSize 3x1 
Desktop 0 Main
DesktopName 0 /dev/ws1

# Desktop edge thickness and resistance
# for switching easily with mouse
Style EdgeScroll 100 100
Style EdgeResistance 400 400 
Style EdgeThickness 1


##  Desktop backgrounds

*FvwmBacker: Command (Desk 0, Page 0 0) Exec fvwm-root \
/home/mafia/back.png

##  Auto started applications 

# This configuration uses some fvwm modules
# they are also started here
DestroyFunc StartFunction
AddToFunc StartFunction

# FvwmCommandS is used to issue fvwm commands
+ I Module FvwmCommandS

# FvwmAnimate handles some simple animation
+ I Module FvwmAnimate

# FvwmButtons is a powerful tool for creating
# launchers, buttons, switches and such 
+ I Module FvwmButtons

# FvwmBacker is used for desktop backgrounds
+ I Module FvwmBacker

# FvwmPerl is used for parsing perl
+ I Module FvwmPerl

##  Functions

# Toggle 'always on top' using TestRc
DestroyFunc WinOnTop
AddToFunc WinOnTop
+ I ThisWindow (Layer 6) Layer
+ I TestRc (NoMatch) Layer 0 6

# Screenshots

DestroyFunc FvwmDesktopScreenshotDelayed
AddToFunc   FvwmDesktopScreenshotDelayed
+ I Exec exec scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & feh ~/images/$f'


# Widescreen formatting 
DestroyFunc ReadableWidth
AddToFunc ReadableWidth
+ I Maximize 60
+ I Move 50-50w 50-50w

# Autoshade functions set mimics
# kwin autoshade feature
DestroyFunc ToggleAutoshaded
AddToFunc ToggleAutoshaded
+ I State 0

DestroyFunc AutoShade
AddToFunc AutoShade
+ I ThisWindow (State 0) WindowShade True

DestroyFunc AutoUnshade
AddToFunc AutoUnshade
+ I ThisWindow (State 0) WindowShade False

# This module call actually belongs to startup 
# function, but I left it here for readability

Module FvwmAuto 0 -menter "Silent AutoUnshade" "Silent AutoShade"

# This is a smart launcher to launch an
# an application if it is not running. 
# Also it raises the application if it's
# running and switches between given
# applications/windows if you have two or
# more of them.
DestroyFunc LaunchRaiseSwitch
AddToFunc LaunchRaiseSwitch
+ I None (*$0*) Exec exec $1
+ I Next (*$0*) Focus
+ I Next (*$0*) Iconify False

Module FvwmAuto 0 -mfocus "Silent Raise" 

# A mixture of previous two examples would
# let you group windows so that you can
# switch between them with a hotkey.
# Adding a window to a group by chanding
# it's state
DestroyFunc AddToGroup
AddToFunc AddToGroup

+ I ThisWindow State $0

# And switching between groups amd inside them:
DestroyFunc GroupSwitch
AddToFunc GroupSwitch
+ I Next (State $0) Focus

# Quake-like terminal 
DestroyFunc QLikeTerm
AddToFunc QLikeTerm
+ I None ($1, CurrentDesk) Exec exec $0 -name $1
+ I All ($1) ResizeMove $2p $3p $4p $5p
+ I All ($1) Stick True
+ I All ($1, CurrentDesk) Iconify

DestroyFunc QLikeLaunch
AddToFunc QLikeLaunch
+ I None ($1, CurrentDesk) Exec exec $0
+ I All ($1) ResizeMove $1p $2p $3p $4p
+ I All ($1) Stick True
+ I All ($1, CurrentDesk) Iconify

# FvwmConsole in urxvt 
DestroyFunc QLikeFvwmConsole
AddToFunc QLikeFvwmConsole
+ I None (FvwmConsole, CurrentDesk) FvwmConsole -terminal urxvt
+ I All (FvwmConsole) ResizeMove $0p $1p $2p $3p
+ I All (FvwmConsole) Stick True
+ I All (FvwmConsole, CurrentDesk) Iconify

# Undecorate given window
DestroyFunc UnDecorate
AddToFunc UnDecorate
+ I WindowStyle !Title, !Borders, !Handles

# And decorate it again
DestroyFunc Decorate
AddToFunc Decorate
+ I WindowStyle  Borders, Handles

# File browser menu using $[fvwm_filemanager] 
AddToFunc FuncFvwmMenuDirectory 
+ I PipeRead \
"fvwm-menu-directory -d '$0' \
-command-t 'Exec exec $[fvwm_filemanager] "%d"' \
-command-f 'Exec exec $[fvwm_filemanager] "%f"'"

# Function for titlebar push focus
# and window menu
DestroyFunc TitleFunction
AddToFunc TitleFunction
+ C Focus
+ D Lower
+ M Move

# Undecorate window and maximize it
DestroyFunc UndecMax
AddToFunc UndecMax 
+ I ThisWindow UnDecorate
+ I Schedule 100 Maximize 100 100

# Autoshading a window and putting
# it to top layer
DestroyFunc AutoShadeAndOnTop
AddToFunc AutoShadeAndOnTop
+ I ToggleAutoShade
+ I WinOnTop


##  Focus policy

# Similar to that of openbox 
Style * ClickToFocus

##  Input device bindings 

# Cheatsheat
#
# Contexts:
#
#  R - Root window
#  I - Iconified window
#  F - window decoration corner
#  S - window decoration side
#  T - window decoration title
#  W - active window
#  0-9 - titlebar buttons
#  M - Menu
#  A - any context
#
#  You can combine contexts: FWST etc.
#
#  Modifiers:
#  ctrl - C
#  super - 4
#  alt - 1
#  shift - S
#  caps - L
#  num - 2
#
#  You can combine modifiers: 1S, 4S, etc. 

# Key bindings
Key F4 W M DeleteWin
Key Tab A M WindowList Root NoGeometry
Key M A M Module FvwmConsole
Key F2 A 1 Exec exec $[fvwm_runner]
Key Space A 4 Menu MainMenu
Key t W S4 WinOnTop
Key a W S4 ToggleAutoShaded
Key d W S4 UnDecorate
Key d W 4 Decorate
Key m W 4 Maximize 100 100
Key r W 4 ReadableWidth
Key i W 4 Iconify
Key F7 W 1 Move
Key F8 W 1 Resize
Key D W 4 Decorate



#Switch desktops with arrow keys
Key Left A C1 Scroll -100 0
Key Right A C1 Scroll +100 +0
Key Up A C1 Scroll +0 -100
Key Down A C1 Scroll +0 +100

#Move titlebar to particular side
Key Left W S4 WindowStyle TitleAtLeft
Key Right W S4 WindowStyle TitleAtRight
Key Up W S4 WindowStyle TitleAtTop
Key Down W S4 WindowStyle TitleAtBottom

#Grouping windows and switching between
#groups and inside them
Key 1 W C4 AddToGroup 1
Key 2 W C4 AddToGroup 2 
Key 3 W C4 AddToGroup 3
Key 1 A 4 GroupSwitch 1 
Key 2 A 4 GroupSwitch 2
Key 3 A 4 GroupSwitch 3

#Screenshots and screencasts made easy:
Key Print A 1 FvwmDesktopScreenshotDelayed

#Smart launcher for particular applications
Key t A 4 LaunchRaiseSwitch  urxvt 
Key f A 4 LaunchRaiseSwitch *File*Manager pcmanfm
Key e A 4 LaunchRaiseSwitch *gedit gedit
Key w A 4 LaunchRaiseSwitch *firefox firefox
Key p A 4 LaunchRaiseSwitch *Sonata* sonata
Key g A 4 LaunchRaiseSwitch *GIMP gimp

#Launch particular applications 
Key t A C4 Exec exec urxvt
Key f A C4 Exec exec pcmanfm
Key e A C4 Exec exec gedit
Key w A C4 Exec exec firefox
Key p A C4 Exec exec sonata
Key g A C4 Exec exec gimp

#Quake-like terminal and quake-like fvwm console
Key Grave A C QLikeTerm rxvt quake-term 1366 768 0 0
Key Q A 4 QLikeFvwmConsole  812 360 275 408

# Mouse bindings
Mouse 3 R A Menu MainMenu
Mouse 1 R A WindowList Root NoGeometry
Mouse 1 T A TitleFunction
Mouse 1 A 1 Move 
Mouse 3 A 1 Resize 
Mouse 1 W M Move


##  Menus 

# Main menu
AddToMenu MainMenu MainMenu title
+ DynamicPopupAction Function MakeMainMenu

AddToFunc MakeMainMenu
+ I DestroyMenu recreate MainMenu
+ I AddToMenu MainMenu MissingSubmenuFunction FuncFvwmMenuDirectory 
+ I AddToMenu MainMenu "&Term" Exec exec urxvt
+ I AddToMenu MainMenu "&Web" Exec exec firefox
+ I AddToMenu MainMenu "&Browse" Popup $[HOME]
+ I AddToMenu MainMenu "&Apps" Popup Applications
+ I AddToMenu MainMenu "" Nop
+ I AddToMenu MainMenu "Re&start" Restart
+ I AddToMenu MainMenu "E&xit" Exec exec fvwmcommand quit

# Applications menu
DestroyMenu Applications
AddToMenu Applications
+ "cmus" Exec exec rxvt -e cmus
+ "gimp" Exec exec gimp
+ "gedit" Exec exec gedit
+ "smplayer" Exec exec smplayer
+ "pcmanfm" Exec exec pcmanfm
+ "htop" Exec exec rxvt -e htop
+ "gcolor2" Exec exec gcolor2
+ "xterm" Exec exec xterm
# Window menu 
DestroyMenu WindowMenu
AddToMenu WindowMenu
+ "On &Top" WinOnTop
+ "Audo&shade" ToggleAutoShaded
+ "Undecorate and &Maximize" UndecMax
+ "Autoshade and &On Top" AutoShadeAndOnTop
+ "S&tick" Stick
+ "" Nop
+ "Force close" Destroy


## Decorations

# Fonts
MenuStyle "*" Font "xft:gohufontmod11:Regular:size=8"

# Cheatsheet:
# 
# Colorsets:
#
#  0 = Default colors
#  1 = Inactive windows
#  2 = Active windows
#  3 = Inactive menu entry and menu background
#  4 = Active menu entry
#  5 = greyed out menu entry (only bg used)
#  6 = module foreground and background
#  7 = hilight colors

# Colorsets

# Window Decor CS
Colorset  3 fg #505050, bg #151515
Colorset  4 fg #808080, bg #272524
Colorset  5 fg #ffffff, bg #BF2E12

# Menu  CS
Colorset  7 fg #808080, bg #151515, sh #BF2E12, hi #BF2E12
Colorset  8 fg #dddddd, bg #eb928e, sh #eb928e, hi #151515

#Window Decor
DestroyDecor MyDecor
AddToDecor   MyDecor
+ TitleStyle RightJustified Height 18
+ ButtonStyle 2 ActiveUp   Vector 6 30x50@3 40x40@3 50x50@3 50x65@4 40x55@3 30x65@3 -- Flat
+ ButtonStyle 2 ActiveDown Vector 6 30x50@3 40x40@3 50x50@3 50x65@4 40x55@3 30x65@3 -- Flat
+ ButtonStyle 2 Inactive   Vector 6 30x50@3 40x40@3 50x50@3 50x65@4 40x55@3 30x65@3 -- Flat
+ ButtonStyle 4 ActiveUp   Vector 6 40x50@3 30x40@3 40x30@3 55x50@4 40x40@3 55x30@3 -- Flat
+ ButtonStyle 4 ActiveDown Vector 6 40x50@3 30x40@3 40x30@3 55x50@4 40x40@3 55x30@3 -- Flat
+ ButtonStyle 4 Inactive   Vector 6 40x50@3 30x40@3 40x30@3 55x50@4 40x40@3 55x30@3 -- Flat
+ ButtonStyle 6 ActiveUp   Vector 6 30x20@3 40x30@3 50x20@3 50x30@4 40x40@3 30x30@3 -- Flat
+ ButtonStyle 6 ActiveDown Vector 6 30x20@3 40x30@3 50x20@3 50x30@4 40x40@3 30x30@3 -- Flat
+ ButtonStyle 6 Inactive   Vector 6 30x20@3 40x30@3 50x20@3 50x30@4 40x40@3 30x30@3 -- Flat
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ ButtonStyle All -- UseTitleStyle

Style "*" UseDecor MyDecor
Style "*" Font "xft:gohufontmod11:size=11"
Style "*" NoTitle
Style "*" BorderWidth 4, HandleWidth 4
Style "*" BorderColorset 4
Style "*" HilightBorderColorset 5


# Menu
MenuStyle * MenuColorset 7
MenuStyle * ActiveColorset 8
# 3D 
MenuStyle * SeparatorsLong, TrianglesRelief
MenuStyle * BorderWidth 3
MenuStyle * ActiveFore, Hilight3DOff, 


# Popup settings 
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle "*" PopupOffset 2 100

# De-iconify an iconified window
Mouse 1 I N Iconify

# Misc. Styles
Style quake-term  !Handles, !Borders, !Icon, WindowListSkip
Style FvwmConsole  !Handles, !Icon, WindowListSkip
Style gmrun !Title
Style fvwm-logout 

#Fvwm Pager
*FvwmPager: Font	xft:lemon
*FvwmPager: Fore	#BF2E12
*FvwmPager: Back	#090909
*FvwmPager: Hilight	#151515
*FvwmPager: MiniIcons
*FvwmPager: SolidSeparators

#FvwmButtons
Module FvwmButtons *
Style FvwmButtons Sticky, BorderWidth 3, !Handles
*FvwmButtons: Geometry 60x70+955+5
*FvwmButtons: Columns 1
*FvwmButtons: Padding 2 2
*FvwmButtons: Back #151515
*FvwmButtons: Fore #BF2E12
*FvwmButtons: Font xft:Dweep
*FvwmButtons: (1x3, Swallow "FvwmPager" `FvwmPager 0`     \
             Frame 0)
*FvwmButtons: (1x2, Frame 0, Title music, Action (Mouse 1) \
   `Exec exec urxvt -e cmus `)

CLICK TO VIEW

x

Notes

A config based on rstrcogburn’s “swayr” theme.
Fonts are beep and gohfontmod11, let me know if you want anything.
Updated it, the previous config had a lot of errors. New colors, new borders and some much needed cleaning.

Comments

Him said about 4 years ago

I like the warmth of this theme; reminds me of “Rice Boy.” Very nice.

Mafia said about 4 years ago

Thanks, I love it too. The wallpaper warms it up alot.

katsh said about 4 years ago

term colors please

edited about 4 years ago

Mafia said about 4 years ago

I have posted them, you can find them here -> http://dotshare.it/dots/448/