From 6656c7e3dcc597232512c1def8a8b3e4ee3f2e4a Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 13 Apr 2019 18:37:09 +0200 Subject: Added lots of stuff --- dwm/.dwmSession.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'dwm/.dwmSession.sh') diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh index 3274e7a..fdb0fad 100755 --- a/dwm/.dwmSession.sh +++ b/dwm/.dwmSession.sh @@ -9,12 +9,13 @@ fi echo $$ > $PIDFILE -while true; do - - BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' ) - TIME=$(/bin/date +"%H:%M") - IP=$(ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | tr "\n" " ") +for file in /home/julian/Scripts/enMenuScripts/* +do + sh $file & +done - xsetroot -name "$IP $TIME $BATT%" - sleep 10 +while true; do + xsetroot -name "$(cat /tmp/dsb* | tr -d '\n')" + sleep 1 + inotifywait -q -e modify /tmp/dsb* done -- cgit v1.2.3