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
1 vote
0 answers
59 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 ...
user avatar
0 votes
0 answers
148 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 -...
user avatar
0 votes
0 answers
36 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 "...
user avatar
1 vote
0 answers
135 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 ...
user avatar
0 votes
2 answers
111 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 ...
user avatar
  • 123
0 votes
0 answers
56 views

Enabling “extra” keyboard layouts from base.extras.xml & evdev.extras.xml under XFCE

In addition to the keyboard layouts which by default can be selected in the xfce4-keyboard-settings app, there are many listed in /usr/share/X11/xkb/rules/base.extras.xml and /usr/share/X11/xkb/rules/...
user avatar
2 votes
0 answers
282 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, ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 1,436
3 votes
0 answers
260 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 ...
user avatar
  • 31
1 vote
1 answer
295 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 ...
user avatar
0 votes
1 answer
307 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 ...
user avatar
  • 385
0 votes
1 answer
41 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,...
user avatar
0 votes
0 answers
37 views

The right key of my laptop keyboard has malfunctioned. I want to disable it. xmodmap is deprecated, help needed in writing a xkb script

I am using an Ubuntu 20.04.02 machine. I was using xmodmap to disable the right key, and make my pgdn key as my right key. Below is the code for that. 117 is the keycode for PgDn, and 114 is keycode ...
user avatar
0 votes
0 answers
44 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/...
user avatar
0 votes
1 answer
219 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 ...
user avatar
1 vote
1 answer
136 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 $...
user avatar
2 votes
1 answer
447 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 ...
user avatar
  • 265
0 votes
1 answer
52 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 ...
user avatar
1 vote
0 answers
120 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 ...
user avatar
2 votes
0 answers
46 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 ...
user avatar
  • 2,511
0 votes
0 answers
118 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' ...
user avatar
2 votes
1 answer
546 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, ...
user avatar
2 votes
1 answer
208 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 ...
user avatar
0 votes
1 answer
174 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 ...
user avatar
  • 349
1 vote
1 answer
222 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 ...
user avatar
  • 13
0 votes
2 answers
510 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 ...
user avatar
  • 21
0 votes
1 answer
353 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 ...
user avatar
  • 349
1 vote
2 answers
176 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&...
user avatar
  • 11
2 votes
1 answer
72 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 ...
user avatar
  • 21
3 votes
0 answers
279 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 ...
user avatar
  • 51
1 vote
0 answers
242 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 ...
user avatar
  • 111
1 vote
0 answers
74 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 ...
user avatar
  • 21
3 votes
1 answer
2k 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 ➜ ...
user avatar
1 vote
1 answer
697 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 ...
user avatar
  • 111
3 votes
1 answer
647 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 (...
user avatar
  • 1,059
0 votes
1 answer
178 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 ...
user avatar
  • 75
0 votes
1 answer
771 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 ...
user avatar
2 votes
0 answers
35 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/...
user avatar
  • 21
1 vote
1 answer
486 views

X11 MappingNotify does not fire as anticipated from X11 documentation

When developing an accessibility application, I encounter a behavior deferring from what should happen according to all Xlib documentation sets I could so far put my hands on: The event MappingNotify ...
user avatar
  • 2,144
1 vote
0 answers
114 views

Custom num lock keypad layout

I, like many people, keep the num lock key enabled all the time. However, I would like to create a custom XKB keyboard layout that maps the keypad with num lock off to what would normally be the ...
user avatar
  • 11
2 votes
1 answer
986 views

xkbcommon: ERROR: xkb_x11_keymap_new_from_device: illegal device ID: -1

When trying to start x-window-manager (which links to /usr/bin/mutter, version 3.28.4-0ubuntu18.04.2) in xstartup in a vnc4server session, I get this error: xkbcommon: ERROR: ...
user avatar
0 votes
1 answer
141 views

Keyboard model for Bilingual Dell laptop

My keyboard model doesn't match the one used by the system and thus the key above the enter key doesn't work as it should. This happened after I had to "reset" my ~/.config folder to solve another ...
user avatar
  • 14.5k
5 votes
2 answers
2k views

How can I remap my keyboard to create a lefthand numpad?

Like many smaller machines, my laptop's keyboard is missing a dedicated numpad. I can generally type without looking at my keyboard, but I am unable to blindly type numbers with the number row. That's ...
user avatar
2 votes
0 answers
190 views

making mousekeys settings permanent

I figured out how to configure mousekeys with xkb and xkbset use the command command xkbset ma 300 3 1000 1 6000. However, the settings don't persist when I reboot. How can I make these settings ...
user avatar
0 votes
0 answers
138 views

The keyboard layouts carpalx and carpalx-full are in the X Keyboard Configuration Database but not GNOME Settings

I want to use the keyboard layout carpalx-full. It is defined in the file /usr/share/X11/xkb/symbols/us.* However, when I go to Settings > Language and Region > Input Sources > Add an Input Source > ...
user avatar
1 vote
1 answer
289 views

How to use PrtSc key as modifier (AltGr) key?

I like to set the AltGr key to Ctrl so I can have the Ctrl key under my right thumb. Also, I set the key at the right of AltGr to AltGr, so I can still use it to insert tildes and other Spanish and ...
user avatar
  • 11
3 votes
1 answer
162 views

Remap two keys for one application only

I am using NoMachine to connect remotely to a Mac. Unforunately NoMachine doesn't provide a way to map keys on it's own. While I am using NoMachine I'd like to swap my Control and 'Meta' (Windows) ...
user avatar
3 votes
2 answers
4k views

How to disable multimedia keys entirely? 18.04 LTS

I have a fresh vanilla 18.04 LTS install, using gnome-shell 3.28.4. I'm using a wired Apple aluminum keyboard: I would like to use the top-row F-keys as keyboard shortcuts in various end-user ...
user avatar
1 vote
3 answers
1k views

Make keyboard right alt ctrl work as mouse left right click buttons

I am using ubuntu 19.04. in windows i have used autohotkey to make keyboard right alt and ctrl behave as mouse left and right click. But i am unable to do this in ubuntu. I have tried editting /usr/...
user avatar
1 vote
0 answers
108 views

How is it possible to change keyboard layout when its default layout is not English?

I've mistakenly changed the default keyboard layout in /etc/default/keyboard to persian. Also input source switching shortcuts are disabled and there is no options in /etc/default/keyboard for ...
user avatar
  • 111