changeset 407:680b05b3f200

Updated browser tags
author unexist
date Tue, 08 Nov 2011 20:16:24 +0100
parents 9f8ee21b718a
children 67bbe61f5395
files .config/subtle/subtle.rb
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/.config/subtle/subtle.rb	Tue Nov 08 17:06:27 2011 +0100
+++ b/.config/subtle/subtle.rb	Tue Nov 08 20:16:24 2011 +0100
@@ -164,9 +164,9 @@
 modkey   = "W"
 gravkeys = [ "KP_7", "KP_8", "KP_9", "KP_4", "KP_5", "KP_6", "KP_1", "KP_2", "KP_3" ]
 
-if("telas" == host || "mockra" == host) #< Netbooks
+if "telas" == host || "mockra" == host #< Netbooks
   gravkeys = [ "q", "w", "e", "a", "s", "d", "y", "x", "c" ]
-elsif("test" == host) #< Usually VMs
+elsif "test" == host #< Usually VMs
   modkey = "A"
 end
 
@@ -261,7 +261,7 @@
 
 # Pychrom
 grab modkey + "-p" do
-  if((t = Subtlext::Tray[:pychrom]))
+  if (t = Subtlext::Tray[:pychrom])
     t.click
   else
     Subtlext::Subtle.spawn("pychrom")
@@ -302,9 +302,9 @@
 end
 
 tag "browser" do
-  match "navigator|(google\-)?chrom[e|ium]"
+  match "navigator|(google\-)?chrom[e|ium]|firefox"
 
-  if("proteus" == host or "pc03112" == host)
+  if "proteus" == host
     gravity :top75
   else
     gravity :center
@@ -315,7 +315,7 @@
   match  "[g]?vim|eclipse"
   resize true
 
-  if("mockra" == host or "proteus" == host or "pc03112" == host)
+  if "mockra" == host or "proteus" == host
     gravity :top75
   else
     gravity :center
@@ -433,7 +433,7 @@
 # }}}
 
 # Views {{{
-if("mockra" == host or "proteus" == host or "pc03112" == host)
+if "mockra" == host or "proteus" == host
   www_re    = "browser|one25|three25"
   test_re   = "xeph[0-9]+|android|three25"
   editor_re = "editor|one25|three25"
@@ -509,7 +509,7 @@
   Subtlext::View.all.each do |va|
     sym = va.name.to_sym
 
-    if(views.keys.include?(sym))
+    if views.keys.include?(sym)
       va.icon.copy_area(views[sym])
     else
       va.icon.copy_area(space[va.name.to_sym])