commit 16ab38459dad2f2b94f554b4b51b5213ab2c1d35 parent 5bb12aa0fb151b517f637e53281d377fdf46a011 Author: Suraj N. Kurapati <sunaku@gmail.com> Date: Mon, 19 Jan 2009 23:25:14 -0800 make firefox windows open on the current view Diffstat:
wmiirc-config.rb | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -136,6 +136,26 @@ EOF end end + # wmii puts subsequent firefox instances on the same + # view as the first instance. bypass this and move + # the newly created firefox to the current view + # + # this "feature" applies to all programs + # that provide window grouping hints. so + # we'll just have this event handler + # bypass the feature for ALL programs! :-( + event :CreateClient do |id| + c = Client.new(id) + + case c.label.read + when "Gran Paradiso - Restore Previous Session" + c.tags = 'web' + when /Firefox|Gran Paradiso|jEdit/i + c.tags = curr_tag + c.focus + end + end + # Actions