guest@dotshare [~/groups/wms/wmfs] $ ls My-WMFS-config/ | cat

My WMFS config (scrot) (+13 likes)

Hund Jul 14, 2011 (wms/wmfs)

wmfsrc(raw, dl)

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
[misc]
        font                  = "Terminus-8"
	raisefocus            = false
        raiseswitch           = false
        focus_follow_mouse    = false
        focus_follow_movement = false
        opacity               = 255

        # focus_pointer_click: click on unfocused client area:
        # true  -- default, set focus
        # false -- click go to client; including dockapps
        focus_pointer_click = true
        status_timing      = 1     #seconds
        status_path       = "~/.config/wmfs/status.sh"
[/misc]

[bar]
        bg     = "#202020"
        fg     = "#b3b3b3"
        border = false
        #height = "-1"

        light_shade =  0.10
        dark_shade  = -0.10

        [systray]
                # Enable/disable systray
                active = true

                # Screen of systray
                screen = 0

                # Spacing between tray icons
                spacing = 0
        [/systray]

	# Remove this section to disable the selbar.
        [selbar]
                bg = "#202020"
                fg = "#b3b3b3"

                # Cut title length
                max_length = 50

                [mouse] button = "3" func = "clientlist"  [/mouse]
                [mouse] button = "4" func = "client_next" [/mouse]
                [mouse] button = "5" func = "client_prev" [/mouse]
        [/selbar]

[/bar]

[layouts]
        fg = "#AD7FA8"
        bg = "#202020"

        # Border around the layout button.
        border = false

        # Value menu or switch.
        system = "menu"

        # Value left or right.
        placement = "right"

        # Keep layout geo for free layout
        keep_layout_geo = false

        # Symbol displayed for the selected layout in the list
        selected_layout_symbol = ">"

        # Width of layout button
        layout_button_width = 25

        # Tiling layouts.
        [layout] 
		type = "tile_right"
		symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/tr.png]\"    
	[/layout]
        [layout] type = "tile_left"          
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/tl.png]\"    
	[/layout]
        [layout] type = "tile_top"           
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/tt.png]\"
	[/layout]
        [layout] type = "tile_bottom"        
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/tb.png]\"
	[/layout]
        [layout] type = "tile_grid"          
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/tg.png]\"
	[/layout]
        [layout] type = "tile_grid_vertical" 
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/la.png]\"
	[/layout]
        [layout] type = "mirror_vertical"    
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/mv.png]\"
	[/layout]
        [layout] type = "mirror_horizontal"  
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/mh.png]\"
	[/layout]

        [layout] type = "max"   
		 symbol = "       \i[3;4;15;13;/home/johan/.config/wmfs/icons/max.png]\"
	[/layout]
        [layout] type = "free"  
		 symbol = "       \i[3;3;15;13;/home/johan/.config/wmfs/icons/fr.png]\"
	[/layout]

[/layouts]

[tags]
        [default_tag]
             name             = "firefox"
             mwfact           = 0.5
             nmaster          = 1
             layout           = "tile_right"
             resizehint       = false
             infobar_position = "top"
	     set_new_win_master   = false
        [/default_tag]

        # whether client_next on the last tag will send you on the first
        # and client_prev on the first tag will send you on the last one
        tag_round      = false

        # Going twice on the same tag will bring you back on the previous one
        tag_auto_prev  = true

        occupied_bg    = "#202020"
        occupied_fg    = "#66A9BA"
        sel_fg         = "#202020"
        sel_bg         = "#66A9BA"
        urgent_bg      = "#E16A98"
        urgent_fg      = "#202020"

        # If true, number of the tag will be used for name
        name_count     = false
        #default_name   = "new tag" # deprecated, use [default_tag] instead
        #default_layout = "tile_right" # deprecated, use [default_tag] instead

        expose_name    = "EXPOSE"
        expose_layout  = "tile_left"
        
        # Border around the tag buttons.
        border = false

        # Hide empty tags in tag list
        autohide = false

        # Mouse buttons action on tag.
        mouse_button_tag_sel       = "1"
        mouse_button_tag_transfert = "2"
        mouse_button_tag_add       = "3"
        mouse_button_tag_next      = "4"
        mouse_button_tag_prev      = "5"

        [tag]
                name             = "web"
		clients		 = {"firefox","firefox-beta-bin","firefox-nightly"}
                screen           = 0
                mwfact           = 0.65
                nmaster          = 1
                layout           = "tile_right"
                resizehint       = false
                infobar_position = "top"
                above_fc         = false
        [/tag]

	[tag] name = "music" [/tag]
        [tag] name = "p2p" [/tag]
        [tag] name = "irc"  [/tag]
        [tag] name = "work" [/tag]
        [tag] name = "pr0n" [/tag]
