guest@dotshare [~/groups/wms/subtle] $ ls Space-Surpeme---subtle/ | cat

Space Surpeme - subtle (scrot, raw, dl) (+4 likes)

bread Aug 03, 2011 (wms/subtle)

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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
#
# Author::  Christoph Kappel <unexist@dorfelite.net>
# Version:: $Id$
# License:: GNU GPLv2
#

# == Options == {{{

# Window move/resize steps in pixel per keypress
set :step, 2

# Window screen border snapping
set :snap, 10

# Default starting gravity for windows. Comment out to use gravity of
# currently active client
set :gravity, :center

# Make transient windows urgent
set :urgent, false

# Honor resize size hints globally
set :resize, false

# Enable gravity tiling
set :tiling, false

# Font string either take from e.g. xfontsel or use xft
set :font, "-*-anorexia-medium-*-*-*-11-*-*-*-*-*-*-*"
#set :font, "xft:sans-8"

# Separator between sublets
set :separator, "|"

# Set the WM_NAME of subtle (Java quirk)
# set :wmname, "LG3D"

icondir="/home/vastlocyr/Desktop/icons/xbm8x8/"

# }}}

# == Style == {{{

# Style for all style elements
style :all do
  background  "#121212"
  border      "#303030", 0
  padding     0, 3
end

# Style for the views
style :views do
  padding 0,2,0,2
  # Style for the active views
  style :focus do
    foreground  "#18618F"
  end

  # Style for urgent window titles and views
  style :urgent do
    foreground  "#ff9800"
  end

  # Style for occupied views (views with clients)
  style :occupied do
    foreground  "#8A2F58"
  end

  # Style for unoccupied views (views without clients)
  style :unoccupied do
    foreground  "#753552"
  end
end

# Style for sublets
style :sublets do
  foreground  "#18618F"
  icon        "#8A2F58"
  
  style :pacman do
    icon      "#914E89"
  end
  style :cpu do
    icon      "#5E468C"
  end
  style :memory do
    icon      "#53A6A6"
  end
  style :weather do
    foreground  "#287373"
  end
  style :clock do
    icon      "#1C86C5"
  end
end

# Style for separator
style :separator do
  foreground  "#5E468C"
end

# Style for focus window title
style :title do
  foreground  "#287373"
end

# Style for active/inactive windows
style :clients do
  active      "#287373", 1
  inactive    "#121212", 1
  margin      3
  width       50
end

# Style for subtle
style :subtle do
  margin      0, 0, 0, 0
  panel       "#121212"
  background  "#3d3d3d"
  stipple     "#757575"
end

# }}}

# == Screen == {{{

screen 1 do
  top    [ :views, :mpd, :spacer, :keychain, :spacer, :title, :seperator, :cpu, :temp, :memory, :battery, :sublets, :seperator, :clock ]
  bottom [   ]
end

# }}}

# == Gravities == {{{

# Top left
gravity :top_left,       [   0,   0,  50,  50 ]
gravity :top_left66,     [   0,   0,  50,  66 ]
gravity :top_left33,     [   0,   0,  50,  34 ]
gravity :top_left75,     [   0,   0,  50,  75 ]
gravity :top_left25,     [   0,   0,  50,  25 ]
gravity :top_left252,    [   0,  25,  50,  25 ]

# Top
gravity :top,            [   0,   0, 100,  50 ]
gravity :top66,          [   0,   0, 100,  66 ]
gravity :top33,          [   0,   0, 100,  34 ]
gravity :top75,          [   0,   0, 100,  75 ]
gravity :top25,          [   0,   0, 100,  25 ]

# Top right
gravity :top_right,      [  50,   0,  50,  50 ]
gravity :top_right66,    [  50,   0,  50,  66 ]
gravity :top_right33,    [  50,   0,  50,  34 ]
gravity :top_right75,    [  50,   0,  50,  75 ]
gravity :top_right25,    [  50,   0,  50,  25 ]
gravity :top_right252,   [  50,  25,  50,  25 ] 

