diff options
author | Julian T <julian@jtle.dk> | 2020-05-29 11:17:27 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-05-29 11:17:27 +0200 |
commit | 0e774422009fc812a9969d1825497e50101c9d42 (patch) | |
tree | c0e967d5d453a98663cfb6879aacd8195b2961e8 /dwm | |
parent | 94138a90320d5acabf9ef55e3eddada99368eb32 (diff) |
Removed dwm, see legacy_dwm branch
Diffstat (limited to 'dwm')
-rw-r--r-- | dwm/#pre_stow.sh# | 4 | ||||
-rwxr-xr-x | dwm/.dwmSession.sh | 21 | ||||
-rw-r--r-- | dwm/.xinitrc | 10 | ||||
-rw-r--r-- | dwm/Scripts/mic.sh | 19 | ||||
-rw-r--r-- | dwm/Scripts/net.sh | 19 | ||||
-rw-r--r-- | dwm/Scripts/ram.sh | 19 | ||||
-rw-r--r-- | dwm/Scripts/runStat.sh | 6 | ||||
-rw-r--r-- | dwm/Scripts/status.sh | 20 |
8 files changed, 0 insertions, 118 deletions
diff --git a/dwm/#pre_stow.sh# b/dwm/#pre_stow.sh# deleted file mode 100644 index baacda6..0000000 --- a/dwm/#pre_stow.sh# +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# Create symlinked status dir -mkdir -p ~/Scripts/enMenuScripts diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh deleted file mode 100755 index b4d33c3..0000000 --- a/dwm/.dwmSession.sh +++ /dev/null @@ -1,21 +0,0 @@ -!/bin/bash -PIDFILE=/home/julian/.dwmSession.pid - -kill `cat $PIDFILE` - -if [ "$1" = "-e" ]; then - exit -fi - -echo $$ > $PIDFILE - -for file in /home/julian/Scripts/enMenuScripts/* -do - sh $file & -done - -while true; do - xsetroot -name "$(cat /tmp/dsb* | tr -d '\n')" - sleep 1 - inotifywait -q -e modify /tmp/dsb* -done diff --git a/dwm/.xinitrc b/dwm/.xinitrc deleted file mode 100644 index c38d8e3..0000000 --- a/dwm/.xinitrc +++ /dev/null @@ -1,10 +0,0 @@ - -export LOPTS="composer" - -source ~/Scripts/xlaunchrc - -while true; do - dwm -done & - -exec sh /home/julian/.dwmSession.sh diff --git a/dwm/Scripts/mic.sh b/dwm/Scripts/mic.sh deleted file mode 100644 index 78afaa8..0000000 --- a/dwm/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/dwm/Scripts/net.sh b/dwm/Scripts/net.sh deleted file mode 100644 index d443091..0000000 --- a/dwm/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/dwm/Scripts/ram.sh b/dwm/Scripts/ram.sh deleted file mode 100644 index b0c2442..0000000 --- a/dwm/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/dwm/Scripts/runStat.sh b/dwm/Scripts/runStat.sh deleted file mode 100644 index 52b0536..0000000 --- a/dwm/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/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 |