[SOLVED] KDE: Remap Caps Lock

Hi,
I've mapped the Caps Lock key as keyboard layout switch; it works, but somehow I can't disable the Caps Lock function (I've got English in all caps, unless I lower them with Shift-Caps Lock). I suppose I should check some option in Keyboard Settings->Advanced->Caps Lock Key Behavior, but I can't find the right one.
Last edited by Llama (2012-10-21 15:54:32)

WonderWoofy wrote:So what is it you would like to achieve?  Is it the functionality that this checkbox apparently offers?  Or do you simply want to remap your caps lock key to something else like your title says?
I'd like to achieve what I once had, even with KDE : CapsLock toggles the keyboard layout, Shift-CapsLock works as a substitute for Caps Lock.
The first part I've got, but not the second one.
Last edited by Llama (2012-10-21 04:08:30)

Similar Messages

  • [SOLVED] CR48 - remap caps lock key to super key

    I just got Arch installed on my CR48. The CR48 doesn't have a super key so I was trying to remap the "Caps Lock" key. I've discovered in this post that the "Caps Lock" key is actually "xk_superl". However, the following commands don't work.
    xmodmap -e "keysym xk_superl = Super_L Super_R
    xmodmap -e "keysym Mod4 = Super_L Super_R
    Both of these commands result in an error:
    bad keysym target key symbol 'xk_superl'
    bad keysym target key symbol 'Mod4'
    Am I missing something?
    Last edited by jrom (2013-04-15 17:49:37)

    vordoo wrote:
    See Keyboard switches for XKB setxkbmap: https://gist.github.com/Spoygg/3122226
    This in .xinitrc will make the Caps_Lock_key just another Ctrl_key:
    setxkbmap -option ctrl:nocaps
    If you need the exact keycode use, xev to get it.
    Ah ok. I was able to determine the key code of my "caps lock" key using xev. Turns out it was 133. I am now able to use that as the super key. Thanks!

  • Shift-Caps Lock-Tab not working with remapped Caps Lock

    I've remapped my Caps Lock key to Ctrl using the Preferences > Keyboard > Modifier keys dialog and in the following question when I say CTRL i mean the Caps Lock key remapped to Ctrl and Ctrl is the normal left Ctrl key.
    I'm using OS X 10.9.4 and I've just bought 2 new external corded Apple keyboards and both of them are having trouble with the key combination Left Shift + CTRL + Tab. For applications where that combination should go to the previous TAB it does not work. If I use the right Shift instead it works fine, if I use the left Ctrl key instead of the remapped Caps Lock key it works great too.
    The internal keyboard on the laptop works fine with Left Shift - Caps Lock - Tab.
    The computers are a Macbook Air 11" Mid 2011 and a Macbook Pro 15" Mid 2010.

    Hey,
    Sorry to hear about the keyboard problem.
    In a post a while back had this to say.  He makes a suggestion that the keyboard might need to be replaced, then the person with the question tried something else.  You might take a look and see if there's something there that will help.
    Thanks for coming to the forum.
    Hope I helped,
    GeorgeFN
    I work on behalf of HP.

  • Remapping caps lock to a sticky fn key?

    The new layout of the f-keys along the top of apple keyboards is annoying at best, particularly for those of us who use the f-keys as function keys (because they do marvelous things in certain applications, like Eclipse).
    Most of the time, I'd like the f-keys to be f-keys (i.e. F12 is F12, NOT increase volume), but I do use the special hotkeys (iTunes control, volume control). The trouble is that my hand is not large enough to change the volume with one hand (I could with my old powerbook, because volume control was on the left, not on the right!).
    The best solution, for me, would be to remap the caps lock key to be a sticky fn key (which toggles the F-keys between F-key and hotkey functionality), that way, when I want to change the volume, I can hit caps lock, and then hit the volume keys until things are at the right level, then toggle back with caps lock again.
    This would make the caps lock into a toggle for the f-key functionality.
    I know I found a hint a long time ago about remapping caps lock to be a sticky language key...which I used to use...but I think that's specific to the language system.
    I've also check out DoubleCommand (doesn't do this), and uControl / fKeys (but neither are supported anymore and require legacy systems).
    Anyone out there have a solution?
    -Zach

    Just to be clear, part of the problem is that I do use the hotkey functionality SOMETIMES, but that requires the combination of the fn key (in the lower left-hand spot on the MacBook) + the desired f-key. My hand doesn't reach from the lower left-hand corner of the keyboard to (very nearly) the upper-right hand.
    -Zach

  • Remap caps lock to Ctrl in console (tty)

    I tried to use loadkeys to remap caps lock to Ctrl and Ctrl to caps lock but it doesn't work, because i think use caps lock is easier than press Ctrl when i move around keyboard. so i wonder:
    1. how can i remap caps lock to Ctrl and Ctrl to caps lock in bash (in tty)
    2. how can i remap caps lock to ESC in vim (in tty)
    I tried to modify /usr/local/share/kbd/keymaps/personal.map
    keycode 58 = 29
    keycode 29 = 58
    58 is caps lock keycode
    29 is control keycode.
    Thanks in advanced!

    yep, tks a lot, english is not my native language.
    write a super short script that simply changes keymap before calling vim.
    you mean i need to reload keymap when i call vim. if that i need to modify my .vimrc to call a script to reload the keymap. humm, that's problem, how can i call a script in .vimrc?  i am new to linux so can you show me howto?

  • [Solved] xmodmap bug? Remapping Caps Lock doesn't work

    When I program I like to swap these keys:
    Esc <-> Tab
    Ctrl <-> Caps Lock
    In ~/.xmodmap, I have specified these re-mappings:
    keycode 66 = Control_L
    keycode 37 = Caps_Lock
    keycode 23 = Escape
    keycode 9 = Tab
    The Escape and Tab keys swaps, no problem, but instead of Caps_Lock and Control_L swapping, both those keys becomes Caps_Lock.
    Whatever I try to do, the Control keys doesn't get assigned to Caps_Lock(keycode 66). If I leave the keycode 66 = , the key is un-assigned, but when I assign Control_L or Control_R, it just doesn't work. But, if I assign some other key, for example, keycode 66 = Tab, it gets assigned, no problem.
    Its like xmodmap just doesn't want Caps Lock and Control keys to be swapped. Really frustrating. Any help/pointers would be really helpful.
    Last edited by Gits (2012-04-12 07:09:37)

    Solved: http://unix.stackexchange.com/questions … oesnt-work

  • [SOLVED] Need Help Remapping Caps Lock to Control

    So I've spent the better part of an hour trying to remap my caps lock key to control. I've added a udev policy "10-keymap.fdi" in /etc/hal/fdi/policy.
    <?xml version="1.0" encoding="ISO 8859-1"?>
    <deviceinfo version="0.2">
    <device>
    <match key="info.capabilities" contains="input.keys">
    <merge key="input.xkb.options" type="string">ctrl:nocaps</merge>
    </match>
    </device>
    </deviceinfo>
    I restarted hal and it seems to acknowledge my new rule. lshal | grep xkb yields:
    brian@brian-laptop:~$ lshal | grep xkb
    input.xkb.layout = 'us' (string)
    input.xkb.model = 'evdev' (string)
    input.xkb.options = 'ctrl:nocaps' (string)
    input.xkb.rules = 'base' (string)
    input.xkb.variant = '' (string)
    input.xkb.layout = 'us' (string)
    input.xkb.model = 'evdev' (string)
    input.xkb.options = 'ctrl:nocaps' (string)
    input.xkb.rules = 'base' (string)
    input.xkb.variant = '' (string)
    input.xkb.layout = 'us' (string)
    input.xkb.model = 'evdev' (string)
    input.xkb.options = 'ctrl:nocaps' (string)
    input.xkb.rules = 'base' (string)
    input.xkb.variant = '' (string)
    input.xkb.layout = 'us' (string)
    input.xkb.model = 'evdev' (string)
    input.xkb.options = 'ctrl:nocaps' (string)
    input.xkb.rules = 'base' (string)
    input.xkb.variant = '' (string)
    But when I hit the caps lock key, it still gives me caps lock, not control. xev unsurprisingly tells me the keysym I'm pressing is indeed caps lock. I know I could do this by using xmodmap but I'd like to keep my .xinitrc clean/would just like to know why this isn't working.
    Last edited by iamsmrt (2010-08-02 13:53:59)

    Anntoin wrote:
    Its worth trying adding this to your xorg.conf:
    Section "InputClass"
    Identifier "evdev keyboard catchall"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "XkbLayout" "gb"
    Option "XkbOptions" "ctrl:nocaps"
    EndSection
    I was having this problem for a while and this worked for me. Your mileage may vary.
    This worked, thanks!
    nixpunk wrote:
    iamsmrt wrote:I know I could do this by using xmodmap but I'd like to keep my .xinitrc clean/would just like to know why this isn't working.
    I use xmodmap and it's quite easy to setup.  Just curious, but why exactly do you want to keep your ".xinitrc clean"?
    My OCD more than anything

  • [KDE 4.9] Using a shell script as a KDE shortcut - Caps Lock Notify

    Hi, all
    I was trying to create a small script to send a notification if the Caps Lock is active or not. The script works correctly in the terminal, but when I use the script as a shortcut in KDE it does not work ... I simply trigger the shortcut with the "Caps Lock".
    Below is the script that I created:
    #!/bin/bash
    # Send a notification of CAPS LOCK on/off
    # Icon used in the notification
    icon="/usr/share/icons/NITRUX/devices/48/keyboard.svg"
    # verify if the CAPS is on/off
    value=$(xset q | grep "LED mask" | sed -r "s/.*LED mask:\s+[0-9a-fA-F]+([0-9a-fA-F]).*/\1/")
    if [ "$value" == "0" ]; then
    output="Off"
    else
    output="On"
    fi
    # Send notification (use Gnome or KDE)
    # GNOME
    #notify-send -i $icon "Caps Lock $output" -t 1000
    #KDE
    kdialog --icon $icon --passivepopup "Caps Lock $output" --title "Keyboard" 1
    Could someone help me pointing what I'm doing wrong?
    Thanks in advance!
    EDIT: If I do not use the "caps lock" as a trigger, the script works as it should (I tried using "ctrl + alt + L") ...
    Last edited by gustavosg (2012-11-13 00:06:46)

    Pajaro wrote:
    gustavosg wrote:
    Pajaro wrote:try sending the dialog with a delay in background
    Hi! Thanks for replying. I've tried the sleep command, still saying that caps is always on (if it is what you mean).
    What I meant is to do something like:
    $(sleep .5; echo kdialog --icon $icone --passivepopup "Caps Lock $saida" --title "Teclado" 1) &
    When I use it on the script it just printi "Caps" on the notification, as if it was reading just the first word of the "Caps Lock $saida".
    Edited the script to this:
    #!/bin/bash
    # Manda aviso de CAPS LOCK on/off
    # icone pra usar na notificacao
    icone="/usr/share/icons/NITRUX/devices/48/keyboard.svg"
    # verifica se o Caps esta ligado
    valor=$(xset q | grep "LED mask" | sed -r "s/.*LED mask:\s+[0-9a-fA-F]+([0-9a-fA-F]).*/\1/")
    if [ "$valor" == "0" ]; then
    $(sleep .5; echo kdialog --icon $icone --passivepopup "Caps Lock Off" --title "Teclado" 1) &
    else
    $(sleep .5; echo kdialog --icon $icone --passivepopup "Caps Lock On" --title "Teclado" 1) &
    fi
    # Dispara alerta (usar Gnome ou KDE)
    # GNOME
    #notify-send -i $icone "Caps Lock $saida" -t 1000
    #KDE
    #$(sleep .5; echo kdialog --icon $icone --passivepopup "Caps Lock $saida" --title "Teclado" 1) &
    cfr wrote:
    Maybe you could post the script if you are still having trouble?
    Thanks for the info about single key short cuts. I guess it has never occurred to me. (Maybe because on a laptop you can't usually spare a whole key for a single short cut!)
    The script is the one in the OP. I'm using a laptop.
    EDIT:
    Updated OP script to english...
    Last edited by gustavosg (2012-11-13 00:07:38)

  • Can't remap caps lock in system preferences anymore

    I just discovered that when I go into system preferences to set up a new keyboard under Yosemite 10.3, and click on "Modifier Keys..." to remap the modifier keys, the only valid mapping for Caps Lock is now "No Action."   "Control," "option" and "command" are all greyed out.   What gives?   Do I have to buy a $200 happy hacking keyboard now to have Control to the left of 'a'?

    Look at the headphone port to see if there's a small red light inside. Doing this in a darkened room might help. If you see the light, try inserting and removing a headphone jack a few times. Sometimes the port gets stuck on optical. If the headphone jack trick doesn't work, insert a plastic toothpick or maybe one prong of a plastic fork and gently jiggle it around. Don't use too much force, since you don't want to break that off inside.

  • Remaps Caps Lock to Mod4

    Hello all.
    I've been using Arch with xmonad/gnome and then xmonad/xfce for a while. Now xfce is bugging me, and I want to just switch to a lightweight xmobar setup.
    I use caps lock as my mod4 key for xmonad. In the past I've remapped this with the gnome/xfce control panels. Now I see there are a couple approaches to do this in just X, and none of them are working for me.
    xmodmap: I am trying to just run these commands from a terminal after starting x, just to see if I can get them to work.
    xmodmap -e "remove Lock = Caps_Lock"
    doesn't even disable caps lock for me.
    I was able to use setxkbmap to switch Caps lock to escape, but I have no idea how to switch it to mod4. What's the difference between "escape" and "swapescape"?
    Finally, I understand there are some methods that wouldn't even rely on commands in an .xinitrc file, but are systemd based? I would be interested in this if I could put the setup in my dotfiles.
    What are the advantages to each of these techniques? What's the canonical "right" way to switch the keys?

    Just beware that some DEs try to be "helpful" and use their own settings daemons.  What little i have done with DEs i have found the most usual culprits of this to be display managers. In particular, GDM is quite bad aboit tjis, ignoring just about everything in /etc/X11/xorg.conf.d. So if you end up making that setting permanent, just be aware of this.

  • Remapping caps lock key to be a return key

    How do I remap the caps lock key (in OS X 10.4.11, or in general in recent versions of MacOSX) to be a return key? Neither Doublecommand, uControl or ukelele do this. I know how to do this on windows and linux machines, and it really bothers me that it seems to be just about impossible to do on a mac.

    I've just spent an hour looking into this and have concluded it is impossible.
    Feel free to have a look yourself at the resources I've consulted:
    http://developer.apple.com/technotes/tn2002/tn2056.html is a technical note describing how to assign a specific physical key to its corresponding output. I have tried all the key id numbers and mapped them to the output test1 test2 etc. When I use my custom layout ordinary keys behave as they should outputting the string test1 test2 etc. but the modifier keys like caps cease to do anything.
    You can use http://wordherd.com/keyboards/ to create an example standard keyboard layout file.

  • Remap caps lock to escape

    I would like to be able to remap my caps lock key to my escape key. this makes Vim much easier to use.

    anrxc wrote:
    If using setxkbmap you will have to run xmodmap again. I don't want to go into your script but rather to suggest an alternative approach, make X.org work for you. In /etc/hal/fdi/policy/10-keymap.fdi you can setup something like this (only showing relevant lines):
    <merge key="input.x11_options.XkbLayout" type="string">no,us</merge>
    <merge key="input.x11_options.XkbOptions" type="string">grp:shift_toggle,grp_led:scroll</merge>
    What this means? When you press both Shift keys at the same time your keyboard layout is switched. The second setting, grp_led says that your Scroll Lock will indicate which layout is in use. You can remove that one if you don't want it. By pressing both Shift keys your layout will change but your custom xmodmap will not, and it saves you with trouble with custom scripts and will work independant of window manager or desktop environment.
    Here is one more tip for you you can add the option caps:escape to the above Xkb.Options line and your Caps becomes Esc without any Xmodmap modifications. Note that if you still use xorg.conf you can do all of these things there too. Have fun :^)
    Your alternative solution is working great, and probably is a better choice in this situation for the reasons you state. My laptop does not seem to be too happy about using the scroll LED for layout indication, but that's not a big deal.
    I am however still curious as to what the source of my original problem was, seeing as none of the individual components of the bash script caused the mapping to be reset when used on their own.
    Anyway, thanks again for showing me a different and less messy approach

  • Remap Caps Lock as gnu screen escape key

    anyone know how to do this?
    currently ive got Caps Lock remapped to some keycode in /usr/share/X11/XKeysymDB
    i want to use it as the escape key for screen.
    adding it to .screenrc doesnt work.
    i was thinking that a macro or something that can just send C-a to screen when i push caps lock might work...?
    anyone have any thoughts?

    Look into loadkeys from the kbd package. I use it to exchange Escape/Caps_Lock outside of X.

  • Remap Caps Lock to Esc

    Is it possible to remap the Caps Lock key to Esc?
    I don't really use Caps Lock very often, and would much rather have the Esc there.
    Thanks.

    This might do what you need, but it is your call.
    http://www.kodachi.com/software/fKeys/
    Xserve G5   Mac OS X (10.4.8)  

  • Remapping Caps Lock

    The standard layout on an a macbook pro is not quite efficient if one wants to do a lot of programming. I want to change that with some small tweaks. One of those would be: Change Caps Lock to be a key like cmd and ctrl. For example if I want to write '{' I want to press 'Caps + a'.
    Is that possible?
    I've already tried Ukelele, which allows me to remap all other keys and combinations. But with it I did not find out how to create a new key like cmd, ctrl...

    But this would mean that I simply asign 'cmd' to the caps lock key. That's not what I want.
    I want to create a new Layer. At the moment I have the cmd, ctrl and shift layers. I want something new to happen if I press caps-lock + a, for this I have to introduce a new layer. Is this possible?

