summaryrefslogtreecommitdiff
path: root/dwm/Scripts/dwmsession
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2023-09-22 22:16:55 +0200
committerJulian T <julian@jtle.dk>2023-09-23 12:17:43 +0200
commit0e9840e0b734217ff5e5621a1e27553ebabc43fb (patch)
treeebf42aae8bbde018f75cc7186b6913ae0f82de15 /dwm/Scripts/dwmsession
parent85080ac87cc5bc535308147f973e4e73a77c2a4e (diff)
Dwm and other window managers
Diffstat (limited to 'dwm/Scripts/dwmsession')
-rwxr-xr-xdwm/Scripts/dwmsession8
1 files changed, 5 insertions, 3 deletions
diff --git a/dwm/Scripts/dwmsession b/dwm/Scripts/dwmsession
index e447915..18eb584 100755
--- a/dwm/Scripts/dwmsession
+++ b/dwm/Scripts/dwmsession
@@ -1,17 +1,19 @@
#!/usr/bin/env bash
PIDFILE=/var/run/user/$UID/dwm.pid
-kill $(<$PIDFILE)
if [ "$1" = "-e" ]; then
+ echo Killing $(<$PIDFILE)
+ kill $(<$PIDFILE)
+ killall xinit
exit
fi
echo $$ > $PIDFILE
-$HOME/Software/slstatus/slstatus &
+~/resc/slstatus/slstatus &
while true; do
- $HOME/Software/dwm/dwm >> /tmp/dwmsession.log
+ $HOME/resc/dwm/dwm >> /tmp/dwmsession.log
sleep 1
done