From e06e00bd20eb0a9b52566423a9e4ffd2def8c535 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 16 May 2022 11:39:33 +0200 Subject: [PATCH] Update statusbar scripts --- .bin/sb-battery | 2 +- .bin/sb-date | 2 +- .bin/sb-internet | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bin/sb-battery b/.bin/sb-battery index adda65a..c517ffe 100755 --- a/.bin/sb-battery +++ b/.bin/sb-battery @@ -10,4 +10,4 @@ else color="\x04" fi -echo -n -e "$color $cap%" +echo -n -e "$color $cap% \x01" diff --git a/.bin/sb-date b/.bin/sb-date index d01bfcc..bc85197 100755 --- a/.bin/sb-date +++ b/.bin/sb-date @@ -1,3 +1,3 @@ #!/usr/bin/env bash -echo -n -e "Week $(date '+%V') - $(date '+%a %d %b %H:%M')" +echo -n -e "Week $(date '+%V') $(date '+%a %d %b %H:%M') " diff --git a/.bin/sb-internet b/.bin/sb-internet index c375e38..5eefbcb 100755 --- a/.bin/sb-internet +++ b/.bin/sb-internet @@ -4,4 +4,4 @@ if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then wifiicon="$(awk '/^\s*w/ { print "WiFi", int($3 * 100 / 70) "% " }' /proc/net/wireless)" fi -printf " %s%s%s |" "$wifiicon" "$(sed "s/down//;s/up/Ethernet/" /sys/class/net/e*/operstate 2>/dev/null)" +printf " %s%s%s" "$wifiicon" "$(sed "s/down//;s/up/Ethernet/" /sys/class/net/e*/operstate 2>/dev/null)"