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" & "$panel" "$monitor" &
done done
picom --experimental-backends &
pidof dunst || dunst & pidof dunst || dunst &
pidof mpd || mpd & pidof mpd || mpd &
pidof flameshot || flameshot & pidof flameshot || flameshot &

View File

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