home/wm: drop support of xmobar

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-15 11:09:09 +03:00
parent b28fc78cfd
commit 5578acee4e
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -26,12 +26,10 @@ curl_exchangerate () {
sed -e "s#<\/\?\w\+>##g" sed -e "s#<\/\?\w\+>##g"
} }
# bar_name=xmobar
bar_name=polybar
res=($(curl_cbr)) res=($(curl_cbr))
if [ -z "$res" ]; then if [ -z "$res" ]; then
echo NO DATA text="NO DATA"
echo "%{F@error@}${text}%{F-})"
exit 0 exit 0
fi fi
@ -44,15 +42,6 @@ if [ ${diff:0:1} == '-' ]; then
color='@error@' color='@error@'
fi fi
case $bar_name in
"xmobar")
echo "${res[-1]} (<fc=${color}>${arror}<hspace=3/>${diff}</fc>)"
;;
"polybar")
echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})" echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})"
;;
esac
exit 0 exit 0