summaryrefslogtreecommitdiff
path: root/dwm/.dwmSession.sh
blob: fdb0faddfda9b29208e81421374b58aa8aebc913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
PIDFILE=/home/julian/.dwmSession.pid

kill `cat $PIDFILE`

if [ "$1" = "-e" ]; then
	exit
fi

echo $$ > $PIDFILE

for file in /home/julian/Scripts/enMenuScripts/*
do
	sh $file &
done

while true; do
	xsetroot -name "$(cat /tmp/dsb* | tr -d '\n')"
	sleep 1
	inotifywait -q -e modify /tmp/dsb*
done