herbstluftwm: fix all-gray workspaces on unfocused monitor instead of
colored for focused
This commit is contained in:
@ -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 &
|
||||
|
||||
@ -73,7 +73,7 @@ pulsegetvol() {
|
||||
pulsesub() {
|
||||
pactl subscribe | grep --line-buffered "change.*sink" | while read -r line; do
|
||||
echo -ne "pulseaudio\t$(pulsegetvol)\n"
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
# used when reloading / quitting, kills all event generators as they no longer have a use
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user