os/arch (panel): fix bspwm desktop/monitor display
This commit is contained in:
parent
cda1d542ef
commit
baba5ca61e
|
@ -68,7 +68,7 @@ parse() {
|
|||
while [ "$#" -gt 0 ]
|
||||
do
|
||||
id=$1
|
||||
name=${id#???}
|
||||
name=${id#?}
|
||||
case $id in
|
||||
[mM]*)
|
||||
[ "$num_mon" -lt 2 ] && shift && continue
|
||||
|
@ -82,7 +82,7 @@ parse() {
|
|||
_BG=$COLOR_FOCUSED_MONITOR_BG
|
||||
;;
|
||||
esac
|
||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc monitor -f ${id#?}:} ${id#?} %{A}%{B-}%{F-}"
|
||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc monitor -f ${name}:} ${name} %{A}%{B-}%{F-}"
|
||||
;;
|
||||
[fFoOuU]*)
|
||||
case $id in
|
||||
|
@ -111,8 +111,8 @@ parse() {
|
|||
_BG=$COLOR_FOCUSED_URGENT_BG
|
||||
;;
|
||||
esac
|
||||
eval "icon=\$ICON_$(echo $name | tr '[:lower:]' '[:upper:]')"
|
||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc desktop -f ${id#?}:} ${icon:-$name} %{A}%{B-}%{F-}"
|
||||
eval "icon=\$ICON_$(echo ${name#??} | tr '[:lower:]' '[:upper:]')"
|
||||
wm="${wm}%{F$_FG}%{B$_BG}%{A:bspc desktop -f ${name}:} ${icon:-$name} %{A}%{B-}%{F-}"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
|
|
Loading…
Reference in a new issue