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.
123
questions
11
votes
1
answer
5k
views
Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap (and I suppose you could also do it through the X protocol directly, eg. using libxcb as a ...
29
votes
2
answers
27k
views
Use setxkbmap to swap the Left Shift and Left Control
Is it possible to swap the Left Shift and the Left CTRL keys using setxkbmap instead of xmodmap?
EDIT
I have switched to Fcitx, which works way much better with my keyboard layout and customized ...
29
votes
1
answer
5k
views
Shortcut keys that are independent to keyboard layout
Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout?
Example: In most ...
7
votes
2
answers
4k
views
Remapping Caps Lock to Compose
Because I now and then need to use scandinavian letters despite using US Dvorak as my layout, I would like to use Caps Lock as a compose key. (I don't need Caps Lock at all, I'm not a forum troll)
...
12
votes
2
answers
8k
views
Override a few keycodes with XKB
I want to shuffle a few keys around with XKB. (Why? On a laptop where some keys are inconveniently located.) I currently use xmodmap:
keycode 110 = Prior
keycode 115 = Delete
keycode 112 = Next
...
38
votes
2
answers
16k
views
Does Wayland use XKB for keyboard layouts?
As XKB is part of X window, is it XKB used in Wayland as well? If so, is there any utility planed to replace XKB at some point?
In weston, setxkbmap does not work obviously. What is the currently ...
3
votes
2
answers
5k
views
Key mappings in Linux
What do people mean when they point out that the "keys are not properly mapped" in a Linux installation when working on the command line?
Isn't the default installation OK? What extra/specific ...
14
votes
2
answers
4k
views
Prevent keyboard layout reset when USB keyboard is plugged in
Whenever I plug in a USB keyboard, the layout of all keyboards is reset to some system default (a US layout which doesn't have modifiers and other keys the way I want them). I've observed this on many ...
10
votes
5
answers
2k
views
Insert both characters if a dead key combination is not recognized (e.g. 'a → á, 'b → 'b)
When I use any variation of English, US international (with dead keys,altGr dead keys or alternative) on my Linux Mint machine I always encounter this behaviour.
When I press one of these keys: ' " ...
7
votes
2
answers
15k
views
Problem keyboard layout in boot with LUKS
I have installed Arch Linux with LUKS on a btrfs file system.
When logging in,
I can't mount my filesystem on /dev/sda2 because the keyboard is US (I need a French key map).
I try change /etc/...
4
votes
3
answers
7k
views
Unable to simulate Ctrl+Shift+Fn+F10 Key press \
I have an ubuntustudio 16.10 64 bit on an IBM Thinkpad E431. I am able to launch an app from a shell script, but the next step involves pressing Ctrl+Shift+F10 On my notebook I need to press the ...
2
votes
2
answers
2k
views
What controls the mapping between Ctrl+Alt+F keys, TTYs and X sessions?
On my CentOS system, Ctrl+Alt+F1 shows the X Windows session known as :0, but on other systems Ctrl+Alt+F7 may do the same thing. What determines how Fn keys are mapped to X sessions and TTYs?
...
80
votes
7
answers
59k
views
On an Apple Keyboard under Linux, how do I make the Function keys work without the fn modifier key?
I use an Apple wired keyboard on Linux. By default the function keys (F1, F2, F3, etc) require the fn key to be pressed for them to work. Without the fn key, these keys control the features like ...
26
votes
1
answer
43k
views
Save setxkbmap settings?
I'm having trouble setting my keyboard settings to swedish, running Raspbian on a raspberry pi. I've tried everything and the only thing that worked was the command setxkbmap se.
But this doesn't ...
25
votes
2
answers
4k
views
Select characters by holding down a key in Linux (like in OSX)
I've been wondering if there's any add on available that does something like Mac OS X. My mother tongue is Spanish, and now I live in a Francophone environment, I also do English a lot, so I'm in need ...
18
votes
2
answers
5k
views
Adding custom Compose key sequences
How can one add custom Compose-key sequences? I have googled quite a bit, but could not find an explanation. In particular, I would like to have:
<Compose> + <Z> + <Z> = ℤ # ...
17
votes
4
answers
5k
views
How to make Compose work in GTK and Qt apps?
I used Gnome for a long time, but preferred vanilla X input method (xim) over the default GTK behaviour. I just set GTK_IM_MODULE and QT_IM_MODULE environment variables to xim, and didn't have any ...
16
votes
1
answer
7k
views
Remapping both Caps Lock and Shift+Caps Lock in xkb
I am trying to configure xkb such that Caps Lock is mapped to the Compose key and Shift+Caps Lock functions as the traditional Caps Lock. I put the following in a new file called /usr/share/X11/xkb/...
13
votes
1
answer
6k
views
Map Super+[Left|Right] to Home/End
How do I map key "Super" so, when combined with Left/Right, it produces keycode Home/End?
My current setxkbmap:
setxkbmap \
-model pc105 \
-layout 'us(dvorak-intl),us(alt-intl)' \
-option \
-...
13
votes
1
answer
5k
views
Relationship of keyboard layout and xmodmap
I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remapping some keys.
I'm interested in two things:
How the state of keyboard mapping changes (a) when I turn the ...
10
votes
1
answer
4k
views
Create and set custom keyboard layout
I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content:
partial default alphanumeric_keys
xkb_symbols "basic" {
include "latin(type4)"
...
7
votes
1
answer
2k
views
Change behaviour of numpad to dpad in GNOME 3
I'm a long-time Windows user who uses the numeric keypad with the numlock off for navigating text, highlighting it, etc. Shift + Home (7 on the numpad) selects all text till the beginning of the line. ...
4
votes
3
answers
7k
views
How to add a keyboard-layout applet switcher to Fluxbox toolbar?
In Manjaro Fluxbox there is no keyboard layout switch in the panel/toolbar tray.
How do I add that?
93
votes
7
answers
120k
views
List all valid kbd layouts, variants and toggle options (to use with setxkbmap)
Is there a way from command line to retrieve the list of all available
keyboard layouts and relative variants?
I need to list all the valid layout/variants choices to be used then from setxkbmap.
...
46
votes
1
answer
46k
views
Understanding window manager terminology: Mod Keys, Meta Keys, and key naming conventions
In window managers' circles, there are some technical terms; a couple of them are "Mod keys" and "Meta keys." The questions I am asking are:
What exactly are those, and are they ...
40
votes
10
answers
40k
views
How to display the current keyboard layout?
Is there a utility that allows to graphically display the current keyboard layout?
This can be useful, for example, when writing in a foreign language and having the physical keyboard only ...
40
votes
7
answers
35k
views
Swap alt and super
I have a Macbook Air that runs Linux. I want to swap the alt and super keys in both sides of the keyboard with each other.
How do I do this with cli tools?
Update
Following Drav Sloan's answer I ...
34
votes
2
answers
4k
views
Multiple Keyboard Layouts and Shortcuts
I configured KDE to switch easily from a bépo (french-dvorak) to an azerty layout. I configured it with the KDE interface (systemsettings), but I guess it just call setxkbmap be and setxkbmap fr.
The ...
29
votes
6
answers
18k
views
KDE: how to get rid of IBus keyboard selector
Please, how to get rid of IBus service/IBus panel when running KDE?
This Gnome(?) keyboard layout manager (?) can get into conflict with the layout set natively in KDE Settings. I need to switch ...
26
votes
7
answers
22k
views
How to change keyboard layout in gnome 3 from command line
I am using gnome 3.22.1 but problem exists since 3.18.
Before that (don't remember the exact version) I was able to switch keyboard layout using xkb-witch, simple application that uses X.org bindings ...
23
votes
2
answers
22k
views
How to define a Compose Key in terminal (no desktop environment)?
I would like to define a compose key on my system (Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal.
I would like to set it up on my Alt-Gr key (right ...
21
votes
1
answer
34k
views
How to get all my keys to send keycodes
I'm using Gentoo with XFCE. I have a logitech K350 keyboard, all but a few of the keys work as expected but there is one specific key that I want to use but when I run showkey no key codes are being ...
14
votes
4
answers
29k
views
How do I change currently selected keyboard layout from command line?
I have my keyboard layouts (two of them) and switching between them configured via the following command:
setxkbmap -layout us,ru -option -option "grp:lctrl_lshift_toggle,ctrl:nocaps"
Now I want to ...
13
votes
2
answers
4k
views
UTF8 math symbols & keyboard layout / input
I'd like to use UTF8 math symbols, when typing one list, another list.
I've found something called ComposeKey. Unfortunately it's not covering omega, theta, right arrow etc.
I am using KDE, I've ...
12
votes
2
answers
7k
views
Tuning keyboard (dead key) functionality in X
My preferred keyboard configuration is US-International. When I use it on MS-Windows and type certain special characters (i.e., ~ ' ") followed by a, o n I get á ó or ñ as I wish.
However when I type ...
12
votes
1
answer
4k
views
xkb: make ctrl+backspace behave as delete
How can I map Ctrl+Backspace to behave as Delete key with xkb? I can remap a single key on /usr/share/X11/xkb/symbols/pc but can't figure out how to do the combination. My OS is Ubuntu 15.04
11
votes
4
answers
49k
views
How can I set the keyboard right on X?
Note: forked of this per recommendation here.
I made a foolish typo for UTF-8, and expected that when I fixed it, the keyboard on X would work right. Since making this errant change, I was no longer ...
11
votes
3
answers
11k
views
Grub2 without arrow keys
My laptop keyboard recently had a losing encounter with a beer, and the arrow keys don't work anymore. No big deal, I figured -- I remapped CAPS+hjkl to the arrows in xkb, and after a little getting ...
10
votes
5
answers
38k
views
Change the keyboard layout in LightDM
I installed LightDM on an Arch Linux system (using pacman) and it runs fine, except, that if I try to type a special character (like "@", "$", ...) in the user or password field it doesn't do anything....
8
votes
3
answers
25k
views
how to swap ctrl and capslock using xmodmap?
I know this xmodmap script can swap ctrl and capslock:
remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
keysym Control_L = Caps_Lock
add Lock = Caps_Lock
add Control =...
8
votes
4
answers
17k
views
Mint login screen: wrong keyboard layout
After installing Mint 15 / updating to Mint 17, I'm unable to log in using the GUI login screen and German localisation with a password containing special characters. Changing the language using the ...
7
votes
2
answers
2k
views
How to make a ISO_Level4_Shift and Lock in xkb?
I would like to know if it’s possible to set a key as a level 4 modifier or locker in xkb instead of using: Shift + ISO_Level3_Shift (a.k.a AltGr).
Same question with the levels 6, 7 and 8 (using "...
7
votes
3
answers
4k
views
How to reverse ESC and CAPS_LOCK on TTY
I'm looking for a way to swap Esc and Caps Lock on Linux virtual console.
In X11, I can do this with setxkbmap -option caps:swapescape, but I don't know an equivalent in text mode. So, what can I do?
6
votes
1
answer
2k
views
Disable keyboard but still allow reading from it
I have a USB numpad that I want to use to control a specific application running as a daemon in the background. The daemon is written in Python and I'm currently reading input using python-evdev which ...
5
votes
2
answers
1k
views
How to set the keymap for keyboards that are plugged in later?
I have configured my keyboard layout by adding a call to setxkbmap to my .xinitrc. This works for my laptop's internal keyboard and for any external keyboard that is plugged in when the X server ...
4
votes
1
answer
3k
views
xkb: how toggle keyboard layout with win + capslock?
I want to set custom shortcut to change keyboard layout using setxkbmap. For example win_caps (Win+CapsLock). This option is not listed in /usr/share/X11/xkb/rules/base.lst
How can I achieve this?
4
votes
1
answer
723
views
Xmodmap syntax for rebinding Shift+Down to Up
I would like to rebind some keys on Linux via Xmodmap. Left and up cursor on my Acer (yes, I know) laptop have broke. I would like to map shift+down to up, and shift+right to left. Struggling to ...
3
votes
3
answers
592
views
No longer able to input circumflex or diaeresis accented characters (qt5 apps only !)
Currently running KDE-Plasma-5.23.5 (X backend)/ KDE-Frameworks-5.90.0 / QT-5.15.3
I can assert that this used to work perfectly but am unfortunately unable to assert from which version of what the ...
2
votes
2
answers
1k
views
Typing dead key after base letter
The US International keyboard allows to add diacritics by means of dead keys.
Specifically:
`a maps to à and
'a maps to á.
In X, using the international or the standard US keyboard, I would like ...
1
vote
3
answers
3k
views
Keyboard mapping
Tried a few different answers from here and other websites, but I can't seem to get my laptop keyboard mapping correctly on Debian at all.
My keyboard is a slightly abnormal layout.
It's qwerty, and ...