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']