snips/tmux_status.laptop

19 lines
449 B
Plaintext
Raw Normal View History

2020-12-25 06:00:28 +00:00
#!/bin/bash
# vim: filetype=sh
#while true; do
VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
LOCALTIME=$(date +"%Y %h %d %I:%M%p %Z")
IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1)
2021-05-16 18:31:19 +00:00
# WEATHER=$(weather fips4105192520 | grep Tempera | awk '{print $2}')
WEATHER=$(curl wttr.in/45.54,-122.83?format="%c%t")
2020-12-25 06:00:28 +00:00
BAT=$(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')
2021-05-16 18:31:19 +00:00
echo "$IP  ${WEATHER}"
2020-12-25 06:00:28 +00:00
#sleep 30
#done