38 lines
967 B
Plaintext
38 lines
967 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
hc() {
|
||
|
cmds="$cmds , $@"
|
||
|
}
|
||
|
|
||
|
hc emit_hook reload
|
||
|
|
||
|
. ~/.config/herbstluftwm/keybinds
|
||
|
|
||
|
hc unrule -F
|
||
|
hc rule focus=on # normally focus new clients
|
||
|
hc rule floatplacement=smart
|
||
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
|
||
|
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
||
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
|
||
|
|
||
|
hc set tree_style '╾│ ├└╼─┐'
|
||
|
|
||
|
. ~/.config/herbstluftwm/theme
|
||
|
|
||
|
herbstclient chain $cmds
|
||
|
|
||
|
#
|
||
|
# STOLEN FLOATING WINDOW CODE:
|
||
|
#
|
||
|
|
||
|
PADDING=$(herbstclient list_padding)
|
||
|
#re-add monitor called 'float' with same padding and dimensions as the monitor under focus in tag 9
|
||
|
herbstclient remove_monitor float
|
||
|
herbstclient add_monitor $(herbstclient list_monitors | grep \[FOCUS\] | grep -oe '[0-9]\+x[0-9]\++[0-9]\++[0-9]\+') "PIN" float
|
||
|
herbstclient lock_tag float
|
||
|
#add same padding:
|
||
|
herbstclient pad float $PADDING
|
||
|
|
||
|
# unlock after everything
|
||
|
hc unlock
|