From 0e774422009fc812a9969d1825497e50101c9d42 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 29 May 2020 11:17:27 +0200 Subject: Removed dwm, see legacy_dwm branch --- dwm/Scripts/status.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 dwm/Scripts/status.sh (limited to 'dwm/Scripts/status.sh') diff --git a/dwm/Scripts/status.sh b/dwm/Scripts/status.sh deleted file mode 100644 index 3d1eba4..0000000 --- a/dwm/Scripts/status.sh +++ /dev/null @@ -1,20 +0,0 @@ -PIDFILE=/tmp/stat.pid -STATUSFILE=/tmp/dsbMain - -kill `cat $PIDFILE` -if [ $? -eq 0 ]; then - echo "Shutting down" - rm $STATUSFILE - exit -fi - -echo $$ > $PIDFILE - -while true; do - - BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' ) - TIME=$(/bin/date +"%H:%M") - - echo "$IP $TIME $BATT%" > $STATUSFILE - sleep 10 -done -- cgit v1.2.3