Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [xkb]

xkb is the abbreviation for the X Keyboard Extension used to describe and configure differ keyboard layouts, etc. under X11.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Remapping keypad keys with xkb

TL;DR I have a configuration for remapping keys in xkb, which I think should work. setxkbmap reads it without error, but there's no effect. I'm trying to remap my numpad keys to navigation keys. I ...
Peter C's user avatar
3 votes
1 answer
57 views

Permanently set layout for all keyboards in X11

On my laptop running Gentoo Linux with StumpWM as a window manager, I have a custom keyboard layout called daselt, which I'm using all the time. Until now I've set it by automatically running ...
Alexander Praehauser's user avatar
0 votes
1 answer
16 views

Debugging xkb layout under wayland

I have a custom layout, made with xkb, that I made back when I used X11. This ported to Wayland just fine. Now I'm trying to make improvements to the layout. Testing my layout under X11 was a matter ...
Jean's user avatar
  • 185
1 vote
1 answer
16 views

Modifiers not working when setting "custom" layout through Desktop Environment

I added a custom keyboard layout, noted, to my system using this guide. In a nutshell, I downloaded a file called custom and put it to the symbols folder: curl 'https://dl.neo-layout.org/custom_noted' ...
Max Görner's user avatar
0 votes
1 answer
39 views

Layout `custom` not recognised by KDE keyboard layout settings

I want to get started with a new keyboard layout from the Neo family. It is Noted, and I tried to install it according to this guide. In a nutshell, I downloaded a file called custom and put it to the ...
Max Görner's user avatar
0 votes
0 answers
23 views

How can I add a functioning Control key to my keyboard layout?

