# # Author:: Christoph Kappel # Version:: $Id$ # License:: GNU GPLv2 # # == Options == {{{ # Window move/resize steps in pixel per keypress set :step, 2 # Window screen border snapping set :snap, 10 # Default starting gravity for windows. Comment out to use gravity of # currently active client set :gravity, :center # Make transient windows urgent set :urgent, false # Honor resize size hints globally set :resize, false # Enable gravity tiling set :tiling, false # Font string either take from e.g. xfontsel or use xft set :font, "-*-anorexia-medium-*-*-*-11-*-*-*-*-*-*-*" #set :font, "xft:sans-8" # Separator between sublets set :separator, "|" # Set the WM_NAME of subtle (Java quirk) # set :wmname, "LG3D" icondir="/home/vastlocyr/Desktop/icons/xbm8x8/" # }}} # == Style == {{{ # Style for all style elements style :all do background "#121212" border "#303030", 0 padding 0, 3 end # Style for the views style :views do padding 0,2,0,2 # Style for the active views style :focus do foreground "#18618F" 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 "#8A2F58" end # Style for unoccupied views (views without clients) style :unoccupied do foreground "#753552" end end # Style for sublets style :sublets do foreground "#18618F" icon "#8A2F58" style :pacman do icon "#914E89" end style :cpu do icon "#5E468C" end style :memory do icon "#53A6A6" end style :weather do foreground "#287373" end style :clock do icon "#1C86C5" end end # Style for separator style :separator do foreground "#5E468C" end # Style for focus window title style :title do foreground "#287373" end # Style for active/inactive windows style :clients do active "#287373", 1 inactive "#121212", 1 margin 3 width 50 end # Style for subtle style :subtle do margin 0, 0, 0, 0 panel "#121212" background "#3d3d3d" stipple "#757575" end # }}} # == Screen == {{{ screen 1 do top [ :views, :mpd, :spacer, :keychain, :spacer, :title, :seperator, :cpu, :temp, :memory, :battery, :sublets, :seperator, :clock ] bottom [ ] 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 ] gravity :top_left75, [ 0, 0, 50, 75 ] gravity :top_left25, [ 0, 0, 50, 25 ] gravity :top_left252, [ 0, 25, 50, 25 ] # Top gravity :top, [ 0, 0, 100, 50 ] gravity :top66, [ 0, 0, 100, 66 ] gravity :top33, [ 0, 0, 100, 34 ] gravity :top75, [ 0, 0, 100, 75 ] gravity :top25, [ 0, 0, 100, 25 ] # Top right gravity :top_right, [ 50, 0, 50, 50 ] gravity :top_right66, [ 50, 0, 50, 66 ] gravity :top_right33, [ 50, 0, 50, 34 ] gravity :top_right75, [ 50, 0, 50, 75 ] gravity :top_right25, [ 50, 0, 50, 25 ] gravity :top_right252, [ 50, 25, 50, 25 ] # Left gravity :left, [ 0, 0, 50, 100 ] gravity :left66, [ 0, 0, 66, 100 ] gravity :left33, [ 0, 0, 34, 100 ] # Center gravity :center, [ 0, 0, 100, 100 ] gravity :center66, [ 17, 17, 66, 66 ] gravity :center33, [ 33, 33, 34, 34 ] # Right gravity :right, [ 50, 0, 50, 100 ] gravity :right66, [ 34, 0, 66, 100 ] gravity :right33, [ 66, 50, 34, 100 ] # Bottom left gravity :bottom_left, [ 0, 50, 50, 50 ] gravity :bottom_left66, [ 0, 34, 50, 66 ] gravity :bottom_left33, [ 0, 66, 50, 34 ] gravity :bottom_left75, [ 0, 25, 50, 75 ] gravity :bottom_left25, [ 0, 75, 50, 25 ] gravity :bottom_left252, [ 0, 50, 50, 25 ] # Bottom gravity :bottom, [ 0, 50, 100, 50 ] gravity :bottom66, [ 0, 34, 100, 66 ] gravity :bottom33, [ 0, 66, 100, 34 ] gravity :bottom75, [ 0, 25, 100, 75 ] gravity :bottom25, [ 0, 75, 100, 25 ] # Bottom right gravity :bottom_right, [ 50, 50, 50, 50 ] gravity :bottom_right66, [ 50, 34, 50, 66 ] gravity :bottom_right33, [ 50, 66, 50, 34 ] gravity :bottom_right75, [ 50, 25, 50, 75 ] gravity :bottom_right25, [ 50, 75, 50, 25 ] gravity :bottom_right252,[ 50, 50, 50, 25 ] # 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 "W-Right", :ViewNext grab "W-Left", :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-g", :WindowFloat # Toggle fullscreen mode of window grab "W-space", :WindowFull # Toggle sticky mode of window (will be visible on all views) grab "W-b", :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-m", :WindowLower # Select next windows grab "W-h", :WindowLeft grab "W-j", :WindowDown grab "W-k", :WindowUp grab "W-l", :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 ] # In case no numpad is available e.g. on notebooks grab "W-q", [ :top_left, :top_left66, :top_left75, :top_left25, :top_left33 ] grab "W-w", [ :top, :top66, :top75, :top25, :top33 ] grab "W-e", [ :top_right, :top_right66, :top_right75, :top_right25, :top_right33 ] grab "W-a", [ :left, :left66, :left33 ] grab "W-s", [ :center, :center66, :center33 ] grab "W-d", [ :right, :right66, :right33 ] # # QUERTZ #grab "W-y", [ :bottom_left, :bottom_left66, :bottom_left33 ] # # QWERTY grab "W-z", [ :bottom_left, :bottom_left66, :bottom_left75, :bottom_left25, :bottom_left33 ] # grab "W-x", [ :bottom, :bottom66, :bottom75, :bottom25, :bottom33 ] grab "W-c", [ :bottom_right,:bottom_right66,:bottom_right75,:bottom_right25,:bottom_right33 ] grab "W-S-q", [ :top_left252 ] grab "W-S-e", [ :top_right252 ] grab "W-S-z", [ :bottom_left252 ] grab "W-S-c", [ :bottom_right252 ] # Exec programs grab "W-Return", "urxvtc" grab "W-S-Return", "urxvtc -pe tabbed" grab "W-p", "dwb" grab "W-o", 'dmenu_run -fn "-*-anorexia-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#18618F" -sb "#1D576D" -sf "#B5AD64"' grab "W-u", "urxvtc -name cleancolor" # Multimedia Keys grab "XF86AudioPlay", "mpc toggle" grab "XF86AudioNext", "mpc next" grab "XF86AudioPrev", "mpc prev" grab "XF86AudioStop", "mpc stop" grab "XF86AudioRaiseVolume", "amixer -c 0 set Master 2dB+" grab "XF86AudioLowerVolume", "amixer -c 0 set Master 2dB-" grab "XF86AudioMute", "amixer -c 0 set Master toggle" # Run Ruby lambdas grab "S-F2" do |c| puts c.name end grab "S-F3" do puts Subtlext::VERSION end # Scratchpad grab "W-y" do if((c = Subtlext::Client["scratch"])) c.toggle_stick c.focus elsif((c = Subtlext::Subtle.spawn("urxvt -pe tabbed -name scratch"))) c.tags = [] c.flags = [ :stick ] end end # Make xmessage stick and urgent tag "xmessage" do match "xmessage" float true stick true urgent true end # Check syntax grab "W-C-r", <