1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-09 22:58:43 +02:00
home-manager/tests/modules/services/window-managers/herbstluftwm/herbstluftwm-no-tags-autostart
Olmo Kramer 47bb9e7569
herbstluftwm: Reset mousebinds on (re)load
Keybinds and rules were already reset, but now also the mousebinds are.
2022-12-19 22:40:24 +01:00

33 lines
457 B
Bash

#!/nix/store/00000000000000000000000000000000-bash/bin/bash
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 mouseunbind --all
herbstclient unrule --all
herbstclient unlock
@herbstluftwm@/bin/herbstclient chain ";" "$@"