2022-03-23 23:57:20 +01:00
|
|
|
#!/nix/store/00000000000000000000000000000000-bash/bin/bash
|
2021-11-09 23:17:36 +01:00
|
|
|
shopt -s expand_aliases
|
|
|
|
|
|
|
|
# shellcheck disable=SC2142
|
|
|
|
alias herbstclient='set -- "$@" ";"'
|
|
|
|
set --
|
|
|
|
|
|
|
|
herbstclient emit_hook reload
|
|
|
|
|
|
|
|
# Reset everything.
|
|
|
|
herbstclient attr theme.tiling.reset 1
|
|
|
|
herbstclient attr theme.floating.reset 1
|
|
|
|
herbstclient keyunbind --all
|
|
|
|
herbstclient unrule --all
|
|
|
|
|
|
|
|
herbstclient set always_show_frame true
|
|
|
|
herbstclient set default_frame_layout 'max'
|
|
|
|
herbstclient set frame_bg_active_color '#000000'
|
|
|
|
herbstclient set frame_gap '12'
|
|
|
|
herbstclient set frame_padding '-12'
|
|
|
|
|
2022-12-19 22:08:33 +01:00
|
|
|
if @herbstluftwm@/bin/herbstclient object_tree tags.default &>/dev/null; then
|
2021-11-09 23:17:36 +01:00
|
|
|
herbstclient rename default '1'
|
|
|
|
fi
|
|
|
|
|
|
|
|
for tag in '1' 'with space' 'wə1rd#ch@rs'\'''; do
|
|
|
|
herbstclient add "$tag"
|
|
|
|
done
|
|
|
|
|
2022-12-19 22:08:33 +01:00
|
|
|
|
2021-11-09 23:17:36 +01:00
|
|
|
herbstclient keybind Mod4-1 use 1
|
|
|
|
herbstclient keybind Mod4-2 use 2
|
|
|
|
herbstclient keybind Mod4-Alt-Tab cycle -1
|
|
|
|
herbstclient keybind Mod4-Tab cycle 1
|
|
|
|
|
|
|
|
herbstclient mousebind Mod4-B1 move
|
|
|
|
herbstclient mousebind Mod4-B3 resize
|
|
|
|
|
|
|
|
herbstclient rule focus=on
|
|
|
|
herbstclient rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' focus=on pseudotile=on
|
|
|
|
herbstclient rule class~'[Pp]inentry' instance=pinentry focus=on floating=on floatplacement=center keys_inactive='.*'
|
|
|
|
|
|
|
|
herbstclient use 1
|
|
|
|
|
|
|
|
|
|
|
|
herbstclient unlock
|
|
|
|
|
|
|
|
@herbstluftwm@/bin/herbstclient chain ";" "$@"
|
|
|
|
|