Try to rename tags

This commit is contained in:
gardouille 2019-01-18 16:16:08 +01:00
parent 4e0df62f66
commit aff883cbc0
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 22 additions and 16 deletions

View File

@ -11,6 +11,11 @@ hc emit_hook reload
xsetroot -solid '#5A8E3A'
# load fonts
xset +fp ~/.fonts
xset +fp /usr/share/fonts
xset fp rehash
TERMINAL=terminator
if [ $(command -v terminator) ] && [ ! $(pidof -x terminator) ] ; then
@ -97,7 +102,8 @@ hc keybind $h-Control-Right resize right +$resizestep
# tags
#tag_names=( {1..9} )
#tag_keys=( {1..9} 0 )
tag_names=(term web msg oth art 6 7 8 )
tag_names=("  " " web " " msg " " oth " " art " " 6 " " 7 " " 8 ")
#tag_names=(term web msg oth art 6 7 8 )
tag_keys=(a u i e b eacute p o)
hc rename default "${tag_names[0]}" || true
@ -217,46 +223,46 @@ hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
# tag: web
hc rule class=Firefox tag=web
hc rule class=qutebrowser tag=web
hc rule class=Midori tag=oth
hc rule class=Firefox tag=" web "
hc rule class=qutebrowser tag=" web "
hc rule class=Midori tag=" oth "
# tag: msg
hc load msg '
hc load " msg " '
(split vertical:0.960000:0
(clients vertical:0)
(clients vertical:0)))
'
hc rule class=Thunderbird tag=msg focus=on index=01
hc rule class=Thunderbird tag=" msg " focus=on index=01
hc rule class=Thunderbird windowrole=Msgcompose focus=on index=01
# OpenPGP passphrase
hc rule class=Gcr-prompter tag=msg focus=on index=10
hc rule class=Thunderbird windowrole=AlarmWindow tag=msg focus=off index=10
hc rule class=Gcr-prompter tag=" msg " focus=on index=10
hc rule class=Thunderbird windowrole=AlarmWindow tag=" msg " focus=off index=10
hc rule class~'.ocket..hat.*' tag=msg focus=on index=01
hc rule class~'.ocket..hat.*' tag=" msg " focus=on index=01
# oth
hc load oth '
hc load " oth " '
(split horizontal:0.450000:0
(clients vertical:0)
(split vertical:0.550000:1
(clients vertical:0)
(clients vertical:0)))
'
hc rule class~'.ibre.ffice.*' tag=oth index=00 focus=off
hc rule class=Rhythmbox tag=oth index=10 focus=on
hc rule class=ownCloud tag=oth index=10 focus=on
hc rule class=Vlc tag=oth index=11 focus=on
hc rule class~'.ibre.ffice.*' tag=" oth " index=00 focus=off
hc rule class=Rhythmbox tag=" oth " index=10 focus=on
hc rule class=ownCloud tag=" oth " index=10 focus=on
hc rule class=Vlc tag=" oth " index=11 focus=on
# art (for GIMP)
## Now works in single window
# center all other gimp windows on gimp tag
hc rule class=Gimp tag=art pseudotile=on
hc rule class=Gimp tag=" art " pseudotile=on
hc rule class=Gimp windowrole~'gimp-(image-window|toolbox|dock)' \
pseudotile=off
# tag: 8
hc rule class=KeePass2 tag=8
hc rule class=KeePass2 tag=" 8 "
# unlock, just to be sure
hc unlock