• You are not logged in.
  • Index
  • Technical
  • Using accents + Remapping backspace in Linux

    Using accents + Remapping backspace in Linux

    • Started by Foo_Fickle
    • 6 Replies:
    • Reputation: 0
    • Registered: 23-Aug-2013
    • Posts: 2

    I recently switched to Colemak on Manjaro Linux and I have two questions.

    1. I need to type in French, and while accents work when they require two keys (AltGr + e = é), the three key combinations (AltGr + d + e = ë) don't work at all. No letter appears with these combinations. How do I fix this?

    2. I want to remap the original QWERTY backspace to caps lock. How is this done?

    Sorry if these are silly questions, but I'm new to this and can't seem to find a solution.

    Offline
    • 0
    • Reputation: 0
    • From: Malmö, Sweden
    • Registered: 10-Sep-2012
    • Posts: 122
    Foo_Fickle said:

    2. I want to remap the original QWERTY backspace to caps lock. How is this done?

    The best way is the following:

    1. # run

     xkbcomp $DISPLAY layout.xkb 

    2. Open layout.xkb with an editor, use search to find the line that starts with "key <BKSP>" and change it from:

       key <BKSP> {         [       BackSpace,       BackSpace ] };

    To:

       key <BKSP> {         [      Caps_Lock,       Caps_Lock  ] };

    3. # run

     xkbcomp layout.xkb $DISPLAY 

    4. Rename it to something like .Xkeymap (that will make it hidden) and put it in $HOME.

    5. Next, place this line in your .xinitrc, so that you don't have to redo step number 3 every time you login:

    test -f ~/.Xkeymap && xkbcomp ~/.Xkeymap $DISPLAY

    __

    As for the dead keys not working, I have no idea. Do they work in the tty?

    Foo_Fickle said:

    Sorry if these are silly questions, but I'm new to this and can't seem to find a solution.

    I don't mean to be rude, but don't go ahead of yourself by installing arch based distros like manjaro. Even guru users often stick to mainstream distros, just for ease of support.

    Last edited by vaskozl (23-Aug-2013 23:40:31)

    Posted without the aid of a rodent.

    Offline
    • 0
    • Reputation: 0
    • Registered: 23-Aug-2013
    • Posts: 2

    Thank you, caps lock works great now!

    As for the dead keys, accents don't work in the tty either (darn)

    vaskozl said:

    I don't mean to be rude, but don't go ahead of yourself by installing arch based distros like manjaro. Even guru users often stick to mainstream distros, just for ease of support.

    Haha. biting off more than I can chew is half the fun of Manjaro :D

    Offline
    • 0
    • Reputation: 0
    • From: Malmö, Sweden
    • Registered: 10-Sep-2012
    • Posts: 122

    Let's check if the dead keys are defined in the first place. In your .Xkeymap, search for: key <AC05>
    It should look something like this:

     key <AC05> {
    1212         type= "FOUR_LEVEL_SEMIALPHABETIC",
    1213         symbols[Group1]= [               d,               D,  dead_diaeresis,      asciitilde ]
    1214     };

    They probably are, but check to be sure.

    __

    Next check if they are sent to X by starting xev from a terminal and press Altgr+d. Do you see it output "dead_diaeresis"?

    ___


    Also, do dead keys work in other layouts, or is this only a colemak problem?

    ___

    In any case, if I were you and needed these characters so much, I would bind them on the 3rd layer (AltGr) directly. It should be pretty easy to do this in the .Xkeymap file.

    Last edited by vaskozl (24-Aug-2013 10:59:31)

    Posted without the aid of a rodent.

    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,361

    Characters like 'äöå' in your language deserve separate mappings for sure. But French for instance uses different accents a lot and I wouldn't clutter up my entire lv3-4 mapping layers just to be able to write áàäâéèëê etc.

    I don't see how this could be a Colemak problem other than if a symbols file or include is malformed.

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
    • Reputation: 0
    • Registered: 28-Dec-2013
    • Posts: 25

    Nice I'm also a manjaro user switching to colemak (cold turkey from dvorak).

    I'd have to say that screwing around with manjaro is less likely to break or be broken then
    most of the (actually all) of the popular distros.
    especially the most popular one which will remain nameless (mostly because things that >>usually<<
    blow up on updates don't deserve a name).

    kidding...kinda..

    Last edited by Dreyeth (28-Dec-2013 02:13:34)

    Sites: Gnolls.org, agenda21.us, pleasuredome.org.uk

    Offline
    • 0
    • Reputation: 0
    • Registered: 28-Dec-2013
    • Posts: 25

    I'm using this method in a /etc/X11/xorg.conf

    Section "InputClass"
        Identifier      "keyboard defaults"
        MatchIsKeyboard "on"
        Option          "XKbOptions" "caps:backspace, shift:both_capslock"
        Option          "XKbOptions" "terminate:ctrl_alt_bksp"
    EndSection
    
    Section "ServerLayout"
            Identifier "ServerLayout0"
            Option     "DPMS" "true"
            Option     "BlankTime"     "0"
            Option     "StandbyTime"   "0"
            Option     "SuspendTime"   "0"
            Option     "OffTime"       "0"
    EndSection

    Unless I misunderstood you.
    This maps Backspace to capslock and capslock to shift + shift.
    Freeing you to do somthing else with the backspace key since its no longer needed.
    Also no problem with the capslock as backspace does not repeat issue using this method.

    Last edited by Dreyeth (28-Dec-2013 03:24:52)

    Sites: Gnolls.org, agenda21.us, pleasuredome.org.uk

    Offline
    • 0
      • Index
      • Technical
      • Using accents + Remapping backspace in Linux