From 4486784f8003e3b73bb228443a359a32dc8f0e43 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 13 Jan 2020 12:51:55 +0100 Subject: i3 and zsh cleanup, and passmenu smaller mod --- i3/Scripts/mic.sh | 19 ------------------- i3/Scripts/net.sh | 19 ------------------- i3/Scripts/ram.sh | 19 ------------------- i3/Scripts/runStat.sh | 6 ------ i3/Scripts/status.sh | 20 -------------------- 5 files changed, 83 deletions(-) delete mode 100644 i3/Scripts/mic.sh delete mode 100644 i3/Scripts/net.sh delete mode 100644 i3/Scripts/ram.sh delete mode 100644 i3/Scripts/runStat.sh delete mode 100644 i3/Scripts/status.sh (limited to 'i3') diff --git a/i3/Scripts/mic.sh b/i3/Scripts/mic.sh deleted file mode 100644 index 78afaa8..0000000 --- a/i3/Scripts/mic.sh +++ /dev/null @@ -1,19 +0,0 @@ -PIDFILE=/tmp/statMic.pid -STATUSFILE=/tmp/dsbAMic - -kill `cat $PIDFILE` -if [ $? -eq 0 ]; then - echo "Shutting down" - rm $STATUSFILE - exit -fi - -echo $$ > $PIDFILE - -while true; do - - MIC=$(amixer get Capture | grep "Front Left:" | sed 's/.*\[\(.*\)\].*/\1/') - - echo "$MIC " > $STATUSFILE - sleep 1 -done diff --git a/i3/Scripts/net.sh b/i3/Scripts/net.sh deleted file mode 100644 index d443091..0000000 --- a/i3/Scripts/net.sh +++ /dev/null @@ -1,19 +0,0 @@ -PIDFILE=/tmp/statNet.pid -STATUSFILE=/tmp/dsbANet - -kill `cat $PIDFILE` -if [ $? -eq 0 ]; then - echo "Shutting down" - rm $STATUSFILE - exit -fi - -echo $$ > $PIDFILE - -while true; do - - IP=$( ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | grep -v "0.1" | tr "\n" " ") - - echo "$IP " > $STATUSFILE - sleep 10 -done diff --git a/i3/Scripts/ram.sh b/i3/Scripts/ram.sh deleted file mode 100644 index b0c2442..0000000 --- a/i3/Scripts/ram.sh +++ /dev/null @@ -1,19 +0,0 @@ -PIDFILE=/tmp/statRam.pid -STATUSFILE=/tmp/dsbRfree - -kill `cat $PIDFILE` -if [ $? -eq 0 ]; then - echo "Shutting down" - rm $STATUSFILE - exit -fi - -echo "Starting up" - -echo $$ > $PIDFILE - -while true; do - echo " $(free -h | grep Mem: | awk '{print $3}') " > $STATUSFILE - sleep 2 -done - diff --git a/i3/Scripts/runStat.sh b/i3/Scripts/runStat.sh deleted file mode 100644 index 52b0536..0000000 --- a/i3/Scripts/runStat.sh +++ /dev/null @@ -1,6 +0,0 @@ -elements="ram.sh status.sh mic.sh" - -if [ $1 = "dmenu" ]; then - sh $(echo $elements | tr " " "\n" | dmenu -i -p ":") -fi - diff --git a/i3/Scripts/status.sh b/i3/Scripts/status.sh deleted file mode 100644 index 3d1eba4..0000000 --- a/i3/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