guest@dotshare [~/groups/wms/wmfs] $ ls wmfs2-share-colors/ | cat

wmfs2 .share colors (scrot) (+2 likes)

monsieurdoc Feb 06, 2013 (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
#
# WMFS2 configuration file
#

# Possible file inclusion:
# @include "file"

# Multi theme section
[themes]
  	[theme]
     	# Font
	font = "-*-ohsnap.icons-medium-*-*-*-11-*-*-*-*-*-*-*"
	    
	# Bars
	bars_width = 18
	bars_fg = "#c0c0c0"
     	bars_bg = "#121212"

     	# Element tags
     	tags_normal_fg = "#c0c0c0"
     	tags_normal_bg = "#232323"
     	# tags_normal_statusline = ""

     	tags_sel_fg    = "#d7af5f"
     	tags_sel_bg    = "#343434"
     	tags_sel_statusline = "\R[1;1;3;3;#f6f8fa]"

     	tags_occupied_fg = "#c0c0c0"
     	tags_occupied_bg = "#2a2a2a"
     	tags_occupied_statusline = "\R[1;1;3;3;#c0c0c0]"

     	tags_urgent_fg    = "#f96d6d"
     	tags_urgent_bg    = "#2a2a2a"
     	tags_urgent_statusline = "\R[1;1;4;4;#c0c0c0]"

     	tags_border_color = "#eeeeee"
     	tags_border_width = 0

     	# Frame / Client
     	client_normal_fg = "#f6f8fa"
     	client_normal_bg = "#121212"
     	client_normal_statusline = "\s[5;10;#f6f8fa;x](1;client_close)"
	
     	client_sel_fg = "#121212"
     	client_sel_bg = "#c0c0c0"
     	client_sel_statusline = "\s[5;10;#121212;x](1;client_close)"

     	frame_bg = "#c0c0c0"
     	client_titlebar_width = 0
     	client_border_width = 1
	[/theme]
[/themes]

[bars]

  	# Position:
  	#
  	# 0  Top
  	# 1  Bottom
  	# 2  Hide
	
  	# Element type:
  	#
  	# t  Tags
  	# s  Statustext (will take available space)
  	# y  Systray (can be set only ONE time among all element)
  	# l  Launcher (will be expended at launcher use)

  	[bar]
     	position = 0
     	screen = 0
     	elements = "tlsy"   # element order in bar
     	theme = "default"
  	[/bar]
[/bars]

[tags]
  	# Use no screen option or screen = -1 to set tag on each screen
  	[tag] name = "min"		layout="tile_grid"	[/tag]
  	[tag] name = "tad"	   	layout="tile_grid"	[/tag]
  	[tag] name = "nel"		layout="tile_grid"	[/tag]
  	[tag] name = "canad"	layout="tile_grid"	[/tag]
  	[tag] name = "lain"	   	layout="tile_grid"	[/tag]

  	# Mousebinds associated to Tags element button
  	[mouse] button = "1" func = "tag_click" [/mouse]
  	[mouse] button = "4" func = "tag_next"  [/mouse]
  	[mouse] button = "5" func = "tag_prev"  [/mouse]
[/tags]

[client]
  	theme = "bird"
  	key_modifier = "Super"
  	autofocus = true
  	focus = click
  
  	[mouse] button = "1" func = "client_focus_click"    [/mouse]
  	[mouse] button = "1" func = "mouse_swap"            [/mouse]
  	[mouse] button = "2" func = "mouse_tab"             [/mouse]
  	[mouse] button = "3" func = "mouse_resize"          [/mouse]
  	[mouse] button = "4" func = "client_focus_next_tab" [/mouse]
  	[mouse] button = "5" func = "client_focus_prev_tab" [/mouse]
[/client]

[rules]
	[rule]
		class = "MPlayer"
		instance = "xv"
		tag = 1
	[/rule]

	[rule]
		instance = "vlc"
		class = "Vlc"
		free = true
	[/rule]
	
	[rule]
		class = "Chromium"
		tag = 2
	[/rule]
	
	[rule]
		class = "Gimp"
		instance = "gimp"
		free = true
		tag = 4
	[/rule]
	
	[rule]
		instance = "ncmpcpp"
		class = "urxvtc -name ncmpcpp -e ncmpcpp"
		free = true
	[/rule]

	[rule]
		instance = "Steam"
		free = true
		tag = 4
	[/rule]

	[rule]
		instance = "google-musicmanager"
		free = true
	[/rule]
[/rules]

[launchers]
  	# command can be an uicb function or an uicb function + extension (see example)
  	[launcher]
     	name = "exec"
     	prompt = "Run:"
     	command = "spawn"
     	width = 200
  	[/launcher]
[/launchers]

[keys]
  	[key] mod = {"Super"} key = "Return" func = "spawn" cmd = "urxvtc || xterm" [/key]

  	[key] mod = {"Control", "Alt"} key = "q" func = "quit" [/key]
  	[key] mod = {"Control", "Alt"} key = "r" func = "reload" [/key]
        
	# Applications
        [key] mod = {"Control", "Super"} key = "t" func = "spawn" cmd = "urxvtc" 							[/key]
        [key] mod = {"Control", "Super"} key = "c" func = "spawn" cmd = "chromium" 						    [/key]
        [key] mod = {"Control", "Super"} key = "l" func = "spawn" cmd = "libreoffice" 			        	[/key]
        [key] mod = {"Control", "Super"} key = "v" func = "spawn" cmd = "vlc" 							    [/key]
        [key] mod = {"Control", "Super"} key = "u" func = "spawn" cmd = "thunar" 					        [/key]
        [key] mod = {"Control", "Super"} key = "w" func = "spawn" cmd = "filezilla" 			        	[/key]
        [key] mod = {"Control", "Super"} key = "a" func = "spawn" cmd = "acroread"						    [/key]
        [key] mod = {"Control", "Super"} key = "g" func = "spawn" cmd = "gimp" 								[/key]
        [key] mod = {"Control", "Super"} key = "n" func = "spawn" cmd = "urxvtc -name ncmpcpp -e ncmpcpp" 	[/key]
        [key] mod = {"Control", "Super"} key = "i" func = "spawn" cmd = "urxvtc -name irssi -e irssi"	 	[/key]
        [key] mod = {"Control", "Super"} key = "d" func = "spawn" cmd = "transmission-gtk" 					[/key]
        [key] mod = {"Control", "Super"} key = "s" func = "spawn" cmd = "steam" 							[/key]
	
	# Volume
	[key] mod = {""} key = "XF86AudioLowerVolume" 	func = "spawn" cmd = "amixer -q -c 0 sset 'Master' 4dB-" 	[/key]
	[key] mod = {""} key = "XF86AudioRaiseVolume"	func = "spawn" cmd = "amixer -q -c 0 sset 'Master' 4dB+"	[/key]
	[key] mod = {""} key = "XF86AudioMute"			func = "spawn" cmd = "amixer -q -c 0 sset 'Master' toggle"  [/key]
  	[key] mod = {""} key = "XF86Eject" 				func = "spawn" cmd = "eject -T"								[/key]

	# Sync Google Drive
	[key] mod = {""} key = "XF86Tools" func = "exec" cmd = "sync_drive" [/key]
		
	# Screen Manipulation
	[key] mod = {"Control", "Super"} key = "Left" func = "screen_next" 	[/key]
	[key] mod = {"Control", "Super"} key = "Right" func = "screen_prev" [/key]

  	# Tag manipulation
  	[key] mod = {"Super"} key = "F1" func = "tag_set" cmd = "0" [/key]
  	[key] mod = {"Super"} key = "F2" func = "tag_set" cmd = "1" [/key]
  	[key] mod = {"Super"} key = "F3" func = "tag_set" cmd = "2" [/key]
  	[key] mod = {"Super"} key = "F4" func = "tag_set" cmd = "3" [/key]
  	[key] mod = {"Super"} key = "F5" func = "tag_set" cmd = "4" [/key]
  	[key] mod = {"Super"} key = "F6" func = "tag_set" cmd = "5" [/key]
  	[key] mod = {"Super"} key = "F7" func = "tag_set" cmd = "6" [/key]
  	[key] mod = {"Super"} key = "F8" func = "tag_set" cmd = "7" [/key]

  	[key] mod = {"Super", "Shift"} key = "F1" func = "tag_client" cmd = "0" [/key]
  	[key] mod = {"Super", "Shift"} key = "F2" func = "tag_client" cmd = "1" [/key]
  	[key] mod = {"Super", "Shift"} key = "F3" func = "tag_client" cmd = "2" [/key]
  	[key] mod = {"Super", "Shift"} key = "F4" func = "tag_client" cmd = "3" [/key]
  	[key] mod = {"Super", "Shift"} key = "F5" func = "tag_client" cmd = "4" [/key]
  	[key] mod = {"Super", "Shift"} key = "F6" func = "tag_client" cmd = "5" [/key]
  	[key] mod = {"Super", "Shift"} key = "F7" func = "tag_client" cmd = "6" [/key]
  	[key] mod = {"Super", "Shift"} key = "F8" func = "tag_client" cmd = "7" [/key]

  	[key] mod = {"Super"} key = "minus" func = "tag_del" [/key]
  	[key] mod = {"Super", "Shift"} key = "minus" func = "tag_new" [/key]
	
  	# tag function: cmd = nameofthetag
  	#[key] mod = {"Super"} key = "z" func = "tag" cmd = "2" [/key]

  	[key] mod = {"Control"} key = "Right" func = "tag_next" [/key]
  	[key] mod = {"Control"} key = "Left"  func = "tag_prev" [/key]

  	[key] mod = {"Super"} key = "q" func = "client_close" [/key]

  	# Focus next / prev client and next / prev tabbed client
  	[key] mod = { "Alt" }            key = "Tab" func = "client_focus_next" [/key]
  	[key] mod = { "Alt", "Shift" }   key = "Tab" func = "client_focus_prev" [/key]
  	[key] mod = { "Super" }          key = "Tab" func = "client_focus_next_tab" [/key]
  	[key] mod = { "Super", "Shift" } key = "Tab" func = "client_focus_prev_tab" [/key]

  	# Focus next client with direction
  	[key] mod = {"Alt"} key = "h" func = "client_focus_left"   [/key]
  	[key] mod = {"Alt"} key = "l" func = "client_focus_right"  [/key]
  	[key] mod = {"Alt"} key = "k" func = "client_focus_top"    [/key]
  	[key] mod = {"Alt"} key = "j" func = "client_focus_bottom" [/key]

  	# swap next client with direction:
  	[key] mod = {"Control", "Shift"} key = "h" func = "client_swap_left"   [/key]
  	[key] mod = {"Control", "Shift"} key = "l" func = "client_swap_right"  [/key]
  	[key] mod = {"Control", "Shift"} key = "k" func = "client_swap_top"    [/key]
  	[key] mod = {"Control", "Shift"} key = "j" func = "client_swap_bottom" [/key]

  	# Resize selected tiled client with direction
  	[key] mod = {"Super"} key = "h" func = "client_resize_left"   cmd = "20" [/key]
  	[key] mod = {"Super"} key = "l" func = "client_resize_left"   cmd = "-20" [/key]
  	[key] mod = {"Super"} key = "k" func = "client_resize_top"    cmd = "20" [/key]
  	[key] mod = {"Super"} key = "j" func = "client_resize_top"    cmd = "-20" [/key]
  	[key] mod = {"Alt", "Control"} key = "h" func = "client_resize_right"  cmd = "-20" [/key]
  	[key] mod = {"Alt", "Control"} key = "l" func = "client_resize_right"  cmd = "20" [/key]
  	[key] mod = {"Alt", "Control"} key = "k" func = "client_resize_bottom" cmd = "-20" [/key]
  	[key] mod = {"Alt", "Control"} key = "j" func = "client_resize_bottom" cmd = "20" [/key]

  	# Tabbing command
  	[key] mod = {"Alt", "Shift"} key = "h" func = "client_tab_left"   [/key]
  	[key] mod = {"Alt", "Shift"} key = "l" func = "client_tab_right"  [/key]
  	[key] mod = {"Alt", "Shift"} key = "k" func = "client_tab_top"    [/key]
  	[key] mod = {"Alt", "Shift"} key = "j" func = "client_tab_bottom" [/key]
  	[key] mod = {"Alt", "Shift"} key = "u" func = "client_untab" [/key]
  	[key] mod = {"Super"}        key = "t" func = "client_tab_next_opened" [/key]

  	# Layout manipulation
  	[key] mod = {"Super"}          key = "m" func = "layout_vmirror" [/key]
  	[key] mod = {"Super", "Shift"} key = "m" func = "layout_hmirror" [/key]
  	[key] mod = {"Super"}          key = "r" func = "layout_rotate_right" [/key]
  	[key] mod = {"Super", "Shift"} key = "r" func = "layout_rotate_left" [/key]

  	[key] mod = {"Control", "Super", "Alt"} key = "h" func = "layout_integrate_left" [/key]
  	[key] mod = {"Control", "Super", "Alt"} key = "j" func = "layout_integrate_bottom" [/key]
  	[key] mod = {"Control", "Super", "Alt"} key = "k" func = "layout_integrate_top" [/key]
  	[key] mod = {"Control", "Super", "Alt"} key = "l" func = "layout_integrate_right" [/key]

  	# Layout set historic travelling function (TESTING)
  	[key] mod = {"Super"} key = "o" func = "layout_prev_set" [/key]
  	[key] mod = {"Super", "Shift"} key = "o" func = "layout_next_set" [/key]

  	# Toggle client free/tile
  	[key] mod = {"Super"} key = "f" func = "client_toggle_free" [/key]

  	# Launcher
  	[key] mod = {"Super"} key = "p" func = "launcher" cmd = "exec" [/key]
[/keys]

CLICK TO VIEW

x

status(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
 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
#!/bin/sh
# wmfs status
# inspired by addikt1ve, rhaamo, linkdd and some others

# music with mpc
_music() {
	play=`mpc | grep playing`
	pause=`mpc | grep pause`

	artist=`mpc -f %artist% | head -n1 | cut -c1-15`
	song=`mpc -f %title% | head -n1 | cut -c1-15`

	[ -n "$play" ] && playing="$artist - $song" || playing="stop"
	
	color="#5ca881"

	music="^s[right;$color;$playing]"
}

# volume
_volume() {

	status=`amixer -c 0 sget 'Master' | tail -n1 | awk '{ print $6 }' | sed -re 's/^\[*//' | cut -d\] -f1`
	if [ $status == on ]; then
		vol=`amixer -c 0 sget 'Master' | tail -n1 | awk '{ print $4 }' | sed -re 's/^\[*//' | cut -d\] -f1`
	else
		vol="mute"
	fi

	color="#5ca8a7"

	volume="^s[right;$color;vol $vol]"
}

# memory used
_memory() {
	total=`free -m -t | head -n2 | tail -n1 | awk '{print $2}'`
	used=`free -m -t | head -n2 | tail -n1 | awk '{print $3}'`
	mem=$((100*$used/$total))
	
	color="#f96d6d"

	memory="^s[right;$color;mem $mem%]"
}

#swap used
_swap() {
	total=`free -m -t | tail -n1 | awk '{print $2}'`
	used=`free -m -t | tail -n1 | awk '{print $3}'`
	mem=$((100*$used/$total))

	color="#faa125"

	swap="^s[right;$color;swap $mem%]"
}

# hdd used
_hdd() {
	total=`df -h --total | tail -n1 | awk '{print $2}'`
	used=`df -h --total | tail -n1 | awk '{print $3}'`

	color="#fad325"

	hdd="^s[right;$color;hdd $used/$total]"
}

# wifi
_wifi() {
	wlan=`awk '/wlan/' /proc/net/wireless`
	quality=`awk '/wlan0/ { print $3 }' /proc/net/wireless|sed -e 's/\.$//'`
	essid=`iwconfig wlan0 | awk '/ESSID/ { print $4 }'|sed -e 's/ESSID:"//'|sed -e 's/"$//' | cut -c1-7`

	if [ -z "$wlan" ]; then
		wifi="off"
	else
		wifi="$essid $quality%"
	fi

	color="#b4c862"

	wifi="^s[right;$color;$wifi]"
}

# network
# _network() {
# }

# uptime
_uptime() {
	up=`uptime | awk '{print $3}' | cut -d, -f1`

	color="#c090e4"

	uptime="^s[right;$color;up $up]"
}

# date
_date() {
	hour=(`date +%H:%M`)
	day=(`date +%d/%m`)

	color="#8696e4"

	date="^s[right;$color;$day $hour]"
}

_button() {
	button="pause"
	color="#8696e4"
	button="^s[right;$color;$button]"
}

# statustext
statustext() {
	first=1
	args=""
	for arg in $@; do
		if [ $first == 1 ]; then
			separator=""
			first=0
		else	
			separator="^s[right;#c0c0c0; | ]"
		fi
		_${arg}
		args="${args} `eval echo '$separator$'$arg`"
	done
	wmfs -c status "default $args"
}

# possible args:
# 	memory swap battery
#	date uptime hdd
#	volume music
#	wifi network
while true;
do
	statustext volume music wifi hdd swap memory uptime date
	sleep 1
done
 

x