small pixel drawing of a pufferfish dotfiles

Add nostromo bar
Jes Olson j3s@c3f.net
Sat, 14 May 2022 15:36:20 -0500
commit

bca62c8dc3c02c44c29b3e5e751be7b2e6450789

parent

baf0e0ff3e038e5e14eb0c062e1f57f1d916f2da

1 files changed, 11 insertions(+), 0 deletions(-)

jump to
A bin/nostromo/statusbar

@@ -0,0 +1,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