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.

319 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
3k 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 ...
l0b0's user avatar
  • 51.5k
6 votes
0 answers
798 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 ...
Steve's user avatar
  • 161
6 votes
0 answers
2k views

Map right Alt to Ctrl key

I use Linux Mint Mate 17, which is based on Ubuntu 14.04, and I want to map my right Alt to act as a Ctrl key (since I can reach it with my right thumb, which is more comfortable).  How can I do that? ...
ars's user avatar
  • 343
6 votes
0 answers
700 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 <...
Eric's user avatar
  • 61
6 votes
2 answers
3k 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 ...
archer's user avatar
  • 161
5 votes
0 answers
2k views

Ubuntu doesn't change the keyboard layout

On Ubuntu 20.04 I have installed two keyboard layouts (RU and EN). Sometimes(quite often) I face an issue with changing the layout(mostly happens after the Suspend period): when I want to change the ...
Max Tacu's user avatar
5 votes
0 answers
1k views

How to configure the keyboard to behave like Mac's?

I am using Gnome (on Ubuntu 20.04) and I would like to configure that my PC keyboard behaves like Mac's: all UI keyboard shortcuts should use the key closest to the space key as its shortcut key (so ...
Mitar's user avatar
  • 646
5 votes
3 answers
3k views

Add second keyboard layout with localectl

I am using Fedora 28 workstation with Gnome. My current layout status with localectl status is System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us I am using localectl set-x11-...
chris's user avatar
  • 51
5 votes
0 answers
2k 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 || ...
kuanyui's user avatar
  • 262
5 votes
1 answer
2k views

Xfce Keyboard Layout change Ctrl+Space

I've been googling this for almost a week to no avail.  When I open the Keyboard settings pane, the options (ones that have "Space" in them) are limited to only Alt+Space and Super+Space – ...
simon's user avatar
  • 171
5 votes
0 answers
533 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 ...
ZeroKelvinKeyboard's user avatar
5 votes
0 answers
2k 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 ...
enrey's user avatar
  • 151
5 votes
0 answers
699 views

How to map Alt+H to the Arrow-left key?

I would like to have my HJKL keys to function as arrow keys whenever the Alt key is pressed down. Also other combinations should work, such as Ctrl+Left should be seen when Alt+Ctrl+H is pressed. I'...
user717572's user avatar
5 votes
0 answers
2k 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 ...
juanleon's user avatar
  • 513
5 votes
1 answer
5k views

Scrolling TTY without dedicated PgUp and PgDown

Stop reading if uname -r returns a Linux version greater than 5.9, since scrollback has been simply removed (1, 2). My keyboard does not have separate PgUp and PgDown keys. They are in the numpad, ...
Quasímodo's user avatar
  • 18.9k
4 votes
0 answers
182 views

Inconsistent keyboard layout on Ubuntu

I am on Ubuntu 22.04.1 LTS. I have two keyboard layouts enabled in the keyboard options, English (US) and English (Dvorak). I have the option set to use the same source for all windows. When I switch ...
jessicata's user avatar
4 votes
0 answers
692 views

How to map a sequence of keys to <dead_greek>?

I have mapped Insert to Multi_key (also known as Compose) so I can input ä or µ. I've used xmodmap -e 'keycode 118 = Multi_key' in my wm init script. Now, checking /usr/share/X11/locale/en_US.UTF-8/...
Zeta.Investigator's user avatar
4 votes
0 answers
1k views

How to setup Meta key when using VNC from Mac to Centos 6?

I'm running emacs 26.1 on a Centos 6.9 machine displaying via TightVNC server to a client running on my Mac OS X 10.14.2. To make things tricky, I'm also using Dvorak keyboard layout. When I run ...
WilliamKF's user avatar
  • 183
4 votes
1 answer
548 views

Linux mint bluetooth headphone connect resets keyboard map

So I have a ~/.config/autostart/keyboard.desktop file that tweaks my laptop keyboard layout on login. It does setxkbmap -option "ctrl:nocaps" amongst other things. This maps my caps lock key to ctrl. ...
Peter Lyons's user avatar
4 votes
1 answer
2k 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 ...
user avatar
4 votes
1 answer
1k 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 ...
Rogach's user avatar
  • 6,313
4 votes
0 answers
754 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 ...
rPawel's user avatar
  • 149
4 votes
0 answers
563 views

XKB: enable a LED for specific layout

There's a widely used XKB option grp_led:scroll to light ScrollLock LED for cycling between layouts. Unfortunately, it doesn't work with ibus ATM because the implementation makes XKB consider every ...
Hi-Angel's user avatar
  • 5,132
