commit af31fc6bb04f9d4039d0509dec8be049629b2acf
parent 71862b7011075fcc37fa3cfffbc1046be95f7136
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Thu, 14 May 2009 00:04:29 -0700
restore support for wmii-3.6 with Kris Maglione's suggestion (UNTESTED!)
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/README b/README
@@ -13,7 +13,7 @@ This is my wmii configuration, described in these articles:
Dependencies:
- wmii hg2444 or newer
+ wmii 3.6 or newer (preferably wmii-hg)
Ruby 1.8.6 or newer
diff --git a/config.rb b/config.rb
@@ -256,7 +256,17 @@ def load_config config_file
'grabmod' => CONFIG['control']['grab'],
}
- fs.ctl.write settings.map {|pair| pair.join(' ') }.join("\n")
+ begin
+ fs.ctl.write settings.map {|pair| pair.join(' ') }.join("\n")
+
+ rescue Rumai::IXP::Error => e
+ #
+ # settings that are not supported in a particular wmii version
+ # are ignored, and those that are supported are (silently)
+ # applied. but a "bad command" error is raised nevertheless!
+ #
+ warn e.inspect, e.backtrace
+ end
launch 'xsetroot', '-solid', CONFIG['display']['background']