summaryrefslogtreecommitdiffstats
path: root/.config/sway/i3blocks_modules
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/i3blocks_modules')
-rwxr-xr-x.config/sway/i3blocks_modules8
1 files 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)"