I use xeyes to see if a program is running as x