commit bcdd51f749edde09ded928358851b985c3528f12 parent 34f7a5c8cd952a9bb52619a0c4cf1e26a50cd05b Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 21 Feb 2019 14:29:57 +0100 Use api key for currency Diffstat:
M | links/.config/i3/i3scripts/i3battery | | | 6 | ++++-- |
M | links/bin/currency | | | 3 | ++- |
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/links/.config/i3/i3scripts/i3battery b/links/.config/i3/i3scripts/i3battery @@ -20,9 +20,11 @@ powerdraw=" $(( $(cat /sys/class/power_supply/"$1"/power_now)/1000000 ))W" warn="" if [ "$capacity" -ge 80 ]; then - color="#b8bb26" + #color="#b8bb26" + color="#FFF" elif [ "$capacity" -ge 60 ]; then - color="#ebdbb2" + #color="#ebdbb2" + color="#FFF" elif [ "$capacity" -ge 40 ]; then color="#fabd2f" elif [ "$capacity" -ge 20 ]; then diff --git a/links/bin/currency b/links/bin/currency @@ -21,7 +21,8 @@ if [ -n "$3" ]; then TO=$(echo "$3" | awk '{print toupper($0)}'); else TO=DKK; f if [ $TO == $FROM ]; then echo "Nothing to do!"; exit 2; fi #CONVERTER="https://finance.google.com/finance/converter?a=$A&from=$FROM&to=$TO" -CONVERTER="http://free.currencyconverterapi.com/api/v3/convert?q=${FROM}_${TO}&compact=ultra" +CONVERTER="https://free.currencyconverterapi.com/api/v6/convert?q=${FROM}_${TO}&compact=ultra&apiKey=$(pass Online/currencyconverterapi.com-apikey)" + #echo $CONVERTER GETCMD="wget --no-verbose"