diff options
Diffstat (limited to 'dwm/Scripts')
-rwxr-xr-x | dwm/Scripts/dwmsession | 17 |
1 files changed, 17 insertions, 0 deletions
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 |