LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-08-2012, 11:03 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,204

Rep: Reputation: Disabled
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?
 
Old 02-09-2012, 03:55 PM   #2
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
I would think it might be a keyboard mapping, I could be wrong but I *think* I have seen something to this effect before.
 
Old 02-09-2012, 04:19 PM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,245

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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.
 
Old 02-10-2012, 03:07 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,204

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-10-2012, 09:03 AM   #5
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Quote:
Originally Posted by Mr. Alex View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable lock session (lock screen) when switch user in KDE 4.x Murz Linux - Desktop 4 12-01-2010 09:28 AM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 12:44 PM
xscreensaver lock screen with Ctrl-Alt-Del kaon Linux - Software 2 07-13-2005 11:50 AM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 09:13 AM
Any shortcut keys to lock screen in KDE ? timberwolf Mandriva 3 12-18-2003 06:02 AM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration