diff options
Diffstat (limited to 'Panel/lemonbar/panel_bar')
-rwxr-xr-x | Panel/lemonbar/panel_bar | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Panel/lemonbar/panel_bar b/Panel/lemonbar/panel_bar index 99370d8..620d223 100755 --- a/Panel/lemonbar/panel_bar +++ b/Panel/lemonbar/panel_bar @@ -8,7 +8,7 @@ while read -r line ; do case $line in Imail) mbsync -a > /dev/null - if bspc control --get-status | grep OIX > /dev/null;then + if [ `rpws current` -eq 9 ];then mail='' else mail="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${ICON_MAIL} %{B-}%{F-}" @@ -16,7 +16,7 @@ while read -r line ; do ;; Iface) - if bspc control --get-status | grep OX > /dev/null;then + if [ `rpws current` -eq 10 ];then face='' else face="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${ICON_FACE} %{B-}%{F-}" @@ -24,7 +24,7 @@ while read -r line ; do ;; Ipub) - if bspc control --get-status | grep OX > /dev/null;then + if [ `rpws current` -eq 10 ];then pub='' else pub="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${ICON_PUB} %{B-}%{F-}" @@ -32,7 +32,7 @@ while read -r line ; do ;; Ipriv) - if bspc control --get-status | grep OX > /dev/null;then + if [ `rpws current` -eq 10 ];then priv='' else priv="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${ICON_PRIV} %{B-}%{F-}" |