# Left
gravity :left,           [   0,   0,  50, 100 ]
gravity :left66,         [   0,   0,  66, 100 ]
gravity :left33,         [   0,   0,  34, 100 ]

# Center
gravity :center,         [   0,   0, 100, 100 ]
gravity :center66,       [  17,  17,  66,  66 ]
gravity :center33,       [  33,  33,  34,  34 ]

# Right
gravity :right,          [  50,   0,  50, 100 ]
gravity :right66,        [  34,   0,  66, 100 ]
gravity :right33,        [  66,  50,  34, 100 ]

# Bottom left
gravity :bottom_left,    [   0,  50,  50,  50 ]
gravity :bottom_left66,  [   0,  34,  50,  66 ]
gravity :bottom_left33,  [   0,  66,  50,  34 ]
gravity :bottom_left75,  [   0,  25,  50,  75 ]
gravity :bottom_left25,  [   0,  75,  50,  25 ]
gravity :bottom_left252, [   0,  50,  50,  25 ]

# Bottom
gravity :bottom,         [   0,  50, 100,  50 ]
gravity :bottom66,       [   0,  34, 100,  66 ]
gravity :bottom33,       [   0,  66, 100,  34 ]
gravity :bottom75,       [   0,  25, 100,  75 ]
gravity :bottom25,       [   0,  75, 100,  25 ]

# Bottom right
gravity :bottom_right,   [  50,  50,  50,  50 ]
gravity :bottom_right66, [  50,  34,  50,  66 ]
gravity :bottom_right33, [  50,  66,  50,  34 ]
gravity :bottom_right75, [  50,  25,  50,  75 ]
gravity :bottom_right25, [  50,  75,  50,  25 ]
gravity :bottom_right252,[  50,  50,  50,  25 ]

# Gimp
gravity :gimp_image,     [  10,   0,  80, 100 ]
gravity :gimp_toolbox,   [   0,   0,  10, 100 ]
gravity :gimp_dock,      [  90,   0,  10, 100 ]

# }}}

# == Grabs == {{{

# Jump to view1, view2, ...
grab "W-S-1", :ViewJump1
grab "W-S-2", :ViewJump2
grab "W-S-3", :ViewJump3
grab "W-S-4", :ViewJump4

# Switch current view
grab "W-1", :ViewSwitch1
grab "W-2", :ViewSwitch2
grab "W-3", :ViewSwitch3
grab "W-4", :ViewSwitch4

# Select next and prev view */
grab "W-Right",      :ViewNext
grab "W-Left", :ViewPrev

# Move mouse to screen1, screen2, ...
grab "W-A-1", :ScreenJump1
grab "W-A-2", :ScreenJump2
grab "W-A-3", :ScreenJump3
grab "W-A-4", :ScreenJump4

# Force reload of config and sublets
#grab "W-C-r", :SubtleReload

# Force restart of subtle
grab "W-C-S-r", :SubtleRestart

# Quit subtle
grab "W-C-q", :SubtleQuit

# Move current window
grab "W-B1", :WindowMove

# Resize current window
grab "W-B3", :WindowResize

# Toggle floating mode of window
grab "W-g", :WindowFloat

# Toggle fullscreen mode of window
grab "W-space", :WindowFull

# Toggle sticky mode of window (will be visible on all views)
grab "W-b", :WindowStick

# Toggle zaphod mode of window (will span across all screens)
grab "W-equal", :WindowZaphod

# Raise window
grab "W-r", :WindowRaise

# Lower window
grab "W-m", :WindowLower

# Select next windows
grab "W-h",  :WindowLeft
grab "W-j",  :WindowDown
grab "W-k",    :WindowUp
grab "W-l", :WindowRight

# Kill current window
grab "W-S-k", :WindowKill

