From fd59bf74de6ecbc24b44d4f4e9cd62117fb9dd51 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 24 Jan 2022 22:28:25 +0000 Subject: Additional currencies, use ticker symbols --- .config/sway/i3blocks_modules | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.config/sway/i3blocks_modules b/.config/sway/i3blocks_modules index bf3dd34..305fddb 100755 --- a/.config/sway/i3blocks_modules +++ b/.config/sway/i3blocks_modules @@ -3,11 +3,7 @@ check_online() { status=$(curl --silent "http://detectportal.firefox.com/success.txt") - if [ ! "$status" = "success" ] - then - printf "Disconnected" - exit 1 - fi + if [ ! "$status" = "success" ]; then exit 1; fi } strip_chars() { @@ -21,7 +17,7 @@ case "$1" in crypto) check_online change() { printf "%0.1f" "$(curl --silent --request GET --url "https://api.coincap.io/v2/assets/$1" | jq -r '.data.changePercent24Hr')" ; } - printf " %s, %s\n" "$(change monero)" "$(change nano)" + printf " %sN %sM %sX\n" "$(change nexo)" "$(change monero)" "$(change nano)" ;; backlight) printf " %s\n" "$(brightnessctl i | awk '/Current/ {print $4}' | strip_chars)" -- cgit v1.2.3