···178178 # When the status_command prints a new line to stdout, swaybar updates.
179179 # The default just shows the current date and time.
180180 status_command statusbar
181181+ pango_markup enabled
181182182183 colors {
183184 background $base00
+1-1
bin/nostromo/statusbar
···33get_bat() {
44 bat="$(cat /sys/class/power_supply/BAT1/capacity)"
55 if [ "$bat" -lt 10 ]; then
66- printf '\033[1m\033[31m%s%%\033[0m' "$bat"
66+ printf '<span foreground="red">%s%%</span>' "$bat"
77 else
88 printf '%s%%' "$bat"
99 fi