|
Ray2047
|
 |
« on: January 07, 2012, 10:43:42 AM » |
|
I have found multiple sites that suggest caps lock can be disabled by xmodmap -e "remove lock = Caps_Lock" but that doesn't work for me. Reassigning the key to Ctrl would work fine for me also. Any suggestions? Using KDE. Thanks in advance.
|
|
|
|
|
Logged
|
|
|
|
AS
Global Moderator
Hero Member
   
Offline
Posts: 4105
Have a nice ... night!
|
 |
« Reply #1 on: January 07, 2012, 03:49:39 PM » |
|
if it can be of some help, xmodmap manpage report: 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
This example can be run again to swap the keys back to their previous assignments.
not tested here.  AS
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #2 on: January 07, 2012, 04:20:13 PM » |
|
Both "add" and "remove" are coming up Command not found. Was I misunderstanding. Was that to be added to a file? Xmodmap file? [roj@localhost ~]$ remove Lock = Caps_Lock bash: remove: command not found [roj@localhost ~]$ remove Control = Control_L bash: remove: command not found [roj@localhost ~]$ keysym Control_L = Caps_Lock bash: keysym: command not found [roj@localhost ~]$ keysym Caps_Lock = Control_L bash: keysym: command not found [roj@localhost ~]$ add Lock = Caps_Lock bash: add: command not found [roj@localhost ~]$ add Control = Control_L bash: add: command not found [roj@localhost ~]$
Same result as root. As I appreciate the effort but you seem to have run into the same problem when I searched. The solutions don't seem to work on PCLOS P.S. Dang new keyboard. I have accidentally activated caps lock four times while trying to write this.
|
|
|
|
|
Logged
|
|
|
|
AS
Global Moderator
Hero Member
   
Offline
Posts: 4105
Have a nice ... night!
|
 |
« Reply #3 on: January 07, 2012, 04:31:48 PM » |
|
sorry, that was a manpage, not a shell script  that commands as reported from manpage probably should be added to /etc/X11/Xmodmap .... or some other config file ... you may want to test something like that, from a terminal: xmodmap -e "remove Control = Caps_Lock" xmodmap -e "remove Lock = Control_L" xmodmap -e "keysym Caps_Lock = Control_L" xmodmap -e "keysym Control_L = Caps_Lock" xmodmap -e "add Lock = Caps_Lock" xmodmap -e "add Control = Control_L"
on my system it has successfully reassigned the Caps_Lock to Control_L key, but apparently doesn't reassign the Control_L key to Caps_Lock .... to some extent it should work ...
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #4 on: January 07, 2012, 05:53:49 PM » |
|
on my system it has successfully reassigned the Caps_Lock to Control_L key, but apparently doesn't reassign the Control_L key to Caps_Lock .... to some extent it should work ... No, for me it just screws up the keyboard. Both Caps Lock key and Control-L become Caps lock. Really all I want to do is disable caps lock. Making it a Ctrl key was just an acceptable alternative. I guess next step is to make a copy of /etc/X11/Xmodmap and see if I can make a change in it.
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #5 on: January 07, 2012, 06:06:12 PM » |
|
Will this work? Add in /etc/X11/Xmodmap clear Lock ...
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #6 on: January 07, 2012, 06:21:14 PM » |
|
Will this work? Add in /etc/X11/Xmodmap clear Lock ...
No, doesn't work. neither does remove lock = Caps_Lock or remove Lock = Caps_Loc add Control = Caps_Loc
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #7 on: January 07, 2012, 06:22:44 PM » |
|
Same result here...  All tips goes on this, but nothing work in PCLinuxOS 
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #8 on: January 07, 2012, 06:24:58 PM » |
|
Same result here...  All tips goes on this, but nothing work in PCLinuxOS  Then it must be something Tex did.{LOL}
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #9 on: January 07, 2012, 06:33:13 PM » |
|
Here comes the trick, Try this in a terminal xmodmap -pke > Xmodmap-my then open it this kwrite under /home/<you>/Xmodmap-my search for keycode 66 = Caps_Lock NoSymbol Caps_Lockremove only Caps_Lock NoSymbol Caps_Lockshould look keycode 66 = Save it, and try in terminal xmodmap Xmodmap-my Here works, and by you?
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #10 on: January 07, 2012, 06:51:40 PM » |
|
Bingo! Yes, Leiche that worked. Thank you very much. Here comes the trick, Try this in a terminal...
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #11 on: January 07, 2012, 06:54:06 PM » |
|
Good to hear, that it work...
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #12 on: January 08, 2012, 04:52:40 AM » |
|
to get it work by start up your session, add xmodmap Xmodmap-my & it in a script on your autostart folder. LXDE users can have it simpler, open lxautostart from lxdecc, or start>More Applications>Configuration>... Click on Advanced button, OK button, and paste the follow command in the entry line. xmodmap Xmodmap-my & Click on Ok, log out/in that's all 
|
|
|
|
|
Logged
|
|
|
|
|
Ray2047
|
 |
« Reply #13 on: January 08, 2012, 09:03:28 AM » |
|
to get it work by start up your session, add xmodmap Xmodmap-my & it in a script on your autostart folder. I may not understand correctly because it doesn't seem to work for me. I pasted xmodmap Xmodmap-my & into a text editor and saved it as CapsLock_Disable.sh. Then I made it executable and added it to Auto start Up in KCC
|
|
|
|
|
Logged
|
|
|
|
|
Leiche
|
 |
« Reply #14 on: January 08, 2012, 09:11:38 AM » |
|
Code:
xmodmap Xmodmap-my &
into a text editor and saved it as CapsLock_Disable.sh. Then I made it executable and added it to Auto start Up in KCC this is, what i mean with to get it work by start up your session, add Code:
xmodmap Xmodmap-my &
it in a script on your autostart folder. 
|
|
|
|
|
Logged
|
|
|
|
|