# Cycle between given gravities
#grab "W-KP_7", [ :top_left,     :top_left66,     :top_left33     ]
#grab "W-KP_8", [ :top,          :top66,          :top33          ]
#grab "W-KP_9", [ :top_right,    :top_right66,    :top_right33    ]
#grab "W-KP_4", [ :left,         :left66,         :left33         ]
#grab "W-KP_5", [ :center,       :center66,       :center33       ]
#grab "W-KP_6", [ :right,        :right66,        :right33        ]
#grab "W-KP_1", [ :bottom_left,  :bottom_left66,  :bottom_left33  ]
#grab "W-KP_2", [ :bottom,       :bottom66,       :bottom33       ]
#grab "W-KP_3", [ :bottom_right, :bottom_right66, :bottom_right33 ]

# In case no numpad is available e.g. on notebooks
grab "W-q", [ :top_left,    :top_left66,    :top_left75,    :top_left25,    :top_left33     ]
grab "W-w", [ :top,         :top66,         :top75,         :top25,         :top33          ]
grab "W-e", [ :top_right,   :top_right66,   :top_right75,   :top_right25,   :top_right33    ]
grab "W-a", [ :left,        :left66,        :left33                                         ]
grab "W-s", [ :center,      :center66,      :center33                                       ]
grab "W-d", [ :right,       :right66,       :right33                                        ]
#
# QUERTZ
#grab "W-y", [ :bottom_left,  :bottom_left66,  :bottom_left33  ]
#
# QWERTY
grab "W-z", [ :bottom_left, :bottom_left66, :bottom_left75, :bottom_left25, :bottom_left33  ]
#
grab "W-x", [ :bottom,      :bottom66,      :bottom75,      :bottom25,      :bottom33       ]
grab "W-c", [ :bottom_right,:bottom_right66,:bottom_right75,:bottom_right25,:bottom_right33 ]

grab "W-S-q", [ :top_left252 ]
grab "W-S-e", [ :top_right252 ]
grab "W-S-z", [ :bottom_left252 ]
grab "W-S-c", [ :bottom_right252 ]



# Exec programs
grab "W-Return", "urxvtc"
grab "W-S-Return", "urxvtc -pe tabbed"
grab "W-p", "dwb"
grab "W-o", 'dmenu_run -fn "-*-anorexia-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#18618F" -sb "#1D576D" -sf "#B5AD64"'
grab "W-u", "urxvtc -name cleancolor"

# Multimedia Keys
grab "XF86AudioPlay", "mpc toggle" 
grab "XF86AudioNext", "mpc next" 
grab "XF86AudioPrev", "mpc prev" 
grab "XF86AudioStop", "mpc stop" 

grab "XF86AudioRaiseVolume", "amixer -c 0 set Master 2dB+"
grab "XF86AudioLowerVolume", "amixer -c 0 set Master 2dB-"
grab "XF86AudioMute", "amixer -c 0 set Master toggle"

# Run Ruby lambdas
grab "S-F2" do |c|
  puts c.name
end

grab "S-F3" do
  puts Subtlext::VERSION
end

# Scratchpad
grab "W-y" do
  if((c = Subtlext::Client["scratch"]))
    c.toggle_stick
    c.focus
  elsif((c = Subtlext::Subtle.spawn("urxvt -pe tabbed -name scratch")))
    c.tags = []
    c.flags = [ :stick ]
  end
end

# Make xmessage stick and urgent
tag "xmessage" do
  match  "xmessage" 
  float  true
  stick  true
  urgent true
end
 
# Check syntax
grab "W-C-r", <<SCRIPT
subtle -k &>/dev/null
reload=$?
 
if [ $reload -eq 1 ] ; then
  xmessage 'Syntax error, reload anyway?' -center -buttons NO:1,YES:0
  reload=$?
fi
 
[ $reload -eq 0 ] && subtler -r
SCRIPT

# }}}

# == Tags == {{{

# Simple tags
tag "terms" do
  match "xterm|[u]?rxvt"
  resize false
end

