guest@dotshare [~/groups/wms/subtle] $ ls Subtle-config/ | cat

Subtle config (scrot, raw, dl) (+5 likes)

vikan Jun 22, 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
# Author::  Vikas Kanhaua

# == Contrib Import {{{
#

begin
  require "#{ENV["HOME"]}/.config/subtle/subtle-contrib/ruby/selector.rb"
  require "#{ENV["HOME"]}/.config/subtle/subtle-contrib/ruby/merger.rb"

  Subtle::Contrib::Selector.font  = "xft:MonteCarlo"
  Subtle::Contrib::Merger.font    = "xft:MonteCarlo"
rescue LoadError
end

# }}}

# == Options {{{
#

set :step     , 5
set :snap     , 10
set :gravity  , :center_1
set :urgent   , true
set :resize   , false

set :font     , "-*-tamsyn-medium-*-*-*-12-*-*-*-*-*-*-*"

set :separator, "|"

set :wmname   , "LG3D"

# }}}

# == Screen {{{
#

screen 1 do
  top [ :title, :spacer, :views ]
end

# }}}

# == Colors {{{
#

style :title do
  foreground     "#cdad00"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :focus do
  foreground     "#cdad00"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :urgent do
  foreground     "#cd5c5c"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :occupied do
  foreground     "#659fbd"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :views do
  foreground     "#757575"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :sublets do
  foreground     "#fea63c"
  background     "#1a1a1a"
  padding        0, 3, 0, 3
end

style :separator do
  background     "#1a1a1a"
  foreground     "#757575"
end

style :clients do
  active         "#303030", 1
  inactive       "#202020", 1
  width          235
end

style :subtle do
  panel          "#1a1a1a"
  stipple        "#757575"
end

# }}}

# == Gravities {{{
#

gravity :top_left,       [  0,  0,  50,  50 ]
gravity :top,            [  0,  0, 100,  50 ]
gravity :top_right,      [ 50,  0,  50,  50 ]
gravity :left,           [  0,  0,  50, 100 ]
gravity :center,         [  0,  0, 100, 100 ]
gravity :center_1,       [  2,  2,  96,  84 ]
gravity :right,          [ 50,  0,  50, 100 ]
gravity :bottom_left,    [  0, 50,  50,  50 ]
gravity :bottom_left33,  [  0, 50,  50,  30 ]
gravity :bottom,         [  0, 50, 100,  50 ]
gravity :bottom_right,   [ 50, 50,  50,  50 ]
gravity :bottom_right33, [ 50, 50,  50,  30 ]

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

# }}}

# == Grabs {{{
#

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

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

# Select next and prev view */
grab "KP_Add",      :ViewNext
grab "KP_Subtract", :ViewPrev

grab "W-q",         :SubtleReload
grab "W-C-r",       :SubtleRestart
grab "W-S-q",       :SubtleQuit

grab "W-B1",        :WindowMove
grab "W-B3",        :WindowResize

grab "W-t",         :WindowFloat
grab "W-space",     :WindowFull
grab "W-s",         :WindowStick
grab "W-r",         :WindowRaise
grab "W-n",         :WindowLower

grab "W-h", :WindowLeft
grab "W-j", :WindowDown
grab "W-k", :WindowUp
grab "W-l", :WindowRight

grab "W-S-c",       :WindowKill

# Cycle between given gravities
grab "W-KP_7",      [ :top_left                      ]
grab "W-KP_8",      [ :top                           ]
grab "W-KP_9",      [ :top_right                     ]
grab "W-KP_4",      [ :left                          ]
grab "W-KP_5",      [ :center        ,     :center_1 ]
grab "W-KP_6",      [ :right                         ]
grab "W-KP_1",      [ :bottom_left33 ,  :bottom_left ]
grab "W-KP_2",      [ :bottom                        ]
grab "W-KP_3",      [ :bottom_right33, :bottom_right ]

# }}}

# Contrib {{{
#
grab "W-m" do
  Subtle::Contrib::Merger.run
end

grab "W-g" do
  Subtle::Contrib::Selector.run
end

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

# }}}

# User Programs {{{
#
grab "W-Return"            , "urxvtc"
grab "XF86Sleep"           , "alock -auth md5:file=/home/vikki/docs/passphrase"
grab "XF86Search"          , "firefox"
grab "XF86AudioRaiseVolume", "amixer -q set 'Front' 2+"
grab "XF86AudioLowerVolume", "amixer -q set 'Front' 2-"
grab "XF86AudioMute"       , "amixer -q set 'Front' toggle"
grab "XF86Mail"            , "mpc -q toggle"
grab "W-Down"              , "mpc -q stop"
grab "W-Right"             , "mpc -q next"
grab "W-Left"              , "mpc -q prev"
grab "W-a"                 , "zathura"
grab "W-b"                 , "favsong -b"
grab "W-c"                 , "chromium"
grab "W-e"                 , "eject -T /dev/sr0"
grab "W-f"                 , "favsong"
grab "W-o"                 , "libreoffice"
grab "W-p"                 , "dmenu_run -fn '-*-tamsyn-medium-*-*-*-12-*-*-*-*-*-*-*' -nb '#1a1a1a' -nf '#cdad00' -sb '#1a1a1a' -sf '#f1f1f1'"
grab "W-w"                 , "ranwall"
grab "W-x"                 , "xterm"
grab "W-XF86Search"        , "luakit"
grab "W-XF86Mail"          , "echo pause > ~/.mplayer/mplayer_fifo"
grab "W-Home"              , "sudo shutdown -r now"
grab "W-End"               , "sudo shutdown -h now"

# Using 5.1 channels is quite a pain
grab "W-XF86AudioRaiseVolume", "amixer -q set 'Surround' 2+"
grab "W-XF86AudioLowerVolume", "amixer -q set 'Surround' 2-"
grab "W-XF86AudioMute"       , "amixer -q set 'Surround' toggle"

# }}}

# }}}

# == Tags {{{
#

tag "terms" do
  match   "xterm|[u]?rxvt"
  gravity :center_1
end

tag "browser" do
  match   "uzbl|luakit|firefox|navigator|chromium"
  gravity :center_1
end

tag "media" do
  match   "mplayer|vlc"
  float   true
  stick   true
end

tag "office" do
  match   "libreoffice"
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

tag "gimp" do
  match   :class => "gimp"
end

# }}}

# == Views {{{
#
iconpath = "#{ENV["HOME"]}/.config/subtle/icons"

view "term" do
  match    "terms|default"
  icon     "#{iconpath}/terminal.xbm"
end

view "web" do
  match    "browser"
  icon     "#{iconpath}/world.xbm"
end

view "media" do
  match    "media"
  icon     "#{iconpath}/quote.xbm"
end

view "work" do
  match    "gimp*|office"
  icon     "#{iconpath}/pencil.xbm"
end

view "else" do
  icon     "#{iconpath}/bug.xbm"
end

# }}}

# == Hooks {{{
#

on :start do
  system("devmon -g --exec-on-drive 'notify %f mounted on %d' &")
end

on :exit do
  system("kill `pgrep devmon`")
end

# }}}

CLICK TO VIEW

x

Comments

dipilibupap said about 13 years ago

Nice to see you here vikan! Im still liking that conky!

vikan said about 13 years ago

hehe… thank u!!