Remap CAPS as BackSpace

setxkbmap -option capslock:backspace
or in config
/usr/share/X11/xkb/symbols/[your layout]
    key <CAPS> { [BackSpace,        BackSpace,         BackSpace,        BackSpace ] };
But the trouble is that sometimes when you press caps, backspace activated twice ...

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

Similar Messages

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

  • [Solved] Better/clean way to remap CAPS- Ctrl (-sleep xmodmap/xinitrc)

    From man xmodmap:
    It is usually run from the user's session startup script to configure the keyboard according to personal tastes
    Although for me for some reason xmodmap does not remap keys when I run it as a regular user - thus I can't autostart it with X. It does work if i sudo xmodmap though.
    So, my question is two-fold, is my outcome as expected and if so how do one use xmodmap with autostart scripts?
    If not, where do I begin to look for why I'm getting the results I'm getting and how would I change it?
    My user belongs to following groups, don't know if that makes any difference.
    lp wheel games network video audio optical storage scanner power users
    This is really weird seeing I can't find anything about this anywhere and this system is quite fresh.
    1. install arch
    2. install xfce
    3. install gnome
    4. install i3
    5. install awesome
    currently I'm using awesome and I start x with startx + .xinitrc but find it weird if that would have anything to do about it.
    Maybe I'm just overlooking something terribly simple. I hope so.
    Update
    My bad...
    My bad.
    User/root had nothing to do with it at all.
    Me thinking so was a result of a mix of bad syntax in .Xmodmap combined with the (seemingly) known issue of not always being able to run xmodmap from xinitrc.
    Currenly i'm using
    { sleep 5; xmodmap ~/.Xmodmap; } &
    in my .xinitrc and it works.
    Although... is this (still?) the arch way?
    I've read somewhere about mucking around in /etc/X11/xorg.conf.d/10-evdev.conf but IMO and for me it's less preferred since when I backup /home this piece of conf won't tag along.
    Anyways, I can live with sleep I guess but... this itch.
    What if some day for some reason X takes more than 5 sec to load and what if this day happens in a distant but not too distant future - where I've forgotting about this.
    What if I then simply reboot and it either
    a) works - I just know I'll get that feeling of why work after reboot?? Sleepless nights.
    b) doesn't work - initiate process of why-is-this-not-working-when-it-worked-before? Retrace last actions... This update? Maybe a bugreport. I'll not just waste my hours but hours from across continents, communites and sentient beings from all around the world.
    I might be overthinking this but it'd be nice to know.
    Last edited by ImbaLocus (2012-05-10 01:13:27)

    mhertz wrote:
    If you just want to remap capslock into ctrl, as per your thread-title, then just use setxkbmap, which don't need any sleep or nothing...
    I use e.g. this line in my .xinitrc to set danish keymap, avoid deadkeys, enable ctrl-alt-backpace termination, and finally to remap caps to ctrl...
    setxkbmap -layout dk -variant nodeadkeys -option terminate:ctrl_alt_bksp -option ctrl:nocaps
    That line is great!
    Allowed me to move se-layout from /etc/.../10-evdev, move option terminate from xorg.conf and finally - as per thread-title - remap caps to ctrl - all in .xinitrc
    Thank you.

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

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

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

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

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

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

Maybe you are looking for

  • Sharing iPhoto Library between Two User Accounts

    Is there any way to fully share a single iPhoto library between two user accounts on one machine (iMac 2.0GHz dual core Intel, 10.5.1, iPhoto '08), without using an external drive (because I don't have one)? By share, I mean each user has full rights

  • Format exception

    java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.      at weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693) <html> <head> <title>Welcome</title> </head> <body> <h1>Welcome</h1> </body> </html>is m

  • How to network install latest firefox with custom home page

    I'm trying to figure out how to do a network install with the latest firefox, but customized to have the default home page setup for the companies intranet web portal. I have several thousand computers that need the installation and pushing via netwo

  • Strange explain plan when query SYS tables

    Oracle Version 9.2.0.7 We have an application that runs the following query on Oracle 9.2.0.7 SELECT T1.TABLE_NAME,T1.COLUMN_NAME, T1.SRID, T2.SDO_UB, T2.SDO_LB, T1.OWNER FROM ALL_SDO_GEOM_METADATA T1, TABLE(T1.DIMINFO) T2 WHERE T1.OWNER=UPPER(:"SYS_

  • Viewing Canvas on TV

    New to FCEHD but learning quickly. I have a Powermac G5 Dual 2.0. I am curious if I am able to use my 13 inch TV instead of another monitor for viewing my canvas. I know this is not ideal, but is it possible? If so, what is the procedure for making t