tag "browser", "uzbl|opera|firefox|navigator|dwb|chrome|chromium"

tag "jumanji", "jumanji|luakit"

tag "xev", "xev"

tag "floaterm" do
  match :instance => "cleancolor"
  float true
  resize false
  stick true
end

tag "imageview" do
  match "xkcd"
  match "display"
  float true
end

tag "imageview2" do
  match "sxiv"
  match "apvlv"
  float false
end

# Placement
tag "editor" do
  match  "[g]?vim"
  resize false
end

tag "fixed" do
  geometry [ 10, 10, 100, 100 ]
  stick    true
end

tag "resize" do
  match  "sakura|gvim"
  resize true
end

tag "gravity" do
  gravity :center
end

# Modes
tag "stick" do
  match "mplayer"
  float true
  stick true
end

tag "mplayer" do
  match "mplayer"
  float true
  stick true
  resize true
end

tag "float" do
  match "display"
  float true
end

# Gimp
tag "gimp_image" do
  match   :role => "gimp-image-window"
  gravity :gimp_image
end

tag "gimp_toolbox" do
  match   :role => "gimp-toolbox$"
  gravity :gimp_toolbox
end

tag "gimp_dock" do
  match   :role => "gimp-dock"
  gravity :gimp_dock
end

# }}}

# == Views == {{{

view "www" do
  match     "browser|floatterm"
  icon      icondir + "arch.xbm"
  icon_only true
end
view "terms" do
  match     "terms|imageview|imageview2|jumanji|xev"
  icon      icondir + "fs_02.xbm"
  icon_only true
end
view "misc" do
  dynamic   true
  match     "default|floaterm"
  icon      icondir + "dish.xbm"
  icon_only true
end

# }}}

# == Sublets == {{{

sublet :clock do
  interval        20
  format_string   "%a|%d/%m|%k:%M"
end

sublet :mpd do
  interval        30
  icon_fg         "#8A2F58"
  show_icons      false
  format_string   "%note% %artist% - %title% (%album%)"
end

sublet :battery do
  interval        2
end

sublet :cpu do
  interval        2
end

sublet :memory do 
  interval        2
end

sublet :temp do
  interval        2
  separator       " | "
  show_name       false
end

sublet :weather do
  location        "47331"
  temp_suffix     "°"
  forecast_length 2
  day_color       "#287373"
  sep_color       "#5E468C"
  temp_color      "#5E468C"
  sep             "|"
end

sublet :pacman do
  separator       "|"
  updatefile      "/home/vastlocyr/.pacmanupdates"
end

# }}}

# == Hooks == {{{
#
# And finally hooks are a way to bind Ruby scripts to a certain event.
#
# Following hooks exist so far:
#
# [*:client_create*]    Called whenever a window is created
# [*:client_configure*] Called whenever a window is configured
# [*:client_focus*]     Called whenever a window gets focus
# [*:client_kill*]      Called whenever a window is killed
#
# [*:tag_create*]       Called whenever a tag is created
# [*:tag_kill*]         Called whenever a tag is killed
#
# [*:view_create*]      Called whenever a view is created
# [*:view_configure*]   Called whenever a view is configured
# [*:view_jump*]        Called whenever the view is switched
# [*:view_kill*]        Called whenever a view is killed
#
# [*:tile*]             Called on whenever tiling would be needed
# [*:reload*]           Called on reload
# [*:start*]            Called on start
# [*:exit*]             Called on exit
#
# === Example
#
# This hook will print the name of the window that gets the focus:
#
#   on :client_focus do |c|
#     puts c.name
#   end
#
# === Link
#
# http://subforge.org/projects/subtle/wiki/Hooks
#

# }}}

# vim:ts=2:bs=2:sw=2:et:fdm=marker

CLICK TO VIEW

x

Notes

subtle, ncmpcpp, ranger, weechat, archey

Comments

frostyfrog said about 4 years ago

That’s a pretty cool set-up you have there. =D

edited about 4 years ago