Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: bsmith6 on April 07, 2010, 01:00:40 PM
-
Is there any way to disable Ctrl+Alt+Backspace in TinyCore?
(Thanks in advance!)
-
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.
-
in the xtrlock script:
xmodmap -e 'remove control = Control_L' -e 'remove control = Control_R'
-
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.
-
Actually, this has been answered a while back but I overlooked it:
http://forum.tinycorelinux.net/index.php?topic=2356.0
-
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)
-
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?
-
Refer to the fine manual:
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.
-
Refer to the fine manual:
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.)
-
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.
-
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.