my-scripts/status-update

11 lines
392 B
Plaintext
Raw Normal View History

2021-08-31 06:25:02 +00:00
#!/bin/sh
DATE="$(date +"%F %H:%M" )"
NETWORK="wlan: $(cat /sys/class/net/wlp2s0/operstate)"
2021-08-31 06:25:02 +00:00
SPACE="$(cat $HOME/.cache/free-space)"
vol_status="$(cat $HOME/.cache/audio-control/vol_status)"
vol_level="$(cat $HOME/.cache/audio-control/vol_level)%"
VOLUME="$vol_status $vol_level"
2022-05-31 20:03:27 +00:00
UPDATES="Upd: $(cat $HOME/.cache/update_count)"
2022-05-30 11:31:35 +00:00
xsetroot -name "$VOLUME | $NETWORK | $SPACE | $UPDATES | $DATE"