WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Disable Ctrl+Alt+Backspace?  (Read 5050 times)

Offline bsmith6

  • Newbie
  • *
  • Posts: 5
Disable Ctrl+Alt+Backspace?
« on: April 07, 2010, 01:00:40 PM »
Is there any way to disable Ctrl+Alt+Backspace in TinyCore?

(Thanks in advance!)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Disable Ctrl+Alt+Backspace?
« Reply #1 on: April 07, 2010, 01:10:42 PM »
In the xtrlock extension, look at the startup script and it contains the commands to disable ctrl-alt-del and ctrl-alt-backspace.  I am on Windows at the moment and can't look at the commands, but they are there.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Disable Ctrl+Alt+Backspace?
« Reply #2 on: April 07, 2010, 01:24:37 PM »
in the xtrlock script:
Code: [Select]
xmodmap -e 'remove control = Control_L' -e 'remove control = Control_R'
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Disable Ctrl+Alt+Backspace?
« Reply #3 on: April 07, 2010, 01:31:34 PM »
Thanks robc.  It actually disables ctrl, which is not very feasible during a session, but is ok when xtrlock is in use with Xvesa.  If I remember as I don't often use Xorg, Xorg by default is using the "nozap" mode, which makes ctrl-alt-backspace not kill X.

I am not sure if there is a way to disable ctrl-alt-backspace when used as a combo without disabling those individual keys.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Disable Ctrl+Alt+Backspace?
« Reply #4 on: April 07, 2010, 02:00:52 PM »
Actually, this has been answered a while back but I overlooked it:

http://forum.tinycorelinux.net/index.php?topic=2356.0

Offline bsmith6

  • Newbie
  • *
  • Posts: 5
Re: Disable Ctrl+Alt+Backspace?
« Reply #5 on: April 07, 2010, 03:21:32 PM »
Thanks for the reply!  Now that I look at it though, what would be really useful is just swapping the left alt key for another key using xmodmap.  Is there a way to permanently swap two keys using xmodmap in TC? (I have it installed on a PC)

Offline bsmith6

  • Newbie
  • *
  • Posts: 5
Re: Disable Ctrl+Alt+Backspace?
« Reply #6 on: April 08, 2010, 09:25:45 AM »
Thanks for the reply!  Now that I look at it though, what would be really useful is just swapping the left alt key for another key using xmodmap.  Is there a way to permanently swap two keys using xmodmap in TC? (I have it installed on a PC)

Anyone have any ideas?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Disable Ctrl+Alt+Backspace?
« Reply #7 on: April 08, 2010, 10:11:00 AM »
Refer to the fine manual:

Quote
One of the more irritating differences between keyboards is the location of the Control and Shift Lock keys. A common use of xmodmap is to swap these two keys as follows:


!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
If you're changing something else than modifier keys, only the two middle lines should be needed.
The only barriers that can stop you are the ones you create yourself.

Offline bsmith6

  • Newbie
  • *
  • Posts: 5
Re: Disable Ctrl+Alt+Backspace?
« Reply #8 on: April 08, 2010, 11:08:16 AM »
Refer to the fine manual:

Quote
One of the more irritating differences between keyboards is the location of the Control and Shift Lock keys. A common use of xmodmap is to swap these two keys as follows:


!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
If you're changing something else than modifier keys, only the two middle lines should be needed.

I can swap the keys I want using the command line.  I just don't know how to make the change permanent on reboot.  Is there a way to make tinycore run a command at every boot?  (Thanks again for the help and sorry if these seem like no-brain questions.)

Offline aplannan

  • Jr. Member
  • **
  • Posts: 70
Re: Disable Ctrl+Alt+Backspace?
« Reply #9 on: April 08, 2010, 11:13:21 AM »
While not exactly what you are trying to do, maybe this will be helpful:

http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_XWindows

I placed the .speedswapper file in my home directory and added:

xmodmap .speedswapper

to my .xsession. I would think you would just need to modify the .speedswapper file.



Offline bsmith6

  • Newbie
  • *
  • Posts: 5
Re: Disable Ctrl+Alt+Backspace?
« Reply #10 on: April 11, 2010, 10:00:13 PM »
While not exactly what you are trying to do, maybe this will be helpful:

http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_XWindows

I placed the .speedswapper file in my home directory and added:

xmodmap .speedswapper

to my .xsession. I would think you would just need to modify the .speedswapper file.




This works perfectly... thanks for the help.