summaryrefslogtreecommitdiff
path: root/dwm/Scripts/dwmsession
blob: 18eb584e4aabf96217fcd2d62a75895f8e2415f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
PIDFILE=/var/run/user/$UID/dwm.pid


if [ "$1" = "-e" ]; then
    echo Killing $(<$PIDFILE)
    kill $(<$PIDFILE)
    killall xinit
    exit
fi

echo $$ > $PIDFILE

~/resc/slstatus/slstatus &

while true; do
    $HOME/resc/dwm/dwm >> /tmp/dwmsession.log
    sleep 1
done