my-scripts/status-update

10 lines
333 B
Plaintext
Raw 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"
xsetroot -name "$VOLUME | $NETWORK | $SPACE | $DATE"