So, somebody needed to log in remotely to my laptop,
while true; do if [ `who | wc -l` -gt 2 ]; \ then echo -en "\007"; echo USER; fi; sleep 0.1; done
I get an alert whenever he is logged in. Bam!!
(I know, there’s an app for that -or twenty-, but if it can be scripted the app is useless)