Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: bsmith6 on April 07, 2010, 01:00:40 PM

Title: Disable Ctrl+Alt+Backspace?
Post by: bsmith6 on April 07, 2010, 01:00:40 PM
Is there any way to disable Ctrl+Alt+Backspace in TinyCore?

(Thanks in advance!)
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: Jason W 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.
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: robc 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'
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: Jason W 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.
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: Jason W 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
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: bsmith6 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)
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: bsmith6 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?
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: curaga 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.
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: bsmith6 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.)
Title: Re: Disable Ctrl+Alt+Backspace?
Post by: aplannan 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.


Title: Re: Disable Ctrl+Alt+Backspace?
Post by: bsmith6 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.