Add nostromo bar
Jes Olson j3s@c3f.net
Sat, 14 May 2022 15:36:20 -0500
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