my-scripts/status-update

11 lines
386 B
Plaintext
Raw Permalink Normal View History

2021-08-31 06:25:02 +00:00
#!/bin/sh
DATE="$(date +"%F %H:%M" )"
2022-05-30 11:21:57 +00:00
NETWORK="eth: $(cat /sys/class/net/enp34s0/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-30 11:31:35 +00:00
UPDATES="Upd: $(checkupdates -n | wc -l)"
xsetroot -name "$VOLUME | $NETWORK | $SPACE | $UPDATES | $DATE"