From e2e81bde9fb2e474040abb5b2fa0b7fc03645270 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 23 Aug 2022 19:34:38 +0200 Subject: [PATCH] visual updates for statusbar --- .local/bin/statusbar/sb-clock | 2 +- .local/bin/statusbar/sb-forecast | 2 +- .local/bin/statusbar/sb-volume | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index f217a3ae8..27450bf91 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -15,4 +15,4 @@ case "$clock" in "11") icon="" ;; "12") icon="" ;; esac -printf "%s \033[11m%s\033[10m %s\n" "$(date "+%d.%M.%Y")" "$icon" "$(date "+%H:%M")" +printf "%s \033[11m%s\033[10m %s\n" "$(date "+%H:%M")" "$icon" "$(date "+%d.%M.%Y")" diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index e1408b161..87726a852 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -30,7 +30,7 @@ getforecast() { curl -sf "$url$opt" > "$weatherfile" && curl -sf "$url$emojiopt" showweather() { emoji="$(printf "\033[12m%s\033[10m" "$(cut -d ' ' -f 1 "$emojifile")")" sed '16q;d' "$weatherfile" | grep -wo "[0-9]*%" | sort -rn | sed "s/^/$emoji /g;1q" | tr -d '\n' - sed '13q;d' "$weatherfile" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print "  " $1 "°"," " $2 "°"}'; + sed '13q;d' "$weatherfile" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " \033[34m\033[0m " $1 "°","\033[31m\033[0m " $2 "°"}'; } getforecast && convertemoji showweather diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 8464b48b6..335296b28 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -12,6 +12,6 @@ elif [ "$vol" -gt "0" ]; then elif [ "$vol" -eq "0" ]; then icon="" else - echo "   " && exit + echo " \033[11m\033[10m  " && exit fi printf "\033[11m%s\033[10m %s" "$icon" "$vol"