Remove status-update, space-usage-update, and count-updates

These scripts were primarily used in conjunction with DWM, which I no
longer use.
This commit is contained in:
Nicolás A. Ortega Froysa 2024-12-30 18:44:34 +01:00
parent a361543acf
commit 766f64c4a6
3 changed files with 0 additions and 26 deletions

View File

@ -1,3 +0,0 @@
#!/bin/sh
UPDATES=$(checkupdates | wc -l)
echo "$UPDATES" > ~/.cache/update_count

View File

@ -1,2 +0,0 @@
#!/bin/bash
df -h | awk '{ if ($6 == "/") printf "/: " $4; if ($6 == "/home") printf " home: " $4; if ($6 == "/media/music") printf " music: " $4; }' > $HOME/.cache/free-space

View File

@ -1,21 +0,0 @@
#!/bin/bash
for ifname in $(ls /sys/class/net/ | grep -v 'lo')
do
if ! [ -f "/sys/class/net/$ifname/operstate" ]
then
>&2 echo "$ifname has no operstate"
continue
fi
IF_STATUS=$(cat /sys/class/net/$ifname/operstate)
IF_STATE_LIST+=("$ifname: $IF_STATUS")
done
DATE="$(date +"%F %H:%M" )"
NETWORK="${IF_STATE_LIST[*]}"
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"