From baba5ca61ecbefe7b49dbabcd045dcd23f603092 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Dec 2016 16:20:43 -0500 Subject: [PATCH] os/arch (panel): fix bspwm desktop/monitor display --- os/arch/.config/panel/panel | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/arch/.config/panel/panel b/os/arch/.config/panel/panel index 5bc6acce..4d30bfe8 100755 --- a/os/arch/.config/panel/panel +++ b/os/arch/.config/panel/panel @@ -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