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 | #
# == 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, :center75
# 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, true
# 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
# Set the WM_NAME of subtle (Java quirk)
set :wmname, "LG3D"
#
# == Screen
#
screen 1 do
top [ :title, :center, :separator, :views, :center, :spacer, :mpd, :separator, :ipaddr ]
bottom [ :center, :conky, :center ]
end
#
# == Styles
#
# Style for all style elements
style :all do
background "#282828"
icon "#FF9800"
border "#757575", 0
padding 0, 4
font "xft:Liberation Mono Bold:pixelsize=12"
end
# Style for the all views
style :views do
foreground "#F0E68C"
padding 2, 6
# Style for the active views
style :focus do
foreground "#FF9800"
border_left "#FF9800", 2
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 "#F0E68C"
border_right "#F0E68C", 2
end
style :separator do
foreground "#CCCCCC"
separator "•"
# separator " "
end
end
# Style for sublets
style :sublets do
padding 2, 4
foreground "#F0E68C"
icon "#FF9800"
background "#282828"
end
# Style for separator
style :separator do
foreground "#CCCCCC"
separator "•"
padding 2, 8
end
# Style for focus window title
style :title do
foreground "#F0E68C"
padding 2, 4
end
# Style for active/inactive windows
style :clients do
active "#757575", 1
inactive "#757575", 1
margin 0
width 50
end
# Style for subtle
style :subtle do
margin 0, 0, 0, 0
panel "#282828"
background "#282828"
stipple "#413A3A"
padding 0, 0, 0, 0
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 :center75, [ 12, 12, 75, 75 ]
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-c", :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", "urxvtc"
# Music
grab "W-q", "urxvtc -name ncmpcpp -e ncmpcpp"
grab "W-t", "urxvtc -name rtorrent -e bash -c 'screen -Rd rtorrent rtorrent'"
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-e", "chromium --disable-dev-tools --disable-logging %U"
grab "W-a", "urxvtc -name irssi -e ssh user@host"
grab "W-d", "thunar"
grab "W-p", "scrot ~/lulz.png"
grab "W-C-s", "skype"
grab "W-C-p", "pidgin"
grab "W-o", "libreoffice"
grab "W-i", "filezilla"
grab "W-m", "java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame"
grab "W-F2", 'dmenu_run -fn "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*" -nb "#202020" -nf "#757575" -sb "#757575" -sf "#202020" -p "RUN:" -i'
# Run Ruby lambdas
grab "S-F2" do |c|
puts c.name
end
grab "S-F3" do
puts Subtlext::VERSION
end
#
# == Tags
#
# Tags
tag "terms" do
match :instance => "xterm|[u]?rxvt"
gravity :bottom_right
end
tag "ft" do
match :name => "File\\sOperation\\sProgress"
gravity :top_right
end
tag "fm" do
match "thunar|xarchiver|deadbeef|audacious"
end
tag "dl" do
match "filezilla|deluge"
gravity :center
end
tag "editor" do
match "[g]?vim|libreoffice|soffice"
gravity :center
end
tag "browser" do
match "chromium|firefox|plugin-container"
gravity :center
end
tag "flash" do
match "<unknown>|exe|operapluginwrapper|npviewer.bin"
end
tag "im" do
match "skype|pidgin"
gravity :center75
end
tag "irssi" do
match "irssi"
gravity :left
end
tag "media" do
match "mplayer|smplayer|vlc|spotify|audacity"
float true
resize true
end
tag "music" do
match "ncmpcpp|rtorrent"
gravity :top_right
end
tag "games" do
match "minecraft|sun-awt-X11-XFramePeer|TS3.exe"
gravity :center
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_scum" do
match role: "gimp-.*|screenshot"
end
#
# == Views
#
view "terms", "terms|default|irssi|music"
view "www", "browser|flash"
view "dl", "dl"
view "fm", "fm|ft"
view "media" do
match "media"
dynamic true
end
view "games" do
match "games"
dynamic true
end
view "im" do
match "im"
dynamic true
end
view "gimp" do
match "gimp_.*"
dynamic true
end
view "doc" do
match "editor"
dynamic true
end
#
# == Sublets
#
# sur install clock
# sur uninstall clock
# sur list
# sur config clock
#
sublet :clock2 do
interval 1
time_format "%l:%M %p"
date_format "%a, %b %-d"
time_color '#f0e68c'
date_color '#f0e68c'
end
sublet :conky do
interval 1
end
sublet :mpd do
format_string "%note% %artist% - %title%"
show_icons false
show_colors true
artist_color '#FF9800'
album_color "#FF9800"
note_color "#FF9800"
title_color "#FF9800"
pause_color "#FF9800"
stop_color "#FF9800"
id_color "#F0E68C"
end
# vim:ts=2:bs=2:sw=2:et:fdm=marker
|
x
conandoel said about 11 years ago
how config de conky sublet???