summaryrefslogtreecommitdiff
path: root/dwm/.dwmSession.sh
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-04-13 18:37:09 +0200
committerJulian T <julian@jtle.dk>2019-04-13 18:37:09 +0200
commit6656c7e3dcc597232512c1def8a8b3e4ee3f2e4a (patch)
treec48fa75ed72c710c8e678b3ebef876a07f9e4402 /dwm/.dwmSession.sh
parentd1cc04a52c66ee197378d7354a1aba6281e8b32c (diff)
Added lots of stuff
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