From 9596761e8197f9802bc53c05b16253b9f737b6ff Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Thu, 14 May 2009 00:04:29 -0700 Subject: [PATCH] restore support for wmii-3.6 with Kris Maglione's suggestion (UNTESTED!) --- README | 2 +- config.rb | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README b/README index 7bdadc0..464fb79 100644 --- 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 index 67ff25e..9647acf 100644 --- 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']