fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Olmo Kramerherbstluftwm: fix default tag renaming64d1f75a

master
1.3 KiB51 linesraw
1#!/nix/store/00000000000000000000000000000000-bash/bin/bash
2shopt -s expand_aliases
3
4# shellcheck disable=SC2142
5alias herbstclient='set -- "$@" ";"'
6set --
7
8herbstclient emit_hook reload
9
10# Reset everything.
11herbstclient attr theme.tiling.reset 1
12herbstclient attr theme.floating.reset 1
13herbstclient keyunbind --all
14herbstclient mouseunbind --all
15herbstclient unrule --all
16
17herbstclient set always_show_frame true
18herbstclient set default_frame_layout 'max'
19herbstclient set frame_bg_active_color '#000000'
20herbstclient set frame_gap '12'
21herbstclient set frame_padding '-12'
22
23for tag in '1' 'with space' 'wə1rd#ch@rs'\'''; do
24  herbstclient add "$tag"
25done
26
27if @herbstluftwm@/bin/herbstclient object_tree tags.by-name.default &>/dev/null; then
28  herbstclient use '1'
29  herbstclient merge_tag default '1'
30fi
31
32
33herbstclient keybind Mod4-1 use 1
34herbstclient keybind Mod4-2 use 2
35herbstclient keybind Mod4-Alt-Tab cycle -1
36herbstclient keybind Mod4-Tab cycle 1
37
38herbstclient mousebind Mod4-B1 move
39herbstclient mousebind Mod4-B3 resize
40
41herbstclient rule focus=on
42herbstclient rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' focus=on pseudotile=on
43herbstclient rule class~'[Pp]inentry' instance=pinentry focus=on floating=on floatplacement=center keys_inactive='.*'
44
45herbstclient use 1
46
47
48herbstclient unlock
49
50@herbstluftwm@/bin/herbstclient chain ";" "$@"
51