4 votes
1 answer
486 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 ...
22decembre's user avatar
4 votes
0 answers
150 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 ...
mkurnikov's user avatar
  • 141
4 votes
0 answers
383 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 ...
Karyme Virginia's user avatar
4 votes
0 answers
494 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 ...
Robert Siemer's user avatar
4 votes
0 answers
304 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 ...
ryskajakub's user avatar
4 votes
1 answer
231 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 ...
VictorSO's user avatar
3 votes
0 answers
505 views

Swapping CAPSLOCK and ESC keys, but "deeper"

I'm on Manjaro with bspwm and sxhkd (if that matters). Currently, I have setxkbmap -option caps:swapescape in my .xinitrc which works to swap my ESC and CAPSLOCK keys. However, the swap doesn't seem ...
ChocolateOverflow's user avatar
3 votes
0 answers
997 views

XKB Keyboard Configuration on Debian system

I'm configuring my keyboard layout on Debian to learn how XKB extension works. I'm trying to load a custom keyboard layout and am not sure why it's not working in a graphically environment but is ...
mbigras's user avatar
  • 3,120
3 votes
1 answer
734 views

Is it possible to configure the Hyper modifier-key on Wayland?

In X11 I'm using the Hyper key, is it possible to configure a hyper key for wayland?
ideasman42's user avatar
  • 1,211
3 votes
0 answers
492 views

Why do most X keyboard layouts only use the right alt as a modifier key?

I've been typing in a language that requires use of the modifier key a lot lately, and I noticed it was starting to hurt my right hand from the weird contortions required to simultaneously press the ...
mmaluff's user avatar
  • 181
3 votes
0 answers
174 views

Keyboard autocorrect function to catch common typos?

I find myself making the same errors repeatedly on my Dvorak Keyboard. For example instead of typing: I'm It comes out as I"m because my finger lingers on the shift key. This is similar to typing ...
SurpriseDog's user avatar
3 votes
0 answers
184 views

Enable dead key diacritic indicator

I recently tried Debian Buster with KDE Plasma 5 and I noticed a cool feature which I'd like to have on my current distribution. I use a US international keyboard with dead keys layout and, with ...
chuck-'s user avatar
  • 43
3 votes
0 answers
478 views

How to remap the keyboard with the Super L + hjkl like vim arrows

I'm using Arch Linux, I tried using xmodmap, so I'm not getting it When you press Super L + h, it would be the action of the left arrow When you press Super L + j, it would be the action of the down ...
jwerlley's user avatar
3 votes
0 answers
445 views

Remapping <Ctrl-?> keys in X11

I recently started using Colemak layout. Of course, all shortcuts like <Ctrl-T> for opening a new tab changed their positions. That's fine, after all, its all mnemonics. However, there is a ...
Ivan Smirnov's user avatar
3 votes
0 answers
323 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 ...
Jacob Ewing's user avatar
3 votes
0 answers
420 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 -> ...
DJames's user avatar
  • 131
3 votes
0 answers
10k 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 ...
Tom's user avatar
  • 31
3 votes
0 answers
133 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 ...
Caleb's user avatar
  • 70.2k
3 votes
0 answers
231 views

Is there a way to convert OS X keyboard layouts to use them on Linux?

This is how such layouts are specified: <?xml version="1.1" encoding="UTF-8"?> <!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> <keyboard group="126"...
Lenar Hoyt's user avatar
3 votes
0 answers
2k views

Vim with foreign QWERTZ keyboard

Vim is optimized for the standard US keyboard: If we want to use it with the following QWERTZ keyboard (common in Austria and Germany): What should we do? (aside from using the US keyboard map, of ...
viuser's user avatar
  • 2,614
3 votes
0 answers
78 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 ...
Julius's user avatar
  • 466
3 votes
0 answers
595 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 ...
Caballero's user avatar
  • 438
3 votes
0 answers
372 views

Remapping Num Lock key to function as Caps Lock

As a followup to this question, my Caps Lock key is now mapped to Compose instead. However, it turns out that my 14 month old toddler still manages to turn on Caps Lock from time to time with his ...
Jarmund's user avatar
  • 1,118
3 votes
0 answers
162 views

Caps+shift+{w/s/x} doesn't work in gnome

I have rebind my CapsLock key to ctrl in my Gnome DE(GNOME Shell 3.14.3 ) using the Gnome Tweak Tool(i.e Tweak Tool -> Typing -> CapsLock key behaviour -> Make CapsLock an additional Ctrl). ...
ArchKudo's user avatar
3 votes
0 answers
182 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 ...
Thom Smith's user avatar
3 votes
0 answers
292 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 ...
Hansemann's user avatar
3 votes
0 answers
241 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,...
user avatar

1
2 3 4 5
7