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