small pixel drawing of a pufferfish dotfiles

bin/nostromo/statusbar

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

while true
do
    time=$(date +"%A %Y-%m-%d %I:%M %p")
    time="$time $(date -u +"(%H:%M UTC)")"
    bat="$(cat /sys/class/power_supply/BAT1/capacity)%"
    wifi="$(nmcli -t dev show wlp170s0 | grep GENERAL.CONNECTION | cut -d ':' -f 2)"
    printf "wifi: %s | bat: %s | %s\n" "$wifi" "$bat" "$time"
    sleep 10
done