[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!

Similar Messages

  • [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)

  • 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

  • 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.

  • 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.

  • Laptop DV7-6b51ea - Unable to Start -Caps Lock lights and F12 key on Keyboard blinking

    I bought this Laptop Laptop DV7-6b51ea around 9 month ago - and every time I press start key its Unable to Start - and the Caps Lock lights and F12 key on Keyboard blinking. so I have to restart couple of time befor I could see anything on screen.
    I searched in forums and got different reviews some said its memory problem some said its serious motherboard and graphics issue.. please Help !!!
    please advice its a brand new Buy from HP UK store

    Hi,
    Try a Hard Reset as follows.
    Shut down the notebook, unplug the AC Adapter and then remove the battery.  Hold  down the Power button for 30 seconds.  Re-insert the battery, plug in the AC Adapter and see if the notebook will start.
    If the above fails to help, as your notebook is still under warranty, contact HP and arrange to have it repaired - you can check your warranty status Here.
     If you live in the UK, contact HP starting Here.
    If you are in another part of the world, start Here.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • LEDs on caps lock, sound and wireless keys are not blinking any more

    I have Pavilion g6 2103 tu notebook with windows 8 OS. The LED s on the caps lock , wireless and sound keys are not blinking for few days. can any one have the solution please?? thanks

    Hi @rajiv29
    Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I saw your post regarding the LEDs not blinking on your Pavilion. Is there something else wrong with your Pavilion or just that those lights do not come on?
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • 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?

  • 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?

  • Apple AL Bluetooth Keyboard - Tab, Caps Lock, Function and Control keys just stopped working

    Hi All -
    All of a sudden I get on my baby, 27" iMac OSX 10.6 and the some keys on the bluetooth keyboard do not work. Specifially the Tab, Caps Lock, Function and Control keys. I'm fine with the caps lock gone (why is it there?) but the others are useful.
    I've searched all over for a solution but I haven't found one. Tried to upgrade the firmware which is fine, reset the PRAM done, checked the speech per apple support nadda.
    Please help.
    Thanks
    -M

    Hi
    Go to System preferances > Universal Access > Mouse or Mousie and trackpad > and turn your Mouse keys off.
    Then disconnect and reconnect your keyboard.
    Note that you don't open your mouse under hardware in System Preferances, this is for a whole different group of settings
    Hope This helps

  • [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

  • 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 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.

  • [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

  • 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.

Maybe you are looking for

  • How to hide subfolders in Outlook view in iPhone

    Need to hide all subfolders tht comes over from Outlook into my iPhone, takes forever to scroll down when all is showing. Is there a way?

  • Created mailbox for new user in Exchange 2010, user not visible in AD.

    Hi everyone! This morning I created a mailbox for a new user on my Exchange 2010 box. Everything works fantastically but I am unable to view the new user in AD except by searching.  If I run a search the results say the user exists in my Users contai

  • Soft proofing in LR 4

    I purchsed and downloaded LR 4 online. In the Develop Modue when I want to soft-proof. I press 'S' to get the soft proof menu but do not have the soft-proof box under the image that I see in  ALL the examples when going through tutorials. I tried clo

  • How to Parse CLOB varialbe in Coldfusion 9

    Hi, I am trying to parse CLOB variable in Coldfusion 9. Can you please help. Below is the peice of code I wrote but getting exception( Encountered "(. Incorrect Select Statement, Expecting a 'FROM', but encountered '(' instead, A select statement sho

  • How to install add-ons for Pemiere Elements 13

    How to install add-ons to Premiere 13. I bought it together with Photoshop Elements in electronic version from Adobe.com page. But I dont have link to 2nd DVD with Premiere Add-ons. How to install that files ?