guest@dotshare [~/groups/wms/subtle] $ ls diamond-head/ | cat

diamond head (scrot, raw, dl) (+2 likes)

linuxville Apr 08, 2013 (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
# -*- encoding: utf-8 -*-


# == Options
# Window move/resize steps in pixel per keypress
set :increase_step, 5

# Window screen border snapping
set :border_snap, 10

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

# Make dialog windows urgent and draw focus
set :urgent_dialogs, false

# Honor resize size hints globally
set :honor_size_hints, false

# Enable gravity tiling for all gravities
set :gravity_tiling, false

# Enable click-to-focus focus model
set :click_to_focus, false

# Skip pointer movement on e.g. gravity change
set :skip_pointer_warp, false

# Skip pointer movement to urgent windows
set :skip_urgent_warp, false


# == Screen
screen 1 do
  top    [ :views, :spacer, :keychain, :spacer, :tray, :cpu, :memory, :mpd, :clock ]
  bottom [ ]
end


# == Styles
# Style for all style elements
style :all do
  background  "#161719"
  icon        "#bcbcbc"
  border      "#212224", 1
  padding     2, 8, 0, 8
  font        "xft:anorexia-8"
end

# Style for the all views
style :views do
  foreground  "#727375"
  background  "#161719"

  # Style for the active views
  style :focus do
    foreground  "#727375"
    background  "#161719"
    padding     2, 8, 0, 8
    icon        "#a6e22e"
  end

  # Style for urgent window titles and views
  style :urgent do
    foreground  "#d3c6d7"
    background  "#161719"
  end

  # Style for occupied views (views with clients)
  style :occupied do
    padding     2, 8, 0, 8
    foreground  "#d3c6d7"
    background  "#161719"
    icon        "#e85b92"
  end
end

# Style for sublets
style :sublets do
  foreground  "#727375"
  icon        "#e85b92"
end

# Style for separator
style :separator do
  foreground  "#1f1f1f"
  separator   "|"
end

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

# Style for active/inactive windows
style :clients do
  active    "#e85b92", 1
  inactive  "#161719", 1
  margin    0
  width     50
end

# Style for subtle
style :subtle do
  margin      2, 10, 0, 10
  panel       "#161719"
  background  "#0f0f0f"
  stipple     "#757575"
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 ]

# Top
gravity :top,            [   0,   0, 100,  50 ]
gravity :top66,          [   0,   0, 100,  66 ]
gravity :top33,          [   0,   0, 100,  34 ]

# Top right
gravity :top_right,      [  50,   0,  50,  50 ]
gravity :top_right66,    [  50,   0,  50,  66 ]
gravity :top_right33,    [  50,   0,  50,  33 ]

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

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

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

# Bottom left
gravity :bottom_left,    [   0,  50,  50,  50 ]
gravity :bottom_left66,  [   0,  34,  50,  66 ]
gravity :bottom_left33,  [   0,  67,  50,  33 ]

# Bottom
gravity :bottom,         [   0,  50, 100,  50 ]
gravity :bottom66,       [   0,  34, 100,  66 ]
gravity :bottom33,       [   0,  67, 100,  33 ]

# Bottom right
gravity :bottom_right,   [  50,  50,  50,  50 ]
gravity :bottom_right66, [  50,  34,  50,  66 ]
gravity :bottom_right33, [  50,  67,  50,  33 ]

# 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 "KP_Add",      :ViewNext
grab "KP_Subtract", :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-f", :WindowFloat

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

# Toggle sticky mode of window (will be visible on all views)
grab "W-s", :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-l", :WindowLower

# Select next windows
grab "W-Left",  :WindowLeft
grab "W-Down",  :WindowDown
grab "W-Up",    :WindowUp
grab "W-Right", :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 ]

# Exec programs
grab "W-Return", "urxvt"
grab "W-p", "gmrun"
grab "W-F1", "firefox"
grab "W-F2", "spacefm"
grab "W-F3", "urxvt -e ncmpcpp"
grab "W-F4", "urxvt -e weechat-curses"
grab "W-F5", "urxvt -e rtorrent"
grab "W-F6", "urxvt -e mutt"
grab "W-F7", "gimp"
grab "W-F8", "tuxguitar"
grab "W-F9", "urxvt -e htop"
grab "W-F10", "leafpad"
grab "W-F11", "libreoffice --writer"

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

#grab "S-F3" do
#  PUTS sUbtlext::VERSION
#end


# == Tags
tag "terms" do
  match "xterm|[u]?rxvt"
  float true
end

tag "browser", "firefox"

tag "media" do
  match "tuxguitar|gimp|nitrogen|gpicview|spacefm|mplayer|xarchiver"
  float true
end

tag "editor" do
  match  "leafpad|libreoffice"
  float  true
  resize true
end

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

tag "gravity" do
  gravity :center
end

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

tag "flash" do
  match "<unknown>|plugin-container|exe|operapluginwrapper|npviewer.bin" 
  stick true
end

# == Views
view "Term" do
  match "terms"
  icon "/home/goku/dzen/terminal.xbm"
end

view "Web" do   
  match "browser"
  icon "/home/goku/dzen/world.xbm"
end

view "Media" do
  match "gimp_.*|media"
  icon "/home/goku/dzen/tv.xbm"
end

view "Pr0n" do
  match "editor"
  icon "/home/goku/dzen/misc.xbm"
end

# == Sublets
sublet :clock do
  interval      30
  format_string "%I:%M %p"
end

sublet :mpd do
  show_icons false
end

# == Hooks
on :start do
  Subtlext::Subtle.spawn "nitrogen --restore" 
end

on :start do
  Subtlext::Subtle.spawn "compton -cCGfF -o 0.38 -O 200 -I 200 -t 0.02 -l 0.02 -r 3.2 -D2 -m 0.88"
end

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

CLICK TO VIEW

x

Comments

StylinGreymon said about 11 years ago

This looks really awesome.
Where can I get your panel icons?

linuxville said about 11 years ago

I found them in github. Try to search xbm icon there. And I don’t have them now, if I had, I would upload them for you. Sorry.

edited about 6 years ago