Advertisement
Pauan

Subtle Config 01

May 28th, 2012
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.96 KB | None | 0 0
  1. screen 1 do
  2.   top    [ :views ]
  3.   bottom [ ]
  4. end
  5.  
  6. style :views do
  7.   foreground     "#656565"
  8.   padding_left   5
  9.   padding_right  5
  10.   style :focus do
  11.     foreground  "#fecf35"
  12.   end
  13.   style :urgent do
  14.     foreground  "#ff9800"
  15.   end
  16.   style :occupied do
  17.     foreground  "#b8b8b8"
  18.   end
  19. end
  20.  
  21.  
  22.  
  23. ## Required
  24. style :all do
  25.   font "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*"
  26. end
  27.  
  28. # Restores a known good config and restarts subtle
  29. grab "M-Return", "cp $HOME/.config/subtle/subtle.rb.old $HOME/.config/subtle/subtle.rb && subtle --replace"
  30.  
  31.  
  32.  
  33. gravity :foo, [   0,   0,  50, 100 ], :vert
  34. gravity :bar, [  50,   0,  50, 100 ], :vert
  35.  
  36. tag "foo" do
  37.   match "xfce4-terminal"
  38.   on_match do |c|
  39.     puts c
  40.     c.gravity = {:foo => :foo}
  41.     puts c.gravity
  42.   end
  43. end
  44.  
  45. tag "bar" do
  46.   match "firefox"
  47.   on_match do |c|
  48.     puts c
  49.     c.gravity = {:bar => :bar}
  50.     puts c.gravity
  51.   end
  52. end
  53.  
  54. view "foo", "foo"
  55. view "bar", "bar"
  56. view "qux", "default"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement