Reorder and reduce tags
This commit is contained in:
parent
0fafe0f9a9
commit
2b1dbcd56c
70
autostart
70
autostart
|
@ -127,17 +127,24 @@ hc keybind $Mod-Control-r resize right +$resizestep
|
|||
# tags
|
||||
#tag_names=( {1..9} )
|
||||
#tag_keys=( {1..9} 0 )
|
||||
tag_names=(" >_ " " web " " msg " " oth " " art " " 6 " " 7 " " 8 ")
|
||||
tag_keys=(a u i e b eacute p o)
|
||||
# Bind key to tag_name
|
||||
#KEY:"TAG_NAME"
|
||||
tag_binds=(
|
||||
a:" >_ "
|
||||
u:" web "
|
||||
i:" msg "
|
||||
e:"office"
|
||||
b:" mul "
|
||||
eacute:" oth "
|
||||
)
|
||||
|
||||
hc rename default "${tag_names[0]}" || true
|
||||
for i in "${!tag_names[@]}" ; do
|
||||
hc add "${tag_names[$i]}"
|
||||
key="${tag_keys[$i]}"
|
||||
if ! [ -z "$key" ] ; then
|
||||
hc keybind "$Mod-$key" use_index "$i"
|
||||
hc keybind "$Mod-Shift-$key" move_index "$i"
|
||||
fi
|
||||
hc silent attr tags.by-name.default && hc rename default " >_ "
|
||||
for i in "${tag_binds[@]}" ; do
|
||||
key="${i%%:*}"
|
||||
tag="${i#*:}"
|
||||
hc add "$tag"
|
||||
hc keybind "$Mod-$key" or . and , compare tags.focus.name = "$tag" , try use_previous . use "$tag"
|
||||
hc keybind "$Mod-Shift-$key" move "$tag"
|
||||
done
|
||||
|
||||
# cycle through tags
|
||||
|
@ -253,10 +260,10 @@ hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY)' floating=on
|
|||
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
|
||||
|
||||
## Move splash windows to tag " 7 "
|
||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_SPLASH' pseudotile=on tag=" 7 "
|
||||
## Move splash windows to tag " oth "
|
||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_SPLASH' pseudotile=on tag=" oth "
|
||||
|
||||
# tag: web
|
||||
# tag: web or related
|
||||
hc rule class=Firefox tag=" web "
|
||||
hc rule class=qutebrowser tag=" web "
|
||||
hc rule class=Midori tag=" oth "
|
||||
|
@ -273,12 +280,12 @@ hc rule class~'.ocket..hat.*' tag=" msg " focus=on
|
|||
hc rule class~'.ignal' tag=" msg " focus=on
|
||||
hc rule class~'.iscord' tag=" msg " focus=on
|
||||
|
||||
# oth
|
||||
# tag : office
|
||||
## Default layout {{{
|
||||
# | 50 | 50 |
|
||||
# | 50 | −−−|
|
||||
# | 50 | 50 |
|
||||
hc load " oth " '
|
||||
hc load "office" '
|
||||
(split horizontal:0.450000:0
|
||||
(clients vertical:0)
|
||||
(split vertical:0.550000:1
|
||||
|
@ -287,32 +294,31 @@ hc load " oth " '
|
|||
'
|
||||
## }}}
|
||||
## LibreOffice suite
|
||||
hc rule class~'.ibre.ffice.*' tag=" oth " index=00 focus=off pseudotile=off
|
||||
## Mumble client
|
||||
hc rule class=Mumble tag=" oth " index=00 focus=off pseudotile=off
|
||||
hc rule class~'.ibre.ffice.*' tag="office" index=00 focus=off pseudotile=off
|
||||
## cloud sync clients
|
||||
hc rule class=ownCloud tag=" oth " index=10 focus=on
|
||||
hc rule class~'.extcloud' tag=" oth " index=10 focus=on
|
||||
## VLC
|
||||
hc rule class=Vlc tag=" oth " index=11 focus=on
|
||||
hc rule class~'.wn.loud' tag="office" index=10 focus=on
|
||||
hc rule class~'.ext.loud' tag="office" index=10 focus=on
|
||||
## Mumble client
|
||||
hc rule class~'.umble' tag="office" index=11 focus=off pseudotile=off
|
||||
hc rule title~'.umble' windowtype='_NET_WM_WINDOW_TYPE_DIALOG' tag="office" index=11 focus=on pseudotile=off
|
||||
|
||||
# art - multimedia
|
||||
# tag : mul
|
||||
## Gimp now works in a single window
|
||||
## so no longer needs a default layout
|
||||
## so no longer needs a specific layout
|
||||
## Gimp
|
||||
hc rule class=Gimp tag=" art " pseudotile=on
|
||||
hc rule class=Gimp tag=" mul " pseudotile=on
|
||||
hc rule class=Gimp windowrole~'gimp-(image-window|toolbox|dock)' \
|
||||
pseudotile=off
|
||||
## Kodi
|
||||
hc rule class=Kodi tag=" art " focus=on
|
||||
|
||||
# tag: 6
|
||||
hc rule class=Kodi tag=" mul " focus=on
|
||||
## VLC
|
||||
hc rule class~'.lc' tag=" mul " focus=on
|
||||
## Steam
|
||||
hc rule class=Steam tag=" 6 "
|
||||
hc rule title=Steam tag=" 6 "
|
||||
hc rule class=Steam tag=" mul "
|
||||
hc rule title=Steam tag=" mul "
|
||||
|
||||
# tag: 8
|
||||
hc rule class=KeePass2 tag=" 8 "
|
||||
# tag : oth
|
||||
hc rule class=KeePass2 tag=" oth "
|
||||
|
||||
hc set tree_style '╾│ ├└╼─┐'
|
||||
|
||||
|
|
Loading…
Reference in New Issue