[/tags]

[root]
       # Command you can execute to set the background.
        background_command = "nitrogen --restore"

        [mouse] button = "4" func = "tag_next"              [/mouse]
        [mouse] button = "5" func = "tag_prev"              [/mouse]
        [mouse] button = "3" func = "menu" cmd = "rootmenu" [/mouse]
[/root]

[client]
        client_round         = true
        client_auto_center   = false
        border_height        = 1
        border_shadow        = false
        border_normal        = "#404040"#"#202020"
        border_focus         = "#66A9BA"
        place_at_mouse       = false
        resize_corner_normal = "#404040"
        resize_corner_focus  = "#66A9BA"
        set_new_win_master   = false
        client_tile_raise    = false
        new_client_get_mouse = false

        # send all client that have no tag rule in this default tag
        #default_open_tag     = 4
        # same as above but for the screen
        #default_open_screen  = 1

        # Space between tiled clients
        padding = 0

        # Modifier for mouse use
        modifier = "Alt"

        light_shade =  0.10
        dark_shade  = -0.10

        # *DEPRECATED* but works, see [rules] section
        # Set automatic free or max client
        # autofree = "xterm|MPlayer"
        # automax  = "Navigator"

        [mouse] button = "1" func = "client_raise" [/mouse]
        [mouse] button = "1" func = "mouse_move"   [/mouse]
        [mouse] button = "3" func = "client_raise" [/mouse]
        [mouse] button = "3" func = "mouse_resize" [/mouse]

        # Remove this section to delete the titlebar.
        #[titlebar]
        #        stipple   = false
        #        height    = 12
        #        fg_normal = "#808080"
        #        fg_focus  = "#fff"

        #        [mouse] button = "1" func = "client_raise" [/mouse]
        #        [mouse] button = "1" func = "mouse_move"   [/mouse]
        #        [mouse] button = "3" func = "client_raise" [/mouse]
        #        [mouse] button = "3" func = "mouse_resize" [/mouse]

        #       [button]
        #                # Available "free", "max", "tile" flags or button.
        #                flags = "free,max,tile"
        #                [mouse] button = "1" func = "client_kill"             [/mouse]
        #                [mouse] button = "3" func = "menu" cmd = "clientmenu" [/mouse]

        #                [line] coord = {1, 1, 4, 1} [/line]
        #                [line] coord = {1, 1, 1, 4} [/line]
        #                [line] coord = {1, 4, 4, 4} [/line]
        #        [/button]
        #[/titlebar]
[/client]

