summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdotfiles/system/.config/sway/config.d/swaybar.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/dotfiles/system/.config/sway/config.d/swaybar.sh b/dotfiles/system/.config/sway/config.d/swaybar.sh
index fd5fbd9..58cbcb2 100755
--- a/dotfiles/system/.config/sway/config.d/swaybar.sh
+++ b/dotfiles/system/.config/sway/config.d/swaybar.sh
@@ -20,9 +20,9 @@ charging_icon=""
if [ -n "$battery_state" ]; then
if [ "$battery_state" = "0" ]; then
if [ "$battery" -ge 100 ]; then
- charging_icon="" # Font Awesome plug (full but plugged in)
+ charging_icon=" " # Font Awesome plug (full but plugged in)
else
- charging_icon="" # Charging (bolt)
+ charging_icon=" " # Charging (bolt)
fi
fi
fi
@@ -30,24 +30,24 @@ fi
# Battery level icon & color coding
if [ -z "$battery" ]; then
battery="?"
- battery_icon=""
+ battery_icon=" "
battery_color="#888888"
else
if [ "$battery" -ge 90 ]; then
- battery_icon=""
+ battery_icon=" "
battery_color="#FFFFFF"
elif [ "$battery" -ge 60 ]; then
- battery_icon=""
+ battery_icon=" "
battery_color="#FFFFFF"
elif [ "$battery" -ge 30 ]; then
- battery_icon=""
+ battery_icon=" "
battery_color="#ffaa00"
# battery_color="#ff5500"
elif [ "$battery" -ge 10 ]; then
- battery_icon=""
+ battery_icon=" "
battery_color="#ff0000"
else
- battery_icon=""
+ battery_icon=" "
battery_color="#ff0000"
fi
fi
@@ -58,7 +58,7 @@ wifi_ssid=$(ifconfig wlan0 2>/dev/null | awk '/ssid/ {print $2}' | head -n 1)
# Wi-Fi block
wifi_output=""
if [ -n "$wifi_ssid" ]; then
- wifi_output=" $(pango_escape "$wifi_ssid")"
+ wifi_output=" $(pango_escape "$wifi_ssid")"
fi
# Fancy separator