small pixel drawing of a pufferfish dotfiles

.config/sway/status

1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

date_formatted=$(date "+%a %F %H:%M")

linux_version=$(uname -r | cut -d '-' -f1)

battery_status=$(cat /sys/class/power_supply/BAT0/status)

battery_perc=$(cat /sys/class/power_supply/BAT0/capacity)

echo "$linux_version | $battery_perc% $battery_status | $date_formatted "