[menu]
        # Default menu, binded on the root window, button 3.
        [set_menu]
                name = "rootmenu"

                # place_at_mouse = false
                # x = 40 y = 50

                # Available "center", "left", "right" menu align. Default: "center".
                align = "left"

                fg_focus  = "#202020" bg_focus  = "#66A9BA"
                fg_normal = "#9F9AB3" bg_normal = "#202020"

                [item] name = "Terminal"        func = "spawn" cmd = "urxvt || xterm || gnome-terminal" [/item]
                [item] name = "Applications" submenu = "appmenu"                   [/item]
                [item] name = "Next tag"        func = "tag_next"                  [/item]
                [item] name = "Previous tag"    func = "tag_prev"                  [/item]
                [item] name = "Next layout"     func = "layout_next"               [/item]
                [item] name = "Previous layout" func = "layout_prev"               [/item]
                [item] name = "Toggle infobar"  func = "toggle_infobar_position"   [/item]
                [item] name = "Quit WMFS"       func = "quit"                      [/item]
        [/set_menu]

        [set_menu]
                name = "appmenu"
                align = "left"

                fg_focus  = "#202020" bg_focus  = "#66A9BA"
                fg_normal = "#9F9AB3" bg_normal = "#202020"

                [item] name = "Browser"         func = "spawn" cmd = "firefox"     [/item]
                [item] name = "Calculator"      func = "spawn" cmd = "xcalc"       [/item]
        [/set_menu]

        [set_menu]
                name = "clientmenu"

                fg_focus  = "#b3b3b3" bg_focus  = "#003366"
                fg_normal = "#b3b3b3" bg_normal = "#202020"

                # Check items: possible 'check_max' or 'check_free'.
                [item] name = "Close"    func = "client_kill"                      [/item]
                [item] name = "Maximize" func = "toggle_max"  check = "check_max"  [/item]
                [item] name = "Free"     func = "toggle_free" check = "check_free" [/item]
        [/set_menu]
[/menu]

[launcher]
        [set_launcher]
                # Limit size of the launcher window (px)
                width_limit = 300

                name = "launcher_exec"
                prompt = "Exec: "
                command = "exec"
        [/set_launcher]

        #ViWMFS : manage wmfs with vi-based command.
        [set_launcher]
                name = "viwmfs"
                prompt = "> "
                command = "wmfs -V"
        [/set_launcher]
[/launcher]

