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(-) (limited to '.config') 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 /dotfiles/log/.config/zathura/zathurarc'>logtreecommitdiffstats
path: root/.config/zathura/zathurarc
diff options
context:
space:
mode:
authorPeter2021-12-29 00:32:02 +0000
committerPeter2021-12-29 00:32:02 +0000
commit15bbdc301d05f22b4f370e12f8d02ff64c882b83 (patch)
tree02b4b97eecd9a70ea95b1f71cf6771b0add766b8 /.config/zathura/zathurarc
parentf3a198bcadd18a18e3b7c8963d6c578b254f23cb (diff)
downloaddotfiles-15bbdc301d05f22b4f370e12f8d02ff64c882b83.tar.gz
dotfiles-15bbdc301d05f22b4f370e12f8d02ff64c882b83.tar.bz2
dotfiles-15bbdc301d05f22b4f370e12f8d02ff64c882b83.zip
Solve every shellcheck warning
Diffstat (limited to '.config/zathura/zathurarc')