Maybe you are looking for

  • Active directory copnnection problem

    Hi all, I try to connect to an Active Directory using JNDI but I'm not successfull. I always get the same error saying that my credentials are not valid. It seems that I have to use an UPN to connect, but I don't know how to use it. The usual paramet

  • Content Conversion in File Receiver Adapter

    Hi, I am doing a Content Conversion in File Receiver Adapter. Input to the Adapter is: <ns1:FileResponse_MT xmlns:ns1="http://www.bpmtest.com/bpm">      <OrderID>123</OrderID>      <Quantity>98</Quantity>     <Price>76.23</Price> </ns1:FileResponse_M

  • Adobe Acrobat Professional and Adobe Reader

    I have Adobe Acrobat Professional 7.0 (AP) and Adobe Reader 9 (AR) installed on a WinXP system. Both AP and AR work, but if one is open I cannot start the other: If AP is open and I try to open a pdf file in AR (right click -> open with... -> Acrobat

  • Iterating through List View Items using Group By and Jquery

    In my listview to my document library, I am using grouping. For each group (using month), it lists all the documents pertaining to that particular month. Using JQuery, I need to go through each item and parse them, but I'm having trouble finding a us

  • Double-click on *.rep file opens in DeskI with "File Reservation" why?

    If I double click on myreport.rep it opens the report in DeskI but pops up a Window headed "File Reservation" with the message "myreport.rep is being modified by another user or application. Open as Read-Only, or choose Notify to be alerted when it i