Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # subtle.rb
- # general setup
- set :step, 5
- set :snap, 10
- set :gravity, :main
- set :urgent, false
- set :resize, false
- set :tiling, false
- # screen setup
- screen 1 do
- top [ :views, :spacer, :clock, :center, :mpd ]
- end
- # styles
- style :all do
- background "#bbbbbb"
- font "-*-bitocra13-*-*-*-*-*-*-*-*-*-*-*-*"
- end
- style :subtle do
- panel "#bbbbbb"
- end
- style :separator do
- separator "|"
- foreground "#333333"
- end
- style :title do
- foreground "#333333"
- end
- style :clients do
- active "#660000", 2
- inactive "#222222", 2
- end
- style :sublets do
- foreground "#333333"
- end
- sublet :clock do
- interval 1
- format_string "%A %d %B - %H:%M"
- end
- style :views do
- padding 2, 4, 2
- style :focus do
- foreground "#333333"
- border_bottom "#333333", 2
- end
- style :urgent do
- foreground "#ff9800"
- end
- style :occupied do
- foreground "#333333"
- end
- style :unoccupied do
- foreground "#333333"
- end
- end
- # W-* = general use
- # W-S-* = jump to view
- # W-C-* = system
- # grabs: system
- grab "W-C-e", :SubtleReload
- grab "W-C-w", :SubtleRestart
- grab "W-C-q", :SubtleQuit
- grab "W-C-a", :WindowFloat
- grab "W-C-s", :WindowFull
- grab "W-C-d", :WindowStick
- grab "W-C-f", :WindowZaphod
- grab "W-Left", :WindowLeft
- grab "W-Down", :WindowDown
- grab "W-Up", :WindowUp
- grab "W-Right", :WindowRight
- grab "W-x", :WindowKill
- # grabs: start programs
- grab "W-Return", "urxvt -name tmux -e tmux"
- grab "W-r", "uzbl-tabbed"
- grab "W-t", "thunderbird"
- grab "W-C-Return", "urxvt -name urxvt -e urxvt"
- grab "W-s", "leafpad"
- grab "W-d", "abiword"
- grab "W-f", "xpdf"
- grab "W-g", "pymp"
- grab "W-h", "urxvt -name ncmpcpp -e ncmpcpp"
- # grabs: views
- grab "W-S-1", :ViewJump1
- grab "W-S-2", :ViewJump2
- grab "W-S-3", :ViewJump3
- grab "W-S-4", :ViewJump4
- grab "W-1", :ViewSwitch1
- grab "W-2", :ViewSwitch2
- grab "W-3", :ViewSwitch3
- grab "W-4", :ViewSwitch4
- # grabs: gravities
- grab "W-q", [ :main, :bottom, :full ]
- # gravities
- gravity :full, [ 0, 0, 100, 100 ]
- gravity :main, [ 0, 0, 100, 80 ]
- gravity :bottom, [ 0, 80, 100, 20 ]
- # tags
- tag "tmux" do
- match instance: "tmux"
- gravity :main
- end
- tag "term" do
- match instance: "urxvt"
- gravity :main
- end
- tag "www" do
- match "uzbl-tabbed"
- gravity :main
- end
- tag "leafpad" do
- match "leafpad"
- gravity :full
- end
- tag "abiword" do
- match "abiword"
- gravity :full
- end
- tag "xpdf" do
- match "xpdf"
- gravity :full
- end
- tag "mplayer" do
- match "mplayer"
- gravity :main
- end
- tag "thunderbird" do
- match "thunderbird"
- gravity :full
- end
- tag "feh" do
- match "feh"
- gravity :full
- end
- tag "pymp" do
- match "pymp"
- gravity :bottom
- end
- tag "ncmpcpp" do
- match instance: "ncmpcpp"
- gravity :bottom
- end
- on :start do
- Subtlext::Subtle.spawn "uzbl-tabbed"
- Subtlext::Subtle.spawn "urxvt -name tmux -e tmux"
- Subtlext::Subtle.spawn "urxvt -name ncmpcpp -e ncmpcpp"
- end
- # views
- view "term", "tmux|ncmpcpp|term"
- view "inet", "www|default"
- view "file", "leafpad|abiword|xpdf|feh|mplayer|pymp"
- view "mail", "thunderbird"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement