summary refs log tree commit diff stats
path: root/ok
blob: 79b166367a157e446a7ea5d24cf5eac80c3fdb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

xephyr(){
	dep chickenbuild
	quietly killall Xephyr
	ok Xephyr -ac -screen 800x600 -br -reset -terminate 2>/dev/null :1 &
	sleep 1
	xterm -display :1 &
	xterm -display :1 -geometry +100+100 &
	ok env DISPLAY=:1 ./acdwm
}

chickenbuild(){
	ok chicken-install -n
}

clean(){
	ignore=.gitignore
	test -f "$ignore" || return 1
	while read -r glob
	do find . -iname "$glob" |
			while read -r file
			do ok rm "$file"
			done
	done < "$ignore"
}

kill(){
	while :
	do ok - killall Xephyr || break
	done
}