home/wm: drop support of xmobar
This commit is contained in:
parent
b28fc78cfd
commit
5578acee4e
1 changed files with 3 additions and 14 deletions
|
@ -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
|
||||
|
||||
exit 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue