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.

Similar Messages

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

  • Caps lock not proper work in key bord

     sir ,
           caps lock not proper work in key bord  .

    Hello @bikaner121,
    Welcome to the HP 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 understand that the Cap Locks is not working properly on your keyboard. I would be happy to assist you, but first I would encourage you to post your product number for your computer. I am linking an HP Support document below that will show you how to find your product number. As well, if you could indicate which operating system you are using. And whether your operating system is 32-bit or 64-bit as with this and the product number I can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the requested information and I would be happy to provide you with assistance. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

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

  • 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

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

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

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

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

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

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

  • T510: Which Lenovo app puts caps lock symbol on screen?

    The caps lock symbol that appears on the sceen when you turn on/off the caps lock key is cute, but it has a tendancy to hang around all the time, even when the caps lock is turned off.  Is there a way of turning this feature off?
    Solved!
    Go to Solution.

    There's an option for that.
    Right click the desktop > Screen Resolution > Advanced Settings > On-Screen Display tab.
    I think the default may have been changed somewhere along the way, so a hotkey package update might also do the trick.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

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

  • SOLVED: Annoying icon of num/scroll/caps lock still on screen

    Hello everybody!
    I can't get rid of the Lenovo icon of num/scroll/caps lock whic appears when you press one of these keys. The problem shows up when I join to my other bigger monitor so the screen resolution gets bigger and the icon gets stucked in the bottom-right corner where was originally the end of previous smaller resolution (as you can see here on the screenshot):
    I'm desperate because I've already tried most of the tips which I could find on google. Like modifying the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Widcomm\BTConfig\General\KeyIndication, disabling BTTray.exe etc.
    I have Lenovo Ideapad B560. I would rly appreciate any suggestions. Thank you!
    Edit: Problem solved. It wasn't any Lenovo utility but Genius Keyboard. So I have just unistalled the ioCenter software and icon finally disappeared.

    In order to help you further, could you please provide us with more information about your computer? Please post the specific model number or the (PN - Part Number) from the white tag on your computer. This will help us locate drivers and identify correct parts for your specific model.
    Make sure you've got the latest HP system BIOS installed.

Maybe you are looking for