small pixel drawing of a pufferfish dotfiles

statusbar -> red
Jes Olson j3s@c3f.net
Tue, 14 Jun 2022 10:45:38 -0500
commit

c3154bf2ff14e49263fd1c3ee79bb90e54ac7615

parent

a346b7f4010d95184bf78377df94516af84198f8

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
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/statusbarbin/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