statusbar -> red
Jes Olson j3s@c3f.net
Tue, 14 Jun 2022 10:45:38 -0500
2 files changed,
2 insertions(+),
1 deletions(-)
M
.config/sway/config
→
.config/sway/config
@@ -178,6 +178,7 @@
# When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. status_command statusbar + pango_markup enabled colors { background $base00
M
bin/nostromo/statusbar
→
bin/nostromo/statusbar
@@ -3,7 +3,7 @@
get_bat() { bat="$(cat /sys/class/power_supply/BAT1/capacity)" if [ "$bat" -lt 10 ]; then - printf '\033[1m\033[31m%s%%\033[0m' "$bat" + printf '<span foreground="red">%s%%</span>' "$bat" else printf '%s%%' "$bat" fi