Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [xkb]

X KeyBoard extension, or XKB, defines the way keyboards codes are handled in X, and provides access to internal translation tables.

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

How can I use different IBus engines on different keyboard concurrently?

I work with several languages and need to toggle entry between different alphabets, for which I use dedicated keyboards. I can easily set up persistent layouts on each dedicated keyboard using ...
Sasho's user avatar
  • 1
0 votes
0 answers
42 views

Extra keyboard layout shown in xkbmap compared to settings

If I type setxkbmap -query in the terminal of my Ubuntu 22.04 system I get this output: rules: evdev model: pc105 layout: se,ru,us variant: ,, options: lv3:ralt_switch,grp_led:...
Pompan's user avatar
  • 3
1 vote
0 answers
42 views

All Ubuntu gnome user input(keyboard) layers?

Where can I find extensive in depth info about the current standard layers from the keyboard key hit moment to the output interface inside the display (say bash hosted nvim editor) so I can understand ...
Mike's user avatar
  • 9
0 votes
0 answers
36 views

How do I map Ctrl+Shift+Win+X to Delete key?

I already have defined Ctrl+Shift+Win+Q for closing window, but this was done using Gnome-Settings -> Keyboard -> Shortcuts, now I want to map Ctrl+Shift+Win+X to Delete button for working with ...
neochar's user avatar
  • 23
0 votes
0 answers
77 views

Change of key promted change of numeric layout

In Ubuntu 22.04, I changed two keys in /usr/share/X11/xkb/symbols se After a reboot, the keys got remapped correctly. But after a second reboot, it seems my entire numeric row has changed ...
Pompan's user avatar
  • 3
0 votes
1 answer
38 views

Keyboard map changed after upgrade from 20.04 to 22.04

I have Logitech G510s keyboard. It has additional keys G1-G18. In 20.04 they were mapped as F1-F12 + 1-6. In 22.04, keycodes/event are extended and contains mapping of these keys (G1 scan code 656) as ...
Branislav Zahradník's user avatar
0 votes
0 answers
54 views

Numpad always writing numbers but arrow symbols with AltGr regardless of NumLock state?

I want to set the numpad so it by always writes digits regardless of the state of NumLock, but it writes arrows and math operators with AltGr. In GNOME, I can set some options for the keyboard layout ...
matj1's user avatar
  • 61
0 votes
0 answers
74 views

Switch two Keys "Backtick" with "<" in keyboard layout

This is a follow up of Where should `setxkbmap us_programmer` go to make it persistent? which worked: So I wanted to simple remap the two keys, but was not sure if the <KPAD> is the right abbrev?...
Gabriel's user avatar
  • 195
0 votes
0 answers
73 views

Advanced Keyboard Settings not persistent across Logins

In a fresh Kubuntu 23.04 install, I have set the compose key to be on CapsLock. After every login, I have to open the Keyboard Advanced properties to set it again. Actually the settings display the ...
Max N's user avatar
  • 204
1 vote
1 answer
419 views

Change default keyboard layout for virtual terminal

I use customized keyboard layout, which was set to default in UI gnome settings. It works well in gnome. However, when I open a new virtual termnial (Ctrl+Shift+F4 orCtrl+Shift+F5 ) It does not use my ...
n0tis's user avatar
  • 227
1 vote
0 answers
39 views

(x)Ubuntu : How Can I revert 2 keyboard keys on my laptop ? Or having same function for 2 different keys?

I'm using a Lenovo P14s laptop and I want to the "FN" key (with is as bottom left corner) acts same as "Ctrl" key. How can I do this ? So far I've tried to map FN on Ctrl key like ...
clement-D's user avatar
2 votes
1 answer
448 views

These commands (setxkbmap and xcape) are in .profile but are not being executed on login

I have verified that .profile is executed on login. However, commands involving setxkbap (e.g. setxkbmap -option ctrl:swapcaps) and xcape (e.g. xcape -e 'Control_L=Escape') seem to be ignored. Since ...
Rosa's user avatar
  • 41
