summaryrefslogtreecommitdiff
path: root/dwm/.dwmSession.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dwm/.dwmSession.sh')
-rwxr-xr-xdwm/.dwmSession.sh15
1 files changed, 8 insertions, 7 deletions
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