guest@dotshare [~/groups/wms/subtle] $ ls Twilight/ | cat

Twilight (scrot, raw, dl) (+2 likes)

Anomareh Jul 21, 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
#
# OPTIONS
#
set :step, 5
set :snap, 10

set :gravity, :center75

set :urgent, false
set :resize, true
set :tiling, true

set :font, "xft:Semplice Regular:pixelsize=8"

set :wmname, "LG3D"


#
# SCREENS
#
screen 1 do
  top    [ :title, :center, :views, :center ]
  bottom [ :weather, :spacer, :clock2, :center, :smpd, :center ]
end


#
# STYLES
#
style :subtle do
  margin      0, 0, 0, 0
  panel       "#202020"
  stipple     "#757575"
end

style :clients do
  active      "#303030", 2
  inactive    "#202020", 2
  margin      10
  width       50
end

style :title do
  padding     5, 8, 5, 8
  border      "#303030", 0
  foreground  "#8F9D6A"
  background  "#202020"
end

style :sublets do
  padding     5, 8, 5, 8
  border      "#303030", 0
  foreground  "#757575"
  background  "#202020"
end

style :views do
  padding     5
  border      "#303030", 0
  foreground  "#757575"
  background  "#202020"
end

style :occupied do
  padding     5
  border      "#303030", 0
  foreground  "#B8B8B8"
  background  "#202020"
end

style :focus do
  padding     5
  border      "#303030", 0
  foreground  "#8F9D6A"
  background  "#202020"
end

style :urgent do
  padding     5
  border      "#303030", 0
  foreground  "#AC885B"
  background  "#202020"
end


#
# GRAVITIES
#
gravity :top_left,       [   0,   0,  50,  50 ]
gravity :top_left66,     [   0,   0,  50,  66 ]
gravity :top_left33,     [   0,   0,  50,  34 ]

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

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

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

gravity :center,         [   0,   0, 100, 100 ]
gravity :center75,       [  12,  12,  75,  75 ]
gravity :center66,       [  17,  17,  66,  66 ]
gravity :center33,       [  33,  33,  33,  33 ]

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

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

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

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


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

grab "W-1", :ViewSwitch1
grab "W-2", :ViewSwitch2
grab "W-3", :ViewSwitch3
grab "W-4", :ViewSwitch4

grab "KP_Add",      :ViewNext
grab "KP_Subtract", :ViewPrev

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

grab "W-r", :WindowRaise
grab "W-l", :WindowLower
grab "W-s", :WindowStick
grab "W-f", :WindowFloat
grab "W-space", :WindowFull
grab "W-equal", :WindowZaphod
grab "W-c", :WindowKill

grab "W-Left",  :WindowLeft
grab "W-Down",  :WindowDown
grab "W-Up",    :WindowUp
grab "W-Right", :WindowRight

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,       :center75,       :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 ]

grab "W-Tab" do |c|
  sel     = 0
  clients = Subtlext::Client.visible
  
  clients.each_index do |idx|
    if clients[idx].id == c.id
      sel = idx + 1 if idx < clients.size - 1
    end
  end
  
  clients[sel].focus
end

grab "W-Return", "urxvt"

grab "W-q", "urxvt -name ncmpcpp -e ncmpcpp"
grab "W-Page_Up", "ncmpcpp volume +5"
grab "W-Page_Down", "ncmpcpp volume -5"
grab "W-period", "ncmpcpp next"
grab "W-comma", "ncmpcpp prev"
grab "W-slash", "ncmpcpp toggle"

grab "W-w", "subl"
grab "W-e", "chromium"
grab "W-a", "urxvt -urgentOnBell -name irssi -e irssi"
grab "W-d", "thunar"

grab "W-p", "~/scripts/scrot"
grab "W-S-p", "~/scripts/scrot-thumb"

grab "W-m", "java -jar ~/games/minecraft/minecraft.jar"


#
# TAGS
#
tag "terms" do
  match :instance => "xterm|[u]?rxvt"
end

tag "fm" do
  match "thunar"
end

tag "editor" do
  match   "[g]?vim|emacs|subl"
  gravity :center
end

tag "browser" do
  match   "chromium"
  gravity :center
end

tag "flash" do
  match "<unknown>|exe|operapluginwrapper|npviewer.bin"
end

tag "irc" do
  match "irssi"
end

tag "music" do
  match   "ncmpcpp"
  gravity :bottom_left33
end

tag "games" do
  match "net-minecraft-MinecraftLauncher"
end


#
# VIEWS
#
view "terms", "terms|fm|default"
view "dev",   "editor"
view "net",   "browser|flash"
view "irc",   "irc"
view "media", "music|games"


#
# SUBLETS
#
sublet :clock2 do
  time_format "%l:%M %p"
  date_format "%a, %b %-d"
end

sublet :weather do
  sep "/"
  sep_color "#8F9D6A"
end

sublet :smpd do 
  pause_color "#8F9D6A"
end


#
# HOOKS
#
on :client_create do |c|
  c.views.first.jump
  c.focus
end

CLICK TO VIEW

x

Comments

gutterslob said about 13 years ago

I like everything I see here except the inconsistency in font selection. I’d rather see the same typeface for both terms and bars/panels.

Any plans on posting the term Xdefs colours?

Anomareh said about 13 years ago

@gutterslob I’d use terminus in subtle but it’s not condensed enough for me and Semplice Regular doesn’t have enough coverage to make for a suitable terminal font. Haven’t really run across any other pixel / bitmap / terminal fonts I can stand. They’re either way too tiny/condensed or cost an absurd amount of money cough Pragmata cough.

Here are the colors. As mentioned in the notes, they’re a bit hacky to play nice with ncmpcpp.