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
1 changed files with 3 additions and 14 deletions

View File

@ -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]} (<fc=${color}>${arror}<hspace=3/>${diff}</fc>)"
;;
"polybar")
echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})"
;;
esac
echo "${res[-1]} (%{F${color}}${arror}%{O3}${diff}%{F-})"
exit 0