From 1e08620e00a109e19f1420e343dc14dfd9c5bacc Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 16 Jun 2019 03:02:08 +0200 Subject: [PATCH] Cleanup of polybar scripts --- polybar/.config/polybar/battery.sh | 2 +- polybar/.config/polybar/wifi.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polybar/.config/polybar/battery.sh b/polybar/.config/polybar/battery.sh index 10d6d43..8c8bbf3 100755 --- a/polybar/.config/polybar/battery.sh +++ b/polybar/.config/polybar/battery.sh @@ -4,7 +4,7 @@ color8="#88C0D0" icon(){ printf "%s\\n" "%{F${color8}}${1}%{F}" -} +} icon2() { printf "%s\\n" "%{F${color11:-#F0F0F0}}${1}%{F}" diff --git a/polybar/.config/polybar/wifi.sh b/polybar/.config/polybar/wifi.sh index 9349250..fcd9fa4 100755 --- a/polybar/.config/polybar/wifi.sh +++ b/polybar/.config/polybar/wifi.sh @@ -5,7 +5,7 @@ icon(){ printf "%s\\n" "%{F${color8}}${1}%{F}" } -wifi="$(echo -e $(wpa_cli status | grep ssid | awk 'NR==2{print $1}' | cut -c 6-))" +wifi="$(echo -e "$(wpa_cli status | grep ssid | awk 'NR==2{print $1}' | cut -c 6-)")" wifi_icon="" printf "%s\\n" "$(icon "$wifi_icon") ${wifi}"