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
1 vote
0 answers
79 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
26 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,515
0 votes
0 answers
7 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
0 votes
0 answers
21 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
2 votes
1 answer
107 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
39 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
150 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
49 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
58 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 Yue 岳东辰's user avatar
2 votes
1 answer
70 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 Yue 岳东辰's user avatar
0 votes
0 answers
40 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
43 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
43 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
58 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
49 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
48 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
240 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
840 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
0 votes
0 answers
55 views

How to create new kayboard layout in xorg?

I use polish layout, but when I use AltGr(in my case it is right Alt)+b in terminal it is print ” and same situation with AltGrgr+f -- æ. I use: Fedora workstation 37 Xorg Bspwm Thinkpad A485 I ...
pirog_x's user avatar
1 vote
0 answers
178 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
103 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,228
0 votes
0 answers
15 views

Using includes for layouts in xkb config

I created a new layout, it's for a new set of glyphs and keycodes that do not exist in Unicode yet, I was able to create a working layout, but I was asked not to merge it upstream, as since it's not ...
Didi Kohen's user avatar
  • 1,851
1 vote
2 answers
113 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
154 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
130 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
206 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
192 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
888 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
  • 551
0 votes
0 answers
119 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
195 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
518 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
130 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
135 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
262 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
77 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
681 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
451 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
613 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
224 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
56 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,698
0 votes
1 answer
165 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
  • 326
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
  • 383
1 vote
0 answers
91 views

How to unmap a modifier?

I'm trying to swap Caps Lock with Backspace for group 1. I have this in xkb_symbols: replace key <BKSP> { symbols[Group1] = [ Caps_Lock ], symbols[Group2] = [ ...
glibg10b's user avatar
  • 350
1 vote
0 answers
263 views

Make xkb produce two symbols on one key press (e.g. make `ctrl`+`+` & `ctrl`+`=` produce same (combined) effect to get rid of `Shift` for zooming in)

Some apps use ctrl++ and some ctrl+= to zoom in. Only some allow to customize. If all used same, I would just remap the keyboard not to use Shift. Can I make apps receive signals that both ...
Martian2020's user avatar
  • 1,167
2 votes
1 answer
2k views

How to create a new keyboard layout in the /usr/share/X11/xkb directory in Ubuntu?

In the /usr/share/X11/xkb/symbols directory there are various keyboard layouts listed. I made a copy of the /usr/share/X11/xkb/symbols/us file under the name /usr/share/X11/xkb/symbols/new_test_layout....
sriganesh's user avatar
  • 101
0 votes
1 answer
154 views

RALT doesn't send Alt_R

I've tried remapping left Control key to left Alt key. in /usr/share/X11/xkb/keycodes/evdev by doing this: // <LALT> = 64; // <RCTL> = 105; // <LCTL> = 37; // <...
wvxvw's user avatar
  • 628
1 vote
0 answers
375 views

Setting ALT + ARROWS LEFT,RIGHT to HOME,END in xkb

I'm trying for days to set the (left) ALT + arrows keys (left/right) keybindings in xkb. ALT + LEFT to HOME ALT + RIGHT to END These keybindings should work together with SHIFT as well. I just ...
stevo's user avatar
  • 111
1 vote
0 answers
194 views

Emulating SOCD cleaner functionality with xkb

I'm trying to emulate the functionality of standard hitbox SOCD cleaners with normal keyboard input. Specifically, I need it to: Space only: KeyPress Space s only: KeyPress s Holding s and Pressing ...
feffe's user avatar
  • 11

1
2 3 4 5
8