X screen lockers are fine, but I sometimes have stuff open on other TTYs that I want to lock as well. For this reason I would like to use vlock -a
to lock all TTYs at the same time. However, I am typically in an X session when I want to run this command.
vlock
cannot be run from within X because it complains that the current terminal is not a virtual console. I tried to make some solution with chvt
but I don't know how to run the command in that console afterwards.
How can I lock all TTYs without exiting X (preferably using vlock
, but I'm open to other suggestions)?