# # 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 "|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