[keys]
         # Reload the configuration of wmfs.
        [key] mod = {"Alt", "Control"} key = "r" func = "reload" [/key]

        # Open a terminal.
        [key] mod = {"Alt"} key = "Return" func = "spawn" cmd = "urxvt" [/key]

        # Kill the selected client.
        [key] mod = {"Alt"} key = "q" func = "client_kill" [/key]

        # Quit wmfs.
        [key] mod = {"Control", "Alt", "Shift"} key = "q" func = "quit" [/key]

        # Swap current client with the next.
        [key] mod = {"Alt"} key = "t" func = "client_swap_next" [/key]

        # Swap current client with the previous.
        [key] mod = {"Alt", "Shift"} key = "t" func = "client_swap_prev" [/key]
        
        # Set the selected client as Master
        [key] mod = {"Control"} key = "m" func = "client_set_master" [/key]

        # Toggle maximum the selected client
        [key] mod = {"Alt"} key = "m" func = "toggle_max" [/key]

        # Toggle free the selected client.
        [key] mod = {"Alt"} key = "f" func = "toggle_free" [/key]

        # Toggle the position of the infobar.
        [key] mod = {"Alt"} key = "b" func = "toggle_infobar_position" [/key]
        [key] mod = {"Alt", "Shift"} key = "b" func = "toggle_infobar_display" [/key]

        # Toggle the resizehint of the current tag/screen
        [key] mod = {"Shift", "Control"} key = "r" func = "toggle_resizehint" [/key]

        # Toggle the tag_autohide mode
        [key] mod = {"Shift", "Control"} key = "t" func = "toggle_tagautohide" [/key]

        # Select the next client.
        [key] mod = {"Alt"} key = "Tab" func = "client_next" [/key]
        [key] mod = {"Alt"} key = "j" func = "client_next" [/key]
        # Select the previous client.
        [key] mod = {"Alt"} key = "section" func = "client_prev" [/key]
        [key] mod = {"Alt"} key = "k" func = "client_prev" [/key]
        # Select the next tag.
        [key] mod = {"Control"} key = "Right" func = "tag_next" [/key]

        # Select the previous tag.
        [key] mod = {"Control"} key = "Left" func = "tag_prev" [/key]

        # Select the next visible tag.
        [key] mod = {"Control","Alt"} key = "Right" func = "tag_next_visible" [/key]

        # Select the previous visible tag.
        [key] mod = {"Control","Alt"} key = "Left" func = "tag_prev_visible" [/key]

        # Set the next layout.
        [key] mod = {"Alt"} key = "space" func = "layout_next" [/key]

        # Set the previous layout.
        [key] mod = {"Alt", "Shift"} key = "space" func = "layout_prev" [/key]

        # Increase mwfact.
        [key] mod = {"Alt"} key = "l" func = "set_mwfact" cmd = "+0.025" [/key]

        # Decrease mwfact.
        [key] mod = {"Alt"} key = "h" func = "set_mwfact" cmd = "-0.025" [/key]

        # Increase nmaster.
        [key] mod = {"Alt"} key = "d" func = "set_nmaster" cmd = "+1" [/key]

        # Decease nmaster.
        [key] mod = {"Alt", "Shift"} key = "d" func = "set_nmaster" cmd = "-1" [/key]

        #Launcher.
        [key] mod = {"Alt"} key = "p" func = "launcher" cmd = "launcher_exec" [/key]

        #ViWMFS
        [key] mod = {"Alt"} key = "Escape" func = "launcher" cmd = "viwmfs" [/key]

        # Set the tag x.
        [key] mod = {"Alt"} key = "F1" func = "tag" cmd = "1" [/key]
        [key] mod = {"Alt"} key = "F2" func = "tag" cmd = "2" [/key]
        [key] mod = {"Alt"} key = "F3" func = "tag" cmd = "3" [/key]
        [key] mod = {"Alt"} key = "F4" func = "tag" cmd = "4" [/key]
        [key] mod = {"Alt"} key = "F5" func = "tag" cmd = "5" [/key]
        [key] mod = {"Alt"} key = "F6" func = "tag" cmd = "6" [/key]
        [key] mod = {"Alt"} key = "F7" func = "tag" cmd = "7" [/key]
        [key] mod = {"Alt"} key = "F8" func = "tag" cmd = "8" [/key]
        [key] mod = {"Alt"} key = "F9" func = "tag" cmd = "9" [/key]

        # Transfert selected client to x.
        [key] mod = {"Alt", "Shift"} key = "F1" func = "tag_transfert" cmd ="1" [/key]
        [key] mod = {"Alt", "Shift"} key = "F2" func = "tag_transfert" cmd ="2" [/key]
        [key] mod = {"Alt", "Shift"} key = "F3" func = "tag_transfert" cmd ="3" [/key]
        [key] mod = {"Alt", "Shift"} key = "F4" func = "tag_transfert" cmd ="4" [/key]
        [key] mod = {"Alt", "Shift"} key = "F5" func = "tag_transfert" cmd ="5" [/key]
        [key] mod = {"Alt", "Shift"} key = "F6" func = "tag_transfert" cmd ="6" [/key]
        [key] mod = {"Alt", "Shift"} key = "F7" func = "tag_transfert" cmd ="7" [/key]
        [key] mod = {"Alt", "Shift"} key = "F8" func = "tag_transfert" cmd ="8" [/key]
        [key] mod = {"Alt", "Shift"} key = "F9" func = "tag_transfert" cmd ="9" [/key]

        # Toggle additional tags (x) on the current tag
        [key] mod = {"Alt", "Super"} key = "F1" func = "tag_toggle_additional" cmd ="1" [/key]
        [key] mod = {"Alt", "Super"} key = "F2" func = "tag_toggle_additional" cmd ="2" [/key]
        [key] mod = {"Alt", "Super"} key = "F3" func = "tag_toggle_additional" cmd ="3" [/key]
        [key] mod = {"Alt", "Super"} key = "F4" func = "tag_toggle_additional" cmd ="4" [/key]
        [key] mod = {"Alt", "Super"} key = "F5" func = "tag_toggle_additional" cmd ="5" [/key]
        [key] mod = {"Alt", "Super"} key = "F6" func = "tag_toggle_additional" cmd ="6" [/key]
        [key] mod = {"Alt", "Super"} key = "F7" func = "tag_toggle_additional" cmd ="7" [/key]
        [key] mod = {"Alt", "Super"} key = "F8" func = "tag_toggle_additional" cmd ="8" [/key]
        [key] mod = {"Alt", "Super"} key = "F9" func = "tag_toggle_additional" cmd ="9" [/key]

        # change screen
        [key] mod = {"Super"} key = "Tab" func = "screen_next" [/key]
        [key] mod = {"Super", "Shift"} key = "Tab" func = "screen_prev" [/key]

        # swap client in the next/prev screen
        [key] mod = {"Super", "Shift"} key = "a" func = "client_screen_next" [/key]
        [key] mod = {"Super", "Shift"} key = "z" func = "client_screen_prev" [/key]

        [key] mod = {"Alt"} key = "e" func = "toggle_tag_expose" [/key]
