xkb is the abbreviation for the X Keyboard Extension used to describe and configure differ keyboard layouts, etc. under X11.
Questions tagged [xkb]
391 questions
8
votes
1 answer
What is wrong with these XKB rules files?
I am playing with xkeyboard-config. Currently, I'm trying to understand the rules files.
I've used xkbcomp to get the current keymap from the X server and write it to a file. This keymap is the default keymap, which loads without errors when…

Zistack
- 181
- 1
- 2
5
votes
2 answers
Making ISO_Level5_Shift work
With lines such as
key { [ q, Q, degree, paragraph ] };
in /usr/share/X11/xkb/symbols/us, I am able to access the degree symbol with
ISO_Level3_Shift+q. I thought that adding a fifth item would make it
accessible…

Toothrot
- 3,435
5
votes
1 answer
Bind holding `SPACE` to `CTRL`, pressing/releasing `SPACE` to " "
I am using Archlinux.
For ergonomic reasons I am looking for a possibility to use xkb to map holding the space bar to the CTRL modifier and pressing and releasing the space bar to insert a " ".
So typing SPC + x would be cutting marked text.
But…

Arthur Andersen
- 198
- 6
5
votes
1 answer
Use xkb to make shift insert parenthesis
I'm trying to imitate the setup I had on OS X (via Karabiner): Pressing the left Shift on its own key inserts a left (, but holding it down and pressing another key acts as a normal Shift key (and similarly with the right Shift & right )). Is this…

jamesnvc
- 153
4
votes
1 answer
How to make ISO_Level5_Shift work?
I wanted to add more levels to my keyboard layouts, so I decided to enable level5 key. I’ve already had level3 on Menu, and would like to map RAlt to ISO_Level5_Shift.
However, setxkbmap has no option for that. /usr/share/X11/xkb/rules/evdev.lst…

tijagi
- 922
- 1
- 11
- 24
4
votes
1 answer
xkb: inverted keyboard layout indication
I use scroll LED as keyboard layout indicator (off - English, on - Russian). It works great on the PS/2 keyboard at home.
And it works in general on my work computer (USB keyboard). But sometimes I have this LED being out of sync. I assume it is…

edo1
- 241
4
votes
1 answer
Make an ordinary key act as modifier with xcape and xkb
To make Spacebar act as Ctrl under appropriate circumstances, GitHub page of xcape currently instructs as follows:
# Map an unused modifier's keysym to the spacebar's keycode and make it a
# control modifier. It needs to be an existing key so that…

akater
- 181
3
votes
1 answer
XKB groups vs levels
I want to extend my XKB keyboard layout to add custom bindings. Based on a pc104/us layout I want to add bindings like these:
AltGr-a → ä (adiaeresis)
AltGr-e → € (EuroSign)
I think I know how to accomplish that using xkbcomp. However I'm undecided…

MForster
- 141
3
votes
0 answers
Xkb: Overlay vs HotKeys
I'm configured xkb to select each keyboard layouts with unique hotkey (en = Win+1, de = Win+2, jp = Win+3)
replace key { [NoSymbol], actions[Group1] = [ LockGroup(group=1) ] };
replace key { [NoSymbol], actions[Group1] = […

user8451855
- 31
3
votes
1 answer
Transparently mapping a modified key (with xkb)
I'm trying to simulate numeric keypad keys on the main keyboard but am struggling with xkb.
How do I to convert a + into a 'Left'? (AKA Super + u)
It needs to play nice with Shift, Ctrl (and ideally Alt too).
The closest I came was:
…

Peter L
- 221
- 1
- 9
3
votes
2 answers
Is there a program to monitor xkb state?
I'd like to show the state of xkb on status bar of (preferably any) window manager. State should include LED-indicators (both physical and virtual), modifier state, and both keycode and keysym each time some key is pressed.
I've looked at xkbvleds…

montiainen
- 163
3
votes
2 answers
3rd level with space XKB
I have gone through plenty of documents and spent a lot of time trying to configure it, but so far unsuccessfully. I have keyboard with the 3rd level keys (probably ISO_LEVEL3_shift ?)
So when I press Caps Lock and at the same time A, I get a acute…

knezi
- 835
3
votes
0 answers
Unmaping BKSP and RTSH in Xorg
I am trying to improve my typing habits, I have Backspace located elsewhere on my keyboard layout, but I would like to unmap the standard backspace key while I learn to use the one on my keyboard. In addition, I use right shift too much while…

user530873
- 257
- 1
- 8
2
votes
1 answer
How to remap `alt gr` + `j` to another key (xkbmap)
I use setxkbmap dk.
I need the alt gr + j combination mapped to a character that isn't already included in the layout. At the moment, alt gr + j maps to nothing.
The reason why I want to do this is so that I can map the character code (of whatever…

Sebastian Nielsen
- 131
- 7
2
votes
0 answers
XKB Complete Key Definition
I tried defining something like this:
xkb_types "complete" {
type "COMPLETE_LEVEL" {
modifiers = Alt+Shift+Control+Super;
map[None] = Level1;
map[Shift] = Level2;
map[Control] = Level3;
map[Control+Shift] = Level4;
map[Alt] =…

Rahul Manne
- 151