my-scripts/status-update

13 lines
465 B
Plaintext
Raw Normal View History

2021-08-31 06:25:02 +00:00
#!/bin/sh
#DATE="$(date +"%F %H:%M:%S" )"
DATE="$(date +"%F %H:%M" )"
NETWORK="eth2: $(cat /sys/class/net/eth2/operstate)"
SPACE="$(cat $HOME/.cache/free-space)"
#vol_out_port="$(cat $HOME/.cache/audio-control/port)"
vol_status="$(cat $HOME/.cache/audio-control/vol_status)"
vol_level="$(cat $HOME/.cache/audio-control/vol_level)%"
#VOLUME="$vol_out_port $vol_status $vol_level"
VOLUME="$vol_status $vol_level"
xsetroot -name "$VOLUME | $NETWORK | $SPACE | $DATE"