my-scripts/status-update
Nicolás A. Ortega Froysa d0f84cb481 Check wlan in status instead of eth0
Signed-off-by: Nicolás A. Ortega Froysa <nicolas.ortega@zevenet.com>
2023-07-03 09:28:28 +02:00

11 lines
392 B
Bash
Executable File

#!/bin/sh
DATE="$(date +"%F %H:%M" )"
NETWORK="wlan: $(cat /sys/class/net/wlp2s0/operstate)"
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"
UPDATES="Upd: $(cat $HOME/.cache/update_count)"
xsetroot -name "$VOLUME | $NETWORK | $SPACE | $UPDATES | $DATE"