#!/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 }