Hot answers tagged window-manager
Try to add a last line kill %1 In interactive shells at least you can kill the pid of the background job this way. Otherwise look if the process can write a pid file or use killall, if you're sure, there's only one process of this wm
kill -TERM -$$ (kill current process group) should also do it in a race condition-safe manner. This or kill % should be preferred to killing by pid or by name.
Only top voted, non community-wiki answers of a minimum length are eligible