add "/usr/local/sbin" to path
check if there is a focused window