Skip to content

Commit

Permalink
restore support for wmii-3.6 with Kris Maglione's suggestion (UNTESTED!)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed May 14, 2009
1 parent 8b64444 commit 9596761
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -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

Expand Down
12 changes: 11 additions & 1 deletion config.rb
Expand Up @@ -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']

Expand Down

0 comments on commit 9596761

Please sign in to comment.