[/keys]

CLICK TO VIEW

x

status.sh(raw, dl)

 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
#!/bin/sh

## Loading the global settings for wmfs
source $HOME/.config/wmfs/wmfsrc

NBLINE=`$CONKYCMD -i 1 | wc -l`

## Information importante /!\
## Conky est lancé dans autostart.sh

color0="echo \\\\#DFAF8F\\\\" 
color1="echo \\\\#BEBEBE\\\\" 
color2="echo \\\\#EE0000\\\\" 

TXT=`cat $FICHIER | tail -n $NBLINE`
TXT="<c2>$TXT" 
TXT=`echo $TXT | sed 's/\[ \([A-Za-z ]*:\) \([^]]*\) \]/[ <c0>\1 <c1>\2<c2> ]/g'`

for i in $(echo "0 1 2"); do
   colr="\$color$i" 
   color=`eval "$colr"`
   pattern="s/<c$i>/$color/g" 
   TXT=`echo $TXT | sed "$pattern"`
done

wmfs -s 0 "$TXT" 
exit 0
 

x

Comments

Anomareh said about 13 years ago

Heh the faded colors actually caught my eyes :p Could use a bit of polish but I’m diggin' this quite a bit.

I’ve also upped the file size limit to 2mb so you should be good to use the scrot you linked to.

Hund said about 13 years ago

haha okey. :) I tried using more vibrant/vintage colors in the past, but my eyes dont like it.

Polish? Im open for sugestions if it could even better. :)

Thanks!

Anomareh said about 13 years ago

@Hund maybe something to spice up the top left a bit and change that separator between the views and window title, the top right is a bit crowded, and the icon at the end is a bit out of place.

Guess I was sort of making that comment looking at the scrot as a whole and not necessarily just the wmfs parts which isn’t really fair :s

Still dig this quite a bit though, nice job.

Hund said about 13 years ago

I’m always open for ideas and criticism. :)

lux said about 13 years ago

This is really great Hund, the colours are really subtle and the whole thing is very efficient.

Just one problem, I’m having trouble getting conky to work as in your scrot, is it because of the $CONKYCMD in status.sh?

Hund said about 13 years ago

@lux: I have no idea why it wont work. :(

gorgatron said about 13 years ago

Would you be comfortable posting your xinitrc?

Hund said about 13 years ago

[ ~]$ cat .xinitrc

!/bin/sh

xset -b &
setxkbmap se &
xbindkeys &
numlockx &
exec ck-launch-session dbus-launch wmfs

:)

gorgatron said about 13 years ago

I see. I was curious how status gets executed but I’m assuming I didn’t read your config yet.

gorgatron said about 13 years ago

I could not get conky to start in the bar. I made sure the status.sh is an executable..

http://i.imgur.com/wmay9.png

EDIT: Someone told me this is a glitch with the wmfs-git from AUR.

Solutions:

1- Use the non git version
or
2- put this in autostart.sh

status()
{
original status.sh code
}
while true; do status; sleep 3; done

edited about 13 years ago

vbrosseau said about 12 years ago

@gorgatron Can you share your urvtx configuration ? ;)