1 vote
1 answer
108 views

Need help converting Xmodmap to XKB

I've been using this .Xmodmap for years but now I'm switching to Wayland and I need to replace it: !remove Lock = Caps_Lock keycode 66 = Mode_switch keycode 108 = Mode_switch keycode 26 = e E ...
ojn06031's user avatar
0 votes
0 answers
13 views

Why is Yiddish keyboard layout not shipped with Ubuntu? [duplicate]

Yiddish is a Germanic language written with a modified Hebrew alphabet. There is a keyboard layout specifically for it https://github.com/nevillepark/yiddish-keys-linux - which requires a skill to ...
Eugene Uvin's user avatar
0 votes
1 answer
124 views

Where should `setxkbmap us_programmer` go to make it persistent?

Where should my custom setxkbmap us_programmer goto to make it persistent when I log into Ubuntu graphically and also from SSH?
Gabriel's user avatar
  • 195
4 votes
1 answer
913 views

Use the EurKEY keyboard layout

I want to used the EurKEY custom keyboard layout on my freshly installed Ubuntu. I followed their installation instruction and downloaded and installed the .deb package manually. However when I run ...
Andy's user avatar
  • 43
1 vote
1 answer
2k views

setxkbmap with alt-shift-toggle option for >1 keyboard layout where layout has name with > 1 word

I am currently trying to set up my system to use two keyboard layouts and switch between with alt_shift. From this question, I obtained the following command: setxkbmap -option grp:switch,grp:...
Benyamin's user avatar
  • 113
1 vote
1 answer
506 views

Some xkb variants missing from Gnome Settings in Ubuntu 22.04

I've been trying to get the Swedish nodeadkeys layout to work on Ubuntu 22.04 (Wayland). With X11 it's easy: setxkbmap -variant nodeadkeys se On Wayland however, this doesn't work. Going to the Gnome ...
Sebastian N's user avatar
2 votes
2 answers
1k views

/etc/default/keyboard ignored?

I'm on Ubuntu 22.04.1 (jammy) LTS. My ultimate goal is to have the following keyboard layout configuration: U.S. international (with AltGr dead keys) and Russian keyboard layouts; switching between ...
Ainar-G's user avatar
  • 211
2 votes
1 answer
1k views

Keyboard Swap Keys - Mac Layout

