From 5fd95daceb6663f78647358e232a6396ff385ed0 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 6 Nov 2020 19:30:56 +0100 Subject: Added dwm launch things --- dwm/Scripts/dwmsession | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 dwm/Scripts/dwmsession (limited to 'dwm/Scripts/dwmsession') diff --git a/dwm/Scripts/dwmsession b/dwm/Scripts/dwmsession new file mode 100755 index 0000000..5fde91a --- /dev/null +++ b/dwm/Scripts/dwmsession @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +PIDFILE=/var/run/user/$UID/dwm.pid + +kill $(<$PIDFILE) + +if [ "$1" = "-e" ]; then + exit +fi + +echo $$ > $PIDFILE + +slstatus & + +while true; do + dwm >> /tmp/dwmsession.log + sleep 1 +done -- cgit v1.2.3