mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 20:59:44 +01:00
64d1f75a1e
The previous implementation tried to rename the tag named "default" to the first tag in `cfg.tags`. This was a wrong approach because if a tag with the same name already existed, the renaming failed and the default tag would continue to exist. The looking up of the default tag also contained a bug because it should have used `by-name` in the path.
51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
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 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'
|
|
|
|
for tag in '1' 'with space' 'wə1rd#ch@rs'\'''; do
|
|
herbstclient add "$tag"
|
|
done
|
|
|
|
if @herbstluftwm@/bin/herbstclient object_tree tags.by-name.default &>/dev/null; then
|
|
herbstclient use '1'
|
|
herbstclient merge_tag default '1'
|
|
fi
|
|
|
|
|
|
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 ";" "$@"
|
|
|