I have Ubuntu 22.04 installed and I am using an Apple UK keyboard layout. Everything works fine except for the `/~ key (directly right of the left shift), which is swapped with the §/± key (right ...
Carol Eisen's user avatar
2 votes
0 answers
309 views

Reloading keyboard layout after editing XKB symbols in Waylay on Ubuntu 20.04

I'm creating a custom layout, currently experimenting by editing /usr/share/X11/xkb/symbols/us Logging out and logging in reloads the keyboard. But Is there anyway to reload keyboard layouts without ...
Senthil Seveelavanan's user avatar
1 vote
0 answers
141 views

using multimedia-like key in xkb layout

If I want to redefine say R key, I use: key <AD04> { [ r, R, Page_Up, registered ]}; corresponding xev output for that key is: KeyPress event, serial 35, synthetic ...
Martin Mucha's user avatar
4 votes
0 answers
1k views

Use xkbset on Ubuntu 22.04 (Wayland Display Server)

I use sticky keys due to accessibility issues. One problem with the sticky keys accessibility setting on Ubuntu is "latchlock" behavior. Where a modifier pressed twice will be locked -...
gatoWololo's user avatar
0 votes
0 answers
108 views

Disabling Caps Lock doesn't work: still results in 0x2 state (running in VMware)

I am running an Ubuntu 21.10 guest in VMware, with a Windows 11 host. I would like to disable all Caps Lock functionality, and use the key as Meta_R. I've tried disabling it with xmodmap -e "...
xoa991x's user avatar
2 votes
0 answers
1k views

X11 / xkb: Custom Keyboard Layout -- "Error loading new keyboard description"

My machine: Xubuntu 20.04.3 LTS, XFCE 4.14, X.org 1.20.13 I am attempting to create a custom keyboard layout for the Arabic-script (kona yéziq) version of the Uyghur language. I believe I have ...
Rammschnev's user avatar
0 votes
2 answers
803 views

How to remap escape, tilde, and quotes on 21.10 with xkb options

I would like to swap the backtick/tilde key with escape and also single and double quotes by creating new options to be picked up. I already have caps lock and left control swapped as well as parens ...
Jason Nordwick's user avatar
3 votes
0 answers
970 views

xkb options overriding special keyboard layout

I have made a special Spanish keyboard layout that includes the German ß on AltGr-s, and the Scandinavian æ Æ (ae, AE), ø Ø (oe, OE), and å Å (aring, Aring), on AltGr-e, AltGr-E, AltGr-o, AltGr-O, ...
ElToro1966's user avatar
1 vote
1 answer
501 views

xkbset setting does not persist

I use keys on my keyboard for mouse clicks. For this to work I need to invoke xkbset m This works for a few minutes, then for some reason this setting gets reverted! I have resorted to leaving a ...
aioobe's user avatar
  • 1,576
7 votes
0 answers
663 views

Custom xkb layout on Ubuntu 21.04 Wayland

I have googled various guides on creating a custom keyboard layout using xkb. I want the left alt key to send a control key event. After lots of trial and error I came up with this (based on Estonian ...
dfv's user avatar
  • 71
2 votes
1 answer
850 views

I swapped Escape and Caps Lock with xkb symbols, but now the Caps Lock key activates both Escape and Caps Lock

I am working on my own custom keyboard layout and part of that is swapping the Caps Lock and escape keys. The layout appears to work quite well all other keys appear to be remapped correctly, except ...
codedcosmos's user avatar
0 votes
1 answer
2k views

setxkbmap no longer works as expected

I'm on Ubuntu 20.04.3 LTS, gnome 3.36.8. Part of my problem may be this: Keyboard Map is Changed Randomly (the dconf fix didn't work). Basically, when a new device is connected, the keyboard map seems ...
bjohas's user avatar
  • 523
0 votes
1 answer
46 views

Strange login screen freeze after trying to make changes to xkb

I've been using my chromebook with Ubuntu 21.04 for a few days with no incident. Now, it freezes when I attempt to log in. The only probable cause I can identify is what I was doing immediately before,...
Olivier Audet's user avatar
0 votes
0 answers
48 views

custom keyboard

I have created a custom Dvorak keyboard layout that I have used successfully under Ubuntu 16.04. Now I am trying to get it to work with Ubuntu 20.04. Here are my steps: I copy my layout file to /usr/...
James Newton's user avatar
  • 1,093
-1 votes
1 answer
664 views

How to permanently switch "backspace" and "Enter" keys?

i want to swap the functions of Enter key and backspace . i know the key code of both of them "Enter" = 117; "Backspace" = 101; possible ways is by using the dconf editor by ...
Tarik Waleed's user avatar
1 vote
1 answer
257 views

xkbcomp at startup in kde

I'm using kubuntu 20.04 and want to run xkbcomp ~/.Xkeymap $DISPLAY at startup to load a custom keymap. To this end I created a script with the content #!/bin/bash touch ~/test xkbcomp ~/.Xkeymap $...
user313032's user avatar
2 votes
1 answer
1k views

Remap "special" Keys on HP keyboard

I bought a new HP notebook (elitebook) with an extremely awful keyboard functionality. For example, I don't have an insert key, but I have a phone-dial and phone-hangup key (right upper corner): The ...
JJ Abrams's user avatar
  • 275
-1 votes
1 answer
133 views

Problem on deactivating caps lock

I'm new here, so I'm sorry if I've done anything wrong. So... I've noticed that my caps lock only deactivate when i release the key. I can activate it just by pressing the key, but to turn it off, I ...
Gabriel Dias's user avatar
1 vote
0 answers
262 views

Alias for keycodes in XKB evdev file

I want to remap "i" to the home button without losing "i" on the alphabet section of the keyboard. I tried alias = ; but it didn't seem to do anything. I've tried Autokey but it ...
giallogreg's user avatar
2 votes
0 answers
98 views

Load hardware specific keyboard config automatically

I have a special keyboard, with which I want to write with a configuration that is not the same as when writing with another keyboard (e.g. the laptop's keyboard). I want to keep both configurations ...
Gauthier's user avatar
  • 2,717
0 votes
0 answers
211 views

Adjusted /usr/share/X11/xkb/symbols/ir file

I want to config my /usr/share/X11/xkb/symbols/ir file to be like Windows keyboard layout. Is there a provided config for it? This is an example for my request, but it's a 'like Mac keyboard layout' ...
Reza Hosseinzadeh's user avatar
2 votes
1 answer
1k views

xkb remap does not work for some keys [duplicate]

I am trying to remap some keys with xkb. In the below extract, I've changed two lines to configure my keymap. The one for space workes just fine. But both of the Delete I mapped on BKSP does not work, ...
katexochen's user avatar
2 votes
1 answer
388 views

Swapping CapsLock key for hyper

i tried doing this by running a .Xmodmap script at startup but it just doesn't work, I've seen a lot of threads with people (maybe) fixing it, but i just can't! I've also seen some threads about using ...
Anonimeishon's user avatar
0 votes
1 answer
348 views

Puzzling phenomena in keymap with xkbcomp

To achieve a low-level swap of left ctrl key and capsLock key, I used xkbcomp as follows: First get the present keyboard layout: xkbcomp $DISPLAY output.xkb Then I change the 2 lines in output.xkb ...
Simon's user avatar
  • 419
1 vote
1 answer
563 views

How to make a custom xkb layout with combine unicode symbols?

I'm trying to do a custom layout for a language call Pilaga. I need to make this symbol 'b̶' that I make from combining this unicode char U+0062 U+0336 Now I having trouble trying to add this symbol ...
Mattii's user avatar
  • 13
1 vote
2 answers
1k views

xkb and Ubuntu 20.10

I like to customize my keyboard layout and I usually use a modified /usr/share/X11/xkb/symbols/us file to get what I want. Since Ubuntu 20.04 and now with 20.10 my modifications are not taken into ...
Hans's user avatar
  • 31
1 vote
1 answer
1k views

key map: combined keys to combined keys

In short, I want to map Ctrl+H/L to Ctrl+Left/Right without autokey, and xbindkeys+xdotool/xvkbd does not work. Details are as follows: I am now using autokey to achieve the mapping, it works very ...
Simon's user avatar
  • 419
1 vote
2 answers
355 views

Gnome does not recognize shortcuts with Level_3 key symbols

I have modified my keyboard layout in the following way using xkb: CapsLock key has been reassigned to act as Control_L. replace key <CAPS> { [ Control_L ] }; modifier_map Control { <CAPS&...
vinam's user avatar
  • 11
2 votes
1 answer
157 views

Mapping Super+Left to Home in xkb config file

I have following file in /usr/share/X11/xkb/symbols/uscz and I want to remap Super+Left combination to Home button and Super+Right to End. Is it possible? default partial alphanumeric_keys ...
krtek's user avatar
  • 21
3 votes
0 answers
800 views

Assigning shortcuts to AltGr when it is set as ISO_Level3_Shift

I am using a custom keyboard layout. I duplicated the "intl" from /usr/share/X11/xkb/symbols/us within the same file, called it "myintl" and altered the 3rd and 4th level of some ...
SofaGuy's user avatar
  • 51
1 vote
0 answers
299 views

Keyboard shortcuts do not honor selected input source in some apps

I own a laptop with a French azerty keyboard, when I installed Ubuntu, I chose to use an azerty layout but otherwise setup the whole system in english. I then tried to plug my external keyboard which ...
Jean's user avatar
  • 111