I'm working on adding my keyboard layout to /usr/share/X11/xkb/symbols. So far it's going good, but I am having trouble with adding Control and Shift keys. key <AC03> {[ NoSymbol, NoSymbol, ...
carbon-starlight's user avatar
0 votes
0 answers
33 views

How to change Caps lock shortcut from Shift+CAPS to Alt+CAPS

Debian Linux, which includes /etc/default/keyboard file to setup keyboard, both on console and X. I have this line in it: XKBOPTIONS="grp:caps_toggle" Through this configuration, CAPS is ...
Krackout's user avatar
  • 2,742
1 vote
0 answers
26 views

Listen to keyboard layout change

I'd like to perform some actions when the user requests a keyboard layout change (via ibus/setxkbmap/wayland/gnome/plasma/…), notably in order to disable KMonad (otherwise the user-defined layout ...
tobiasBora's user avatar
  • 4,301
1 vote
0 answers
183 views

Understanding the keyboard input stack on desktop Linux, esp. compose keys

For context, I'm trying to track down a bug in Compose key handling that I experience on Fedora 39 with GNOME on Wayland, discussed here and here. However, my question is more general. I'm trying to ...
Jean Abou Samra's user avatar
0 votes
0 answers
81 views

Trouble using a Qt 6 application on an older (SLES 15) machine

I'm trying to run an app which apparently uses some Qt6 capabilities on my SLES 15 SP5. When I do that, I get the following error message: qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is ...
einpoklum's user avatar
  • 9,662
0 votes
0 answers
15 views

xkb utf8 symbols but no syms

Fedora 39 here, but this should apply in general for any linux. My ~/.xkb/symbols/my has this (part): replace key <FK01> { [ F1, F1, {H,e,l,l,o}, {W,o,r,l,d}, XF86_Switch_VT_1 ] }; ...
Robert D.'s user avatar
1 vote
0 answers
51 views

How to define a new xkb type and make it the defaul for a specific layout?

I am a Java programmer and I often need to write lots of text in Hungarian, German or Slovak. Quite often, I have to do all simultaneously, which makes constantly switching between different layouts ...
Karcsii's user avatar
  • 11
2 votes
1 answer
120 views

How to make one keystroke emit three Unicode characters in a custom keyboard layout in Linux Mint?

I have created a custom keyboard layout for my regional language by editing different files.  It works fine except for one problem.  One of the characters needs three Unicode characters in combination,...
Ritu Lahkar's user avatar
1 vote
1 answer
64 views

what keeps turning off stickykeys and how do I stop it?

I have xkbset st -twokeys in ~/.xsession file. My process list is (mine, not system): winbindd: domain child /lib/systemd/systemd --user (sd-pam) /usr/bin/pipewire /usr/bin/wireplumber /usr/bin/...
Joshua's user avatar
  • 1,893
2 votes
1 answer
255 views

KDE - Map left and right `Alt` keys independently

When creating shortcuts, the left and right Alt keys map to identical references. Is there a way to create a shortcut for both individually so that RAlt+Key1 and LAlt+Key1 can point to different ...
wasp256's user avatar
  • 209
1 vote
1 answer
85 views

`setxkbmap kr` not doing anything?

I'm trying to add a configuration to my multilingual setup on my ArchLinux desktop, but Korean doesn't seem to do anything, despite it being listed under setxkbmap. How do I set it up similarly to ...
psygo's user avatar
  • 201
1 vote
1 answer
63 views

XKB spec says 63 levels max per type. For me it's 8. What am I doing wrong?

X.org version: 1.21.1.7 Distribution: Kubuntu 23.04 I duplicated the included EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK type, inserted an additional level as Level1, and shifted all existing levels by +1....
Dongchen's user avatar
2 votes
1 answer
81 views

How many levels can XKB accomodate?

I am intending to add an additional level to the unconventional 8-level German Neo2 layout for redirecting keys to QWERTY when the control modifer is pressed. Whilst I don't expect 9 levels to not ...
Dongchen's user avatar
0 votes
0 answers
52 views

"Register" new full keymap (from xkbcomp) for use with input switchers

I have specified a full keymap with X11 xkb (replaced symbols, types and keycodes to unmap specific modifiers from the base pc files, etc.) in my own directory. Using xkbcomp -I/home/laura/codes/xkb/ /...
laurapigeon's user avatar
1 vote
0 answers
55 views

xkb: how can `modifier_map` be completely replaced

When defining a custom keyboard layout with xkb, how can I completely override a modifier? E.g. when I have xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types ...
ensc's user avatar
  • 221
0 votes
0 answers
58 views

Remapping KP_UP to Up

I am encountering weird issue with Android Studio, and it seems the fix will still take some time. When I press arrow keys at numeric keypad at the editor window, the cursor won't move. But it does ...
Magician's user avatar
  • 193
0 votes
0 answers
73 views

Is it possible to have several actions for a single keycode in XKB keymap?

In XKB (X keyboard extension), it seems to me only one Action max is possible for any keysym: There is zero or one key action associated with each keysym bound to each key. https://www.x.org/releases/...
bam's user avatar
  • 26
0 votes
1 answer
56 views

How to lock modifiers other than Shift

I have a custom keyboard layout which heavily uses modifiers for navigation and commands. It works great when I have both of my hands on the keyboard, but now I'm trying to configure my keypad to be a ...
Alexander Praehauser's user avatar
0 votes
0 answers
53 views

Mapping upper left esc key to fn

Is it possible to map the upper left esc key to fn? How? Apparently xmodmap is deprecated and you should use something like setxkbmap instead. I tried something like: xmodmap -e "keycode 1 = 464&...
justsome631's user avatar
0 votes
2 answers
288 views

Set individual auto-repeat rate for each key

On X11, doing something like xset r rate 120 240 it's possible to set the repeat rate for the entire keyboard. But I wonder if it's possible to do the same thing for each individual key? (Ie. to have ...
étale-cohomology's user avatar
2 votes
2 answers
1k views

How to remap a regular key into a modifier key (Shift...) in Linux

On my new laptop keyboard, there's a strange key next to my shift key. Frankly it's useless to me and having a shorter shift key doesn't let me reach some of the combinations that I was used to. I'd ...
henry_the_brave's user avatar
1 vote
0 answers
224 views

Custom Umlaut mappings for Gnome/Wayland (xmodmap alternative)

Under X11 I used the following .Xmodmap to easily type Umlauts on a US keyboard layout: keycode 108 = Mode_switch Alt_R keycode 39 = s S ssharp keycode 38 = a A adiaeresis Adiaeresis keycode 30 = u U ...
Karl Bartel's user avatar
0 votes
1 answer
142 views

Swap with setxkbmap pageUp and pageDown

On Debian, I try to swap with setxkbmap pageDown with pageUp (and also Home and End), but I didn’t find options to do it in the -option option. I try someting like setxkbmap -layout fr -variant bepo -...
fauve's user avatar
  • 1,290
1 vote
2 answers
139 views

Is there a way to get the keyboard layout (which letter is where)?

I have a very rarely used keyboard layout and there are a lot of things that are quite obviously not optimized for my very specific layout. I would like to change hotkeys for a program but I would ...
xyious's user avatar
  • 111
0 votes
1 answer
244 views

Xkb names of brightness, volume control and standby functions

I've written a custom keyboard layout in xkb and I would like to incorporate volume and brightness control as well as the standby and maybe shutoff function into it so I don't have to reach for the ...
Alexander Praehauser's user avatar
0 votes
2 answers
196 views

Map Caps Lock to AltGr and Escape - why does setxkbmap silence xcape daemon?

I'm on a 20.04 Ubuntu machine. I've been trying to use a combination of setxkmap and xcape to map AltGr and escape onto my caps-lock key, where a quick key press acts as escape and a longer key press ...
DBJ's user avatar
  • 1
0 votes
0 answers
237 views

Why does my custom xkb layout not recognize the level switches?

I'm using a custom layout that is basically a heavily modified variant of the German PUQ layout that I initially just wrote over the AdNW layout, and to keep it from being overwritten by updates I now ...
Alexander Praehauser's user avatar
1 vote
2 answers
2k views

How to use custom keyboard layout in Windows and Ubuntu (WSL)?

I created a custom keyboard layout with Microsoft Keyboard Layout Creator (MSKLC) for my Windows 10 machine. The custom keyboard layout is based on the Swiss German Layout and the numbers are swapped ...
Arber's user avatar
  • 133
0 votes
0 answers
210 views

Why XKB shift levels are 1 (none), 2 (Shift), 3 (AltGr), 5, and not 0, 1, 2, 4?

XKB uses the following scheme for shift levels (as can be seen in various /usr/share/X11/xkb/ files): level_name[Level1] = "Base"; level_name[Level2] = "Shift"; level_name[Level3] ...
Kelly Roadkill's user avatar
0 votes
1 answer
1k views

How to set xkb variant in sway for one of multiple layouts

I want to set the German layout with nodeadkeys as default, and the other layouts with default variant. It works when I set just the German layout and its variant, but not with multiple layouts: input ...
xeruf's user avatar
  • 581
0 votes
0 answers
143 views

xkb swap backslash and return: how to deal with shift?

I'm trying to swap Enter and Backslash key. I figured out how to swap them when Shift is not involved: key < RTRN > {[ backslash ]}; key < BKSL > {[ Return ]}; However, when shift is down, ...
Maciek's user avatar
  • 3
0 votes
1 answer
50 views

Key mapping: printable char key (like a/s/d/f) mapped to control?

Is it possible to use xmodmap or xkb to turn a key that usually inserts characters (like a/s/d/f) into a modifier key? I try xmodmap with what I thought would work, e.g., add Control = a, but this ...
Maciek's user avatar
  • 3
1 vote
0 answers
225 views

In xkb, what is the difference between caps:internal, caps:shift and caps:capslock

If I type cat /usr/share/X11/xkb/rules/evdev.lst | grep caps: in a terminal I get caps:internal Caps Lock uses internal capitalization; Shift "pauses" Caps Lock caps:...
rogerdown's user avatar
0 votes
1 answer
633 views

How to (permently) set keyboard mappings using setxkbmap? It gives an error

I am diving into custom keyboard mappings. Basically, I just want to switch the Alt_L with Ctrl_L and Alt_R with Ctrl_R (kind of like Command on MacBooks). In the file /usr/share/X11/xkb/symbols/ctrl ...
vshas's user avatar
  • 109
1 vote
0 answers
145 views

Adding a single keycode to the existing XKB configuration

I have a MECHREV laptop, /sys/class/dmi/id/product_name "Jiaolong Series GM5ZG0O". Its keyboard has a button for toggling trackpad on/off. However this key emits keycode 93 which is not ...
SnakE's user avatar
  • 151
2 votes
0 answers
147 views

Key combination AltGr+Alt+h is not detected in xev

I recently added the following customization to /usr/share/X11/xkb/symbols as an include file: partial alphanumeric_keys xkb_symbols "vim" { key <AC06> { [ h, ...
r_31415's user avatar
  • 516
1 vote
0 answers
271 views

Remap LeftAlt + hjkl to arrow keys

I'm trying to remap LeftAlt + hjkl to my arrow keys using an XKB layout. Here's my current config (non-functional): key <AC06> { [ h, H, Left ] }; key <...
Anatole Lucet's user avatar
0 votes
0 answers
84 views

Auto load kbd file on keyboard connect

I have created a keyboard layout file (my_keyboard.kbd) specific for my keyboard. I load it manually using xkbcomp my_keyboard.kbd $DISPLAY which works fine. Currently, some other (the default/...
Alfe's user avatar
  • 261
1 vote
1 answer
782 views

Installing Colemak on Fedora

I am struggling with installing colemak on my Fedora 36 instance. I am using the following procedure: wget https://colemak.com/pub/unix/colemak-1.0.tar.gz tar -xzf colemak-1.0.tar.gz cd colemak-1.0 ...
Ceus's user avatar
  • 11
2 votes
1 answer
518 views

How to add a compose character to a xkb keyboard layout

I created a custom Ukrainian ISO 9 layout successfully (by redacting /usr/share/X11/xkb/symbols/ua and several other files), it works and all but it lacks one letter, namely G with a grave i.e. 'G̀' (...
Xabab's user avatar
  • 21
3 votes
0 answers
705 views

How to set Caps Lock as Hyper (and change modifiers) using xkb?

This is currently my .xsessionrc file: xmodmap -e "remove Mod4 = Hyper_L" -e "add Mod3 = Hyper_L" -e "lock = Hyper_L" -e "keysym Caps_Lock = Hyper_L" & ...
cidra's user avatar
  • 81
0 votes
0 answers
269 views

How to assign dot symbol for the numpad del key in the KDE (X11) permanently?

I use the KDE Plasma with X11 on my laptop. And I set up two keyboard layouts in the KDE settings: US English and Russian. I'd like to assign the dot symbol for the numpad Del key. I found the ...
Serge Roussak's user avatar
1 vote
1 answer
68 views

implicit types in xkb

The keymap source (in .xkb format) of the current XKB configuration can be obtained by running xkbcomp $DISPLAY -. Mapping to keysyms is done in the xkb_symbols section of this file. Some of the ...
user001's user avatar
  • 3,738
0 votes
1 answer
187 views

xkb: Why is the compose key set to NoSymbol after a system update (OpenSuSE 15.2 → 15.3)?

After upgrading my OpenSuSE Leap from 15.2 to 15.3, I found out that the Compose key (keycode: 135) was no longer working. In fact, xev no longer recognised it as Multi_key, but as NoSymbol: KeyPress ...
Neppomuk's user avatar
  • 346
0 votes
2 answers
4k views

Setting an X11 keymap on Arch Linux

I am running Arch Linux and I would like two input languages on my system. English, UK Kurmancî (Northern Kurdish) In my .xinitrc I have the following: # keyboard layout setxkbmap -layout gb & ...
J86's user avatar
  • 393

1
2 3 4 5
8