From 356f9c507778435345503f0fa808d902045efe2a Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 29 May 2020 18:31:15 +0200 Subject: [PATCH] black and white it is --- .local/bin/tools/statusbar/battery | 2 +- .local/bin/tools/statusbar/clock | 2 +- .local/bin/tools/statusbar/cpu | 2 +- .local/bin/tools/statusbar/disk | 7 ++++--- .local/bin/tools/statusbar/internet | 6 +++--- .local/bin/tools/statusbar/memory | 2 +- .local/bin/tools/statusbar/volume | 8 ++++---- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.local/bin/tools/statusbar/battery b/.local/bin/tools/statusbar/battery index 69231de..94af092 100755 --- a/.local/bin/tools/statusbar/battery +++ b/.local/bin/tools/statusbar/battery @@ -11,4 +11,4 @@ status=$(cat /sys/class/power_supply/"$1"/status) [ "$status" = "Charging" ] && color="#ffffff" -printf "%s%s" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/🛑/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " +printf "%s%s" "$(echo "$status" | sed -e "s/,//;s/Discharging//;s/Not Charging//;s/Charging//;s/Unknown//;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " diff --git a/.local/bin/tools/statusbar/clock b/.local/bin/tools/statusbar/clock index e7ede8b..846ffaa 100755 --- a/.local/bin/tools/statusbar/clock +++ b/.local/bin/tools/statusbar/clock @@ -2,4 +2,4 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -date +"%d %b %H:%M" +date +" %d %b %H:%M" diff --git a/.local/bin/tools/statusbar/cpu b/.local/bin/tools/statusbar/cpu index 5b1a742..3268e86 100755 --- a/.local/bin/tools/statusbar/cpu +++ b/.local/bin/tools/statusbar/cpu @@ -2,4 +2,4 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -sensors | awk '/Core 0/ {print $3}' +sensors | awk '/Core 0/ {print " " $3}' diff --git a/.local/bin/tools/statusbar/disk b/.local/bin/tools/statusbar/disk index 5d79ec1..43dec94 100755 --- a/.local/bin/tools/statusbar/disk +++ b/.local/bin/tools/statusbar/disk @@ -5,9 +5,10 @@ # $2 is optional icon, otherwise mountpoint will displayed # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -[ -z "$1" ] && exit +disk="/" +[ ! -z "$1" ] && disk="$1" icon="$2" -[ -z "$2" ] && icon="$1" +[ -z "$2" ] && icon="$disk" -printf "%s: %s\n" "$icon" "$(df -h "$1" | awk ' /[0-9]/ {print $3 "/" $2}')" +printf " %s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')" diff --git a/.local/bin/tools/statusbar/internet b/.local/bin/tools/statusbar/internet index 8a2ca2c..fa811d0 100755 --- a/.local/bin/tools/statusbar/internet +++ b/.local/bin/tools/statusbar/internet @@ -2,8 +2,8 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" +[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="" -[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') +[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }') -printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")" +printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon" diff --git a/.local/bin/tools/statusbar/memory b/.local/bin/tools/statusbar/memory index 527b2f6..49240f4 100755 --- a/.local/bin/tools/statusbar/memory +++ b/.local/bin/tools/statusbar/memory @@ -2,4 +2,4 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -free -h | awk '/^Mem:/ {print $3 "/" $2}' +free -h | awk '/^Mem:/ {print " " $3 "/" $2}' diff --git a/.local/bin/tools/statusbar/volume b/.local/bin/tools/statusbar/volume index 904855b..a72987f 100755 --- a/.local/bin/tools/statusbar/volume +++ b/.local/bin/tools/statusbar/volume @@ -2,16 +2,16 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇\\n" && exit +[ "$(pulsemixer --get-mute)" = "1" ] && printf "\\n" && exit vol=$(pulsemixer --get-volume | awk '{print $1}') if [ "$vol" -gt "70" ]; then - icon="🔊" + icon="" elif [ "$vol" -lt "30" ]; then - icon="🔈" + icon="" else - icon="🔉" + icon="" fi printf "%s %s\\n" "$vol" "$icon"