Questions tagged [xkb]
X KeyBoard extension, or XKB, defines the way keyboards codes are handled in X, and provides access to internal translation tables.
191
questions
1
vote
0
answers
17
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 ...
2
votes
1
answer
40
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 ...
1
vote
1
answer
41
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 ...
0
votes
0
answers
12
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 ...
0
votes
1
answer
49
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?
0
votes
1
answer
223
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 ...
1
vote
1
answer
337
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:...
1
vote
1
answer
302
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 ...
0
votes
0
answers
12
views
Is there a way to map a key to reset level on xkb?
I have a custom keyboard layout with multiple levels and sometimes I have no idea what level I am in which is a pain with passwords and the terminal.
Is there a keysym or mod that could be used to ...
0
votes
0
answers
84
views
Can't remap <SPCE> on ubuntu 22.04 with xkb, wayland
I want to use spacebar as a modifier key (altgr).
I am trying to map the mod5 to my spacebar but for some reason nothing I have tried seems to work. The code below does NOT work for the space bar (<...
1
vote
1
answer
611
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 ...
2
votes
1
answer
764
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 ...
1
vote
0
answers
116
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 ...
0
votes
0
answers
229
views
Remapped Shift+Backspace to Delete works only for some applications
By default Linux on a Mac now has Fn+Backspace=Delete, but on a Macbook Air the keys Fn and Backspace are too far from each other and Delete can only be done with two hands, which is sometimes ...
1
vote
0
answers
83
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 ...
2
votes
0
answers
724
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
-...
0
votes
0
answers
73
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 "...
2
votes
0
answers
711
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 ...
0
votes
2
answers
441
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 ...
3
votes
0
answers
716
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, ...
0
votes
1
answer
286
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 ...
7
votes
0
answers
487
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 ...
1
vote
1
answer
556
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
44
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,...
0
votes
0
answers
46
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/...
0
votes
1
answer
440
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 ...
1
vote
1
answer
215
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 $...
2
votes
1
answer
964
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 ...
0
votes
1
answer
88
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 ...
1
vote
0
answers
221
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 ...
2
votes
0
answers
73
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 ...
0
votes
0
answers
159
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' ...
2
votes
1
answer
999
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, ...
2
votes
1
answer
301
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 ...
0
votes
1
answer
257
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 ...
1
vote
1
answer
403
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 ...
0
votes
2
answers
875
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 ...
1
vote
1
answer
794
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 ...
1
vote
2
answers
269
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&...
2
votes
1
answer
109
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
...
3
votes
0
answers
510
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 ...
1
vote
0
answers
274
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 ...
1
vote
0
answers
99
views
XKB - Certain CTRL + SHIFT + Key combinations do not work when using CAPS LOCK as CTRL
Kubuntu 20.04
I created a new keyboard keymap using xkb and remapped the caps lock key as left control, however, a few keyboard combinations such as ctrl+shift+c and ctrl+shift+s do not work (have no ...
3
votes
1
answer
3k
views
Remap a key in Ubuntu 20.04, Wayland
I think I\ve looked all over the whole internet for an answer now, but I can\t find it.
I have a keyboard where the tilde key should be mapped to the bar/pipe key. Before Wayland I used this config
➜ ...
1
vote
1
answer
962
views
Cannot find a way to load a custom xkb keymap on login in Kubuntu 20.04
I have made a custom xkb keymap that I am happy with, and I can load it with no issues using the following script
xkbcomp -I$HOME/.xkb ~/.xkb/keymap/mykeys $DISPLAY
and it works the way I want when I ...
3
votes
1
answer
966
views
adding/changing xkb Symbols with altGr
I am running Ubuntu MATE 20.04 and read through much theory around xkb and I managed for example to change altGr-, from · to (a bigger, bolder) •:
$> testing keys... öäü…·
$> cp de de_frank (...
0
votes
1
answer
290
views
Is it possible to configure dead key in XKB keyboard?
Unlike Compose key, I want to set any character as a dead key. It generates a third character after pressing a specific key after the dead key.
This dead key feature is available in ibus-m17n, but I ...
0
votes
1
answer
915
views
Modifying keyboard layout in ubuntu 20
My hp notebook has a german keyboard that seems to be a relabled version of a us keyboard. Because of this it lacks the <>| key that is usually located right of l-shift on german keyboards.
This ...
2
votes
0
answers
42
views
Cannot boot Ubuntu after making changes to xkb files
So my keyboard's Ctrl button stopped working, I attempted to make edits to xkbd files as in this thread How to swap ctrl and alt keys in ubuntu 16.04?
Specifically, to the /usr/share/X11/xkb/symbols/...