From 5578acee4ecc7ccd6f7ee5b308d3d4ad295cef1a Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 15 Jun 2023 11:09:09 +0300 Subject: [PATCH] home/wm: drop support of xmobar --- .../window_manager/scripts/exchangerate.sh | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/home/modules/window_manager/scripts/exchangerate.sh b/home/modules/window_manager/scripts/exchangerate.sh index 659e8b3..8bd0d99 100755 --- a/home/modules/window_manager/scripts/exchangerate.sh +++ b/home/modules/window_manager/scripts/exchangerate.sh @@ -26,12 +26,10 @@ curl_exchangerate () { sed -e "s#<\/\?\w\+>##g" } -# bar_name=xmobar -bar_name=polybar - res=($(curl_cbr)) if [ -z "$res" ]; then - echo NO DATA + text="NO DATA" + echo "%{F@error@}${text}%{F-})" exit 0 fi @@ -44,15 +42,6 @@ if [ ${diff:0:1} == '-' ]; then color='@error@' fi -case $bar_name in - "xmobar") - echo "${res[-1]} (${arror}${diff})" - ;; - - "polybar") - echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})" - ;; -esac - +echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})" exit 0