Questions tagged [keyboard-layout]

National keyboard layouts, relocating control keys, etc., generally at the operating system level. See /keyboard-shortcuts for key mappings in applications.

221 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
691 views

Numpad emulation

My new laptop (Dell Inspiron 5578) has no numeric pad. Many laptops without dedicated numpad keys have numpad accessible through Fn, but not this one. When I run xev and try to use traditional Fn ...
5
votes
0answers
365 views

Does xkb support complex key combinations such as mapping s+hjkl to left, down, up, and right?

I'm trying to configure xkb to make it register left, down, up, and right arrow when I hold s (the letter) and press h, j, k, or l (similar to Karabiner on MacOS). This will allow navigation in vim or ...
4
votes
0answers
459 views

Re-map scancode -> keycode of MacBook Pro built-in keyboard

Object I read this Arch wiki article to try to remap scancode & keycode on my Chakra 201710 + MacBook Pro 2015 (no touchbar and USB-C): Remap the built-in keyboard of like this: | ORIGINAL || ...
4
votes
0answers
400 views

How to use setxkbmap from tty?

I'm confused about using setxkbmap. When I use it in my terminal emulator under X, it works: setxkbmap -layout gr -option # switches layout to greek However, if I switch to tty2, execute the command ...
4
votes
0answers
1k views

How to use Dvorak keyboard layout in GRUB2 LUKS passphrase prompt?

I've tried to piece together how to do this from various sources. First approach, based on 1 and 2: $ grep ^HOOKS /etc/mkinitcpio.conf HOOKS="base udev autodetect modconf block lvm2 keyboard keymap ...
4
votes
1answer
221 views

Use two different keyboards with different layouts in FreeBSD in X environment

I have bought a laptop and installed FreeBSD on it. I am now trying to finish this all. The laptop has a Danish keyboard, but I have also a USB typematrix keyboard with bépo (French Dvorak) layout ...
4
votes
0answers
782 views

Missing KeyPress event

I got new thinkpad and it's missing a ContextMenu key and has PrintScreen key where ContextMenu should have been. I remapped it using xmodmap. The problem is, the key is missing KeyPress events, only ...
4
votes
0answers
237 views

Keep keyboard layout upon inserting external keyboard

I have a custom keyboard layout, that I enable using this commands: setxkbmap -verbose us -variant altgr-intl xmodmap -verbose /home/coub/.myxmodmap This works just fine, the thing is, that when I ...
4
votes
0answers
138 views

OS X-like deadkeys behavior on Linux

I'm on Debian (actually Crunchbang), and my notebook has a default US layout keyboard. My native language is Brazilian Portuguese (pt-BR), so I've changed my layout with setxkbmap -layout us -variant ...
4
votes
1answer
2k views

setxkbmap switches between 2 out of 3 layouts

Issuing that command: setxkbmap -layout "us,ua,ru" -variant ",winkeys" -option "grp:shift_caps_toggle,grp_led:scroll" -model pc105 -rules xorg When hitting Caps Lock+Shift I'm switching between ...
3
votes
0answers
28 views

How do I disable a keyboard key in udev? (at driver level)

I would like to disable a keyboard key completely, specifically the XF86Back (keycode: 166) and XF86Forward (keycode: 167) on the Lenovo ThinkPad X220. For the time being, I disable these two by ...
3
votes
0answers
176 views

setxkbmap conflicting with xmodmap

So initially I had the following in my ~/.Xmodmap which mapped CapsLock+HJKL to left/down/up/right like in vim: keycode 66 = Mode_switch keysym h = h H Left keysym j = j J Down keysym k = k K Up ...
3
votes
1answer
474 views

Swapping backslash and backspace keybindings Ubuntu 16.04 LTS

I prefer backspace right above "enter". In windows this can be accomplished with autohotkey. On my desktop a HKKB keyboard has this layout built-in. Following Custom keyboard layouts (Ubuntu) has me ...
3
votes
0answers
132 views

Create own dead_key

I am currently working to create a specific greek keyboard layout adapted to French Swiss Keyboard, I create a keyboard layout to be put to /usr/share/X11/xkb/symbols/( https://github.com/grecromand/...
3
votes
1answer
655 views

Custom keyboard layout without root

What are the steps to setting up a custom keyboard layout in X11 without root access? I know it's possible, based on this answer, but I get Error loading new keyboard description whenever I try using ...
3
votes
0answers
147 views

Is there a linux distribution that fully mimics mac keyboard layout?

I know that there are Linux distributions (e.g: ubuntu) that can be partially adapted to physical mac keyboard and its layout but it is clunky and only covers some scenarios. I was hoping there is one ...
3
votes
0answers
166 views

How to change keyboard layout with a game controller

I'm going to copy this largely from a post of mine on reddit, because I'm inhibited by a broken wrist on my dominant hand: Due to that broken wrist I've been reduced to one-handed hunt'n'peck. And ...
3
votes
0answers
356 views

Desktop Environments keeps reverting to US keyboard layout. How do I stop this?

I am using Fedora 25 with the MATE desktop. I start MATE with the "startx" command. Every time I start MATE, it sets my keyboard to a US layout. I have to change it back by clicking System -> ...
3
votes
0answers
5k views

Console: Can't type special characters (Ubuntu 14.04)

We have linux-based computers (Ubuntu 14.04.4) prepared by other company to use their software. We have root password. Those computers has no X Window System. Just consoles. There is a problem with ...
3
votes
0answers
813 views

Xfce Keyboard Layout change Ctrl+Space

Ok, so I've been googling this for almost a week now...without any luck. When I open the Keyboard settings pane, the options are only limited to (ones that have "Space" in them) Alt+Space and Super+...
3
votes
0answers
84 views

How can I stop using setxkbmap groups from snagging modifier keys?

I have several different keyboard maps that I can switch between to my heart's content using: setxkbmap dvp Then when I want another one: setxkbmap ptf Etc. This works, but I'd rather use the ...
3
votes
0answers
231 views

alt-shift toggles keymap when part of a shortcut

I have two xkb layouts, and use Alt+Shift to toggle between them: setxkbmap "fr,us" -option grp:alt_shift_toggle However, when I press a shorcut which contains Alt+Shift, the shortcut isn't taken ...
3
votes
1answer
1k views

Adding a custom keyboard layout (and setting it as the default)

I'm on Arch Linux with i3, and I'm trying to create a personalized layout with IPA (International Phonetic Alphabet) symbols for use in linguistic research. I'm also using iBus for Chinese language ...
3
votes
0answers
55 views

Always insert the diacritic after a dead key

A followup question on this subject, perhaps any of you can help with that too. In Windows the layout for US International does/did this for me; Typing I ' d yields I'd (with no extra jams on the ...
3
votes
0answers
99 views

Apply keyboard buttons combination on release

I installed LMDE2 Mate, with repos pointing on Debian testing. In Pycharm(Jetbrains IDE) I have to press Shift+Alt+E in order to call python console. My problem is, when I am pressing Shift+Alt ...
3
votes
0answers
184 views

XKB - Clearing locked modifiers

I've been having some trouble creating a custom keymap with XKB configuration. I would like to have a Shift key that locks when called with a specific modifier and can be pressed again to toggle the ...
3
votes
0answers
106 views

Dvorak layout, but QWERTY with Ctrl or Alt modifiers

I comfortably type using a keyboard layout named Light Developer's Dvorak, which I have further customized (negligibly) for myself. How do I configure, so that pressing Ctrl, Alt, etc. will read the ...
3
votes
0answers
399 views

Will booting ubuntu in recovery mode use default keyboard layout?

I have a chromebook with Ubuntu 15.04 and I need to customize some of my keyboard keys in xkb. Unfortunately while doing so I managed to disable my keyboard and needed to boot from live USB to revert ...
3
votes
0answers
167 views

Why won't my custom layout work?

I'm trying to create a custom layout that I can use for various symbols. For now, I just copied the contents of gr(bare). However, the layout does not appear to work. When I press Caps Lock, the ...
3
votes
0answers
217 views

Mint login screen different keyboard layout per user

Is there a possibility to have a different keyboard layout per user login in Mint 17.1?  If so, how? I am using a US keyboard layout; my girlfriend uses a German (DE) keyboard layout (on the same ...
3
votes
0answers
1k views

Keyboard key is not recognized even with showkey

I am using Ubuntu 12.04, in a laptop that I carry around and use with different physical keyboards (as I don't feel comfortable with laptop keyboards) For one of those keyboards (Dell SK-8135) the ...
3
votes
0answers
316 views

XKB: Can I have an eight-level key and have Ctrl participate in selecting it’s levels?

Is there an XKB way to generate a key event, form a normal key combo which includes Ctrl without having the ctrl modifier bit set? Or the same question asked in another way: Can I have an eight-level ...
3
votes
0answers
234 views

Behavior of ALT in Qt5 applications

I work in Arch Linux 64bit with both English and Hebrew keyboard layouts available, using Alt+Shift to change between them. I recently noticed that when I work in Texmaker, which is a Qt5 application,...
3
votes
0answers
400 views

replace menu key with capslock and capslock with left control using xkb

I followed the instruction here by defining my own xkbsymbols (Use setxkbmap to swap the Left Shift and Left Control) partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <...
3
votes
0answers
80 views

Typing punctuation adds an accent to the preceding letter after my laptop is docked for a few minutes

I am running Manjaro XFCE. Everything worked like a charm for months now, but 2 weeks ago the keyboard configuration from my external keyboard seems damaged. Writing on my laptop itself works ...
3
votes
0answers
516 views

Remapping Left Control <LCTL> in xkb changes behavior of Alt + Left Shift

For some reason pressing any alt key (including <MENU>) together with <LFSH> toggles "Switch windows of an application". This can be turned off by commenting out key <LCTL> { [ ...
3
votes
0answers
292 views

Flipping Control/Command in GNOME breaks Alt key in JVM

I want to switch Control and Command modifier keys in GNOME / Debian Jessie, because I use a Macintosh laptop. I have managed to get these changed via the TweakTool -> Typing panel, like this: Ctrl ...
3
votes
0answers
217 views

How to set up the login screen to ask for keyboard layout

I just upgraded my distro, now it no longer has a menu to set the keyboard layout in the login screen (gdm). Previously a user could select there icon, then change the keyboard layout (it would also ...
2
votes
0answers
25 views

Remap keys including a modifier

I use an alternative german keyboard layout on Ubuntu 18.04: ~$ setxkbmap de koy Now I want to swap three keys (Mod3 → f → ß → Mod3) as shown in that picture: This are the keycodes for these keys: ...
2
votes
0answers
36 views

How does Chromium browser determine the default keboard layout on Linux?

I'm trying to figure out how the Chromium Browser sets up the default onscreen keyboard layout / locale on Debian (and general Linux OS as well). Does Chromium Browser sniff the OS settings and/or ...
2
votes
0answers
58 views

setxkbmap -layout us,pt doesn't work

I'm using i3 and imported some keybinds from another user that has the US keyboard. From the i3 forums, the easiest way to do this would be to do: setxkbmap -layout us,pt ..... This solution seems ...
2
votes
1answer
81 views

GTK and Qt apps seem to interpret XCompose differently

I'm using Ubuntu 18.04. By default, typing something like ^2 produces ², which I don't want: I want it to be ^2. I found out that to accomplish that, one has to set GTK_IM_MODULE=xim and QT_IM_MODULE=...
2
votes
0answers
73 views

alt + keycode to produce dead key

Coming from the US International keyboard on OS X, I would like to configure my Linux keyboard to behave as follows in X11: [ALT] + [u] -> dead umlaut [ALT] + [n] -> dead ~ [ALT] + [^] -> ...
2
votes
0answers
169 views

Turning the Escape key into a modifier that still acts as Escape when tapped

I use a tiling window manager (xMonad at the moment), and due to this I need a key that acts as the ‘control key’ for window management. Whenever I use a keyboard with Windows/Super/Mod4 keys, I use ...
2
votes
0answers
104 views

Editing existing keyboard layout

I'm using the English US keyboard layout, but I often find myself needing to type certain Unicode characters (namely, greek letters often used in Math) and I notice that the US layout has almost no ...
2
votes
0answers
346 views

Getting modifier keys (Alt, Ctrl) to work together with ISO_Level3_Shift

I have altered quite a bit my keyboard layout using two levels of shift keys. Basically now, I have 3 layers on my keyboard. In order to do so I used the ISO_Level3_Shift and ISO_Level5_Shift. ...
2
votes
0answers
63 views

Xkb to replace § in the Slovak keyboard layout to ď/Ď

I want to replace § in the Slovak keyboard layout (it's currently ' - the first key to the right from my right pinky finger) on the English keyboard or keycode 48 on most keyboards) with the more ...
2
votes
1answer
387 views

Can I set the default keyboard layout using kernel arguments while booting Linux Mint 17 Live USB?

I have a USB flash drive that I'm using to boot machines with. It can boot with several GNU/Linux distributions, including Mint 17 [Cinnamon]. The only annoying factor is that I always have to change ...
2
votes
0answers
74 views

How to set active keyboard language via a command?

I use OpenSuse with LXQT. I have three languages switched by CAPS LOCK - us,ua,ru I want to create a shortcut to switch English without pressing CAPS LOCK. So when I press a key combination, the ...
2
votes
1answer
532 views

Disable both shift keys and turn caps lock into a shift

My Macbook Pro's keyboard is malfunctioning and both its shift keys are pressing erratically. Other than that, it is fine. In Macos 10.11, I solved that problem by using karabiner. In Linux, ...