From 766f64c4a6d57d1064b31a623d232a93427e4a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 30 Dec 2024 18:44:34 +0100 Subject: [PATCH] Remove status-update, space-usage-update, and count-updates These scripts were primarily used in conjunction with DWM, which I no longer use. --- count-updates | 3 --- space-usage-update | 2 -- status-update | 21 --------------------- 3 files changed, 26 deletions(-) delete mode 100755 count-updates delete mode 100755 space-usage-update delete mode 100755 status-update diff --git a/count-updates b/count-updates deleted file mode 100755 index dacf546..0000000 --- a/count-updates +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -UPDATES=$(checkupdates | wc -l) -echo "$UPDATES" > ~/.cache/update_count diff --git a/space-usage-update b/space-usage-update deleted file mode 100755 index f32f55c..0000000 --- a/space-usage-update +++ /dev/null @@ -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 diff --git a/status-update b/status-update deleted file mode 100755 index a8e866f..0000000 --- a/status-update +++ /dev/null @@ -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"