Update wm rules

- Always focus new windows.
- Put URxvt windows on tag 1 in frame 1 and switch to the tag if
  necessary.
- Put Emacs windows on tag 1 in frame 0.
- Put Conkeror winndows on tag 2 in frame 0.
- Turn on pseudotile for Pinentry windows.
- Don't focus Firefox windows.
- Do focus firefox-developer windows.
This commit is contained in:
Tom Willemse 2015-06-17 10:55:09 +02:00
parent 7762e3892d
commit 811b1720d3

View file

@ -108,12 +108,14 @@ hc set update_dragged_clients 1
# rules
hc unrule -F
#hc rule class=XTerm tag=3 # move all xterms to tag 3
hc rule focus=off # normally do not focus new clients
# give focus to most common terminals
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
hc rule focus=on # normally do focus new clients
hc rule class=URxvt focus=on tag=1 index=1 switchtag=on
hc rule class=Emacs tag=1 index=0
hc rule class=Conkeror tag=2 index=0
hc rule class=Pinentry pseudotile=on
hc rule class=Firefox focus=off
hc rule instance=firefox-developer focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
# unlock, just to be sure