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

colored for focused
This commit is contained in:
mequidis
2022-08-14 06:49:31 +03:00
parent be7bb47536
commit 5460dd94bc
2 changed files with 179 additions and 168 deletions

View File

@ -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 &

View File

@ -119,25 +119,37 @@ hc pad $monitor $(($panel_height + 12))
# draw tags
for i in "${tags[@]}"; do
case ${i:0:1} in
'#')
# tag is focused
echo -n "^bg($color2)^fg()"
'.')
# the tag is empty
# TODO Add your formatting tags
echo -n "^bg()^fg($color8)"
;;
':')
# tag is not empty
# the tag is not empty
echo -n "^bg()^fg($foreground)"
;;
'!')
# tag containts an urgent window
echo -n "^bg($color6)^fg()"
;;
'-')
# tag is viewed on a non-focused monitor
'+')
# the tag is viewed on the specified MONITOR, but this monitor is not focused.
echo -n "^bg($color1)^fg()"
;;
*)
# tag is empty
echo -n "^bg()^fg($color8)"
'#')
# the tag is viewed on the specified MONITOR and it is focused.
echo -n "^bg($color2)^fg()"
;;
'-')
# the tag is viewed on a different MONITOR, but this monitor is not focused.
echo -n "^bg($color1)^fg()"
;;
'%')
# the tag is viewed on a different MONITOR and it is focused.
echo -n "^bg($color2)^fg()"
;;
'!')
# the tag contains an urgent window
# TODO Add your formatting tags
echo -n "^bg($color6)^fg()"
;;
esac
if [ ! -z "$dzen2_svn" ]; then