unexist.dev

Changeset 360:edd6d7742613

Updated configs
author unexist
date Thu, 23 Jun 2011 16:57:45 +0200
parents 5da708c9ed8b
children 15cd48501a35
files .config/subtle/subtle.rb .tmux.conf
diffstat 2 files changed, 21 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/.config/subtle/subtle.rb	Wed Jun 08 14:24:57 2011 +0200
+++ b/.config/subtle/subtle.rb	Thu Jun 23 16:57:45 2011 +0200
@@ -33,10 +33,7 @@
 set :resize,    false
 set :tiling,    false
 set :font,      "xft:Envy Code R:pixelsize=13"
-#set :font,     "xft:Ubuntu R:pixelsize=13"
-#set :font,     "xft:DejaVu Sans Mono:pixelsize=12:antialias=true"
 set :separator, "ยท"
-set :wmname,    "LG3D"
 # }}}
 
 # Screens {{{
@@ -195,6 +192,7 @@
 grab modkey + "-S-f",     :WindowFloat
 grab modkey + "-S-space", :WindowFull
 grab modkey + "-S-s",     :WindowStick
+grab modkey + "-S-equal", :WindowZaphod
 grab modkey + "-r",       :WindowRaise
 grab modkey + "-l",       :WindowLower
 grab modkey + "-Left",    :WindowLeft
@@ -235,16 +233,14 @@
 end
 
 # Multimedia keys
-#grab "XF86AudioMute", "amixer set Master toggle"
-#grab "XF86AudioRaiseVolume", "amixer set Master 2dB+"
-#grab "XF86AudioLowerVolume", "amixer set Master 2dB-"
-grab "XF86AudioMute", :VolumeToggle
+grab "XF86AudioMute",        :VolumeToggle
 grab "XF86AudioRaiseVolume", :VolumeRaise
 grab "XF86AudioLowerVolume", :VolumeLower
-grab "XF86AudioPlay", "mpc toggle"
-grab "XF86AudioStop", "mpc stop"
-grab "XF86AudioPrev", "mpc prev"
-grab "XF86AudioNext", "mpc next"
+grab "XF86AudioPlay",        :MpdToggle
+grab "XF86AudioStop",        :MpdStop
+grab "XF86AudioNext",        :MpdNext
+grab "XF86AudioPrev",        :MpdPrevious
+
 grab modkey + "-m", "mpc current | tr -d '\n' | xclip"
 
 # Programs
@@ -311,11 +307,16 @@
 
 # Tags {{{
 tag "terms" do
-  match    "xterm|urxvt"
+  match    instance: "xterm|urxvt"
   gravity  :center
   resize   true
 end
 
+tag "test" do
+  match instance: "test", class: "urxvt"
+  geometry [ 943, 548, 640, 480 ]
+end
+
 tag "browser" do
   match "navigator|(google\-)?chrom[e|ium]"
 
@@ -327,13 +328,13 @@
 end
 
 tag "pdf" do
-  match    "apvlv|evince"
-  stick    true
+  match "apvlv|evince"
+  stick true
 end
 
 tag "editor" do
-  match   "[g]?vim"
-  resize  true
+  match  "[g]?vim"
+  resize true
 
   if("mockra" == host or "proteus" == host or "pc03112" == host)
     gravity :top75
@@ -344,13 +345,11 @@
 
 tag "xeph640" do
   match    "xeph640"
-  urgent   false
   geometry [ 943, 548, 640, 480 ]
 end
 
 tag "xeph800" do
   match    "xeph800"
-  urgent   false
   geometry [ 855, 172, 800, 800 ]
 end
 
@@ -377,14 +376,13 @@
 tag "urgent" do
   match  "sun-awt-X11-XDialogPeer"
   type   :dialog
-  resize false
   stick  true
   urgent true
   float  true
 end
 
 tag "void" do
-  match   "jd-Main|Virtualbox"
+  match "jd-Main|Virtualbox"
 end
 
 tag "powerfolder" do
@@ -493,7 +491,7 @@
   icons     = true
 else
   www_re    = "browser"
-  test_re   = "android|xeph[0-9]+|eight|one$"
+  test_re   = "android|xeph[0-9]+|eight|one$|test"
   editor_re = "editor"
   icons     = true
 end
@@ -535,7 +533,7 @@
   icon      "#{iconpath}/ruby.xbm"
   icon_only icons
 end
-# }}}
+# }^}}
 
 # Sublets {{{
 sublet :clock do
@@ -555,5 +553,5 @@
   Subtlext::Screen[0].view = :terms
   Subtlext::Screen[1].view = :browser
 
-  Subtlext::Subtle.spawn("xinit xbmc -- :3")
+  Subtlext::Subtle.spawn("xinit xbmc -- :#{rand(10)}")
 end # }}}
--- a/.tmux.conf	Wed Jun 08 14:24:57 2011 +0200
+++ b/.tmux.conf	Thu Jun 23 16:57:45 2011 +0200
@@ -64,10 +64,3 @@
 
 set -g message-bg white
 set -g message-fg black
-
-# Session
-new -n subtle
-neww
-neww
-neww
-neww