LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lock X screen and lock ctrl/alt keys (https://www.linuxquestions.org/questions/linux-software-2/lock-x-screen-and-lock-ctrl-alt-keys-928316/)

Mr. Alex 02-08-2012 10:03 AM

Lock X screen and lock ctrl/alt keys
 
Hello guys!

I use slock for IceWM but slock doesn't prevent a person from going to VC or hit Ctrl+Alt+Backspace to terminate X. Is there any program for locking up X screen which also locks up "Ctrl" and "Alt" keys so you can't go to VC?

rhbegin 02-09-2012 02:55 PM

I would think it might be a keyboard mapping, I could be wrong but I *think* I have seen something to this effect before.

eSelix 02-09-2012 03:19 PM

You can control Xserver behavior by /etc/X11/xorg.conf file, you need to add options:
Code:

Section "ServerFlags"
  Option "DontVTSwitch" "True"
  Option "DontZap" "True"
EndSection

And probably add "Screeen" and "Device" sections if you have no xorg.conf already.

Mr. Alex 02-10-2012 02:07 AM

eSelix, these options disable those keys permanently, right? I need to disable them only when slock is running.
rhbegin, I use setxkbmap to set Ctrl+Alt+Backspace.

rhbegin 02-10-2012 08:03 AM

Quote:

Originally Posted by Mr. Alex (Post 4598751)
eSelix, these options disable those keys permanently, right? I need to disable them only when slock is running.
rhbegin, I use setxkbmap to set Ctrl+Alt+Backspace.

Thanks for sharing this info!

LinuxQuestions is awesome!


All times are GMT -5. The time now is 08:04 AM.