Comment Comment by dromenkoning This way a malicious user with physical access to your machine can easily get around your locked desktop by switching to tty1. It would be better to fork the xinit proces to the background and exit the tty after: echo 'xcompmgr &\nexec cwm' > ~/.xinitrc && xinit & && exit parent dromenkoning 9 years ago