herbstluftwm: fix all-gray workspaces on unfocused monitor instead of

colored for focused
This commit is contained in:
2023-07-08 15:20:42 +03:00
parent b300d90bfd
commit ef2cb3bb1b
2 changed files with 179 additions and 168 deletions

View File

@ -12,7 +12,7 @@
# hc is shorter than herbstclient :)
hc() {
herbstclient "$@"
herbstclient "$@"
}
# set mod keys
@ -92,9 +92,9 @@ hc keybind "$M-m" cycle_monitor
# cycle layouts
hc keybind "$M-Tab" \
or , and . compare tags.focus.curframe_wcount = 2 \
. cycle_layout +1 vertical horizontal max vertical grid \
, cycle_layout +1
or , and . compare tags.focus.curframe_wcount = 2 \
. cycle_layout +1 vertical horizontal max vertical grid \
, cycle_layout +1
# rotate and mirror
hc keybind "$M-apostrophe" mirror vertical
@ -148,12 +148,12 @@ tag_keys=(a s d f g z x c v b)
hc rename default "${tag_names[0]}" || true
for i in "${!tag_names[@]}"; do
hc add "${tag_names[$i]}"
key="${tag_keys[$i]}"
if ! [ -z "$key" ]; then
hc keybind "$M-$key" use_index $i
hc keybind "$M-$S-$key" move_index $i
fi
hc add "${tag_names[$i]}"
key="${tag_keys[$i]}"
if ! [ -z "$key" ]; then
hc keybind "$M-$key" use_index $i
hc keybind "$M-$S-$key" move_index $i
fi
done
#
@ -218,7 +218,6 @@ for monitor in $(hc list_monitors | cut -d: -f1); do
"$panel" "$monitor" &
done
picom --experimental-backends &
pidof dunst || dunst &
pidof mpd || mpd &
pidof flameshot || flameshot &