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
2
votes
0answers
13 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/...
1
vote
1answer
54 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 ...
0
votes
0answers
15 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 ...
0
votes
0answers
7 views

XKB Key “I172” has delayed the “print buffer” for about one second

I recently moved to Ubuntu and tried to setup my custom keyboard layout. Everything works fine part from one thing: I remapped the key "I172" (Play/Pause on my keyboard) to be a modifier (Caps Lock). ...
0
votes
0answers
27 views

Unable to swap Escape and CapsLock in my custom keyboard layout - wayland

I have my custom keyboard layout (hosted on Gitlab). It works well on my other machines (Arch with X and Wayland). When I installed in on my Ubuntu 18.04.4 LTS Capslock key was still Capslock (I have ...
1
vote
1answer
62 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: ...
0
votes
0answers
42 views

Remapping keys has gone wrong (setxkbmap and evdev file issue)

I tried using setxkbmap to map my menu key to act as a caps lock. It did not go well The caps lock key does nothing The backspace key now also acts as a caps lock. Also, it doesn't auto repeat ...
0
votes
1answer
16 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
53 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 > ...
1
vote
0answers
65 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 ...
3
votes
1answer
72 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) ...
0
votes
0answers
32 views

X keyboard extension (XKB) LockGroup function does not work on Ubuntu 18.04.3

I am trying to set up Group2 for my keyboard but cannot figure out what went wrong with below setup. It seems LockGroup does not switch to the next group. I tried LatchGroup and it works correctly. I ...
1
vote
2answers
726 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 ...
1
vote
2answers
293 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/...
1
vote
0answers
63 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 ...
0
votes
0answers
374 views

Control End/Insert Key behaviour with FnLk without xmodmap

I am trying to achieve the following on my Lenovo x240 (but it probably applies to many other makes and models): Function keys F1 to F12 act as normal (not to control volume, brightness etc) End key ...
0
votes
1answer
71 views

Setting gnome window-switching to Hyper doesn't work

Applying these gsettings doesn't work: org.gnome.desktop.wm.keybindings switch-windows ['<Hyper>Tab'] org.gnome.desktop.wm.keybindings switch-windows-backward ['<Hyper><Shift>Tab'] ...
0
votes
0answers
178 views

The xkbmap below works with setxkbmap, but not in GUI - why?

When I take this xkbd map partial alphanumeric_keys modifier_keys xkb_symbols "basic" { include "us(basic)" name[Group1]= "enHT (English, US, Hyper-Terminal)"; key <CAPS> { [ ...
0
votes
0answers
81 views

Why set setxkbdmap work differently from the GUI keyboard map switcher (super-space)?

This is a follow-up to an earlier question: Reassigning modifier keys with xkb. The keyboard map given in that question works with setxkbmap, but when the map is selected through the GUI (having added ...
1
vote
1answer
97 views

Prevent system from augmenting my custom XKB configuration

Since Ubuntu 18.04 (my previous version was 16.04) I have noticed quirks in my earlier working nicely custom XKB configuration. I set my configuration by running xkbcomp -I$HOME/.config/xkb/ $HOME/...
0
votes
1answer
726 views

Reassigning modifier keys with xkb

does somebody have good instructions for how the modifier keys can be changed in xkb (via placing the modified xkb file in /usr/share/X11/xkb). To explain: I'm able to make the layout I want in ...
0
votes
0answers
263 views

Hacks to get around not being able to remap Fn key

I just got a Razer Blade laptop whose Ctrl key is in the far bottom-left corner of the keyboard with a Fn key just to the right of it. Coming from using Macbooks and Thinkpads, where the position of ...
0
votes
0answers
41 views

Why two unicode-characters are not allowed in xkb?

I wonder why a sequence of Unicode-characters is not allowed on one key-press in xkb. eg. I use Indian keyboard for typing in Devanagari. This keyboard is based on the inscript keyboard layout. In ...
0
votes
1answer
114 views

“º” and “<” swapped on spanish Apple Aluminum keyboard - Ubuntu 18.04

I have a spanish (european) Apple Aluminum keyboard hooked to my ubuntu'd Mac Mini, it works fine but the keys for < and º/ª are swapped, and they remain swapped, even though my keyboard seems to ...
1
vote
0answers
114 views

Map backtick key to Esc and tilde with xkb Ubuntu 18.04 even on applications like chrome, slack etc

I'm trying to map backtick key to Esc while shift-backtick as tilde unchanged. Here's what I've done. key <TLDE> { [Escape, asciitilde] }; // in X11/xkb/symbols/us It works all fine in ...
0
votes
0answers
99 views

“Japanese (Mozc)” does not show up as input method after clearing /var/lib/xkb

To get Japanese input, I installed Japanese language support, I installed IBUS-MOZC and then I could go into Settings/Region & Language/Input Source and "Japanese (Mozc)" popped up. Everything was ...
1
vote
1answer
35 views

How to handle multiple keyboards compose key?

I have a laptop keyboard with right AltGr, PrintSc and Right CTRL and a MacOS X one with right Super and right Alt. When using one, I'd like the right ctrl to be the compose key and when using the ...
1
vote
1answer
35 views

User xkb changes not permanent

So, base problem is I'm trying to invert my laptop's pgup/home and pgdn/end keys. Currently I have to use the function key to to access the home/end functionalities and I'd prefer it the other way. ...
0
votes
1answer
47 views

Own keyboard layouts

Here i have asked question, how to edit keyboard layouts and find working solution for Ubuntus 12.04 - 16.04 But now i got problems with Ubuntu 18.04. After latest updates there was reconfiguration or ...
1
vote
0answers
159 views

Remapping keys with xkb in Ubuntu 18.04

My new laptop does not have right Control key. Instead it comes with useless more-less key. I tried to remap the key using xkb. In /usr/share/X11/xkb/symbols/pc there is a following line key <...
0
votes
0answers
23 views

Remapping Alt to Ctrl (using xkb) [duplicate]

I've tried to remap both Alt keys to Ctrl using xkb (Ubuntu 18.04) but I failed. How can I do it correctly?
1
vote
0answers
72 views

Remapping the keyboad

Ubuntu 18.04 LTE I am trying to Remap the Right alt key with the 'down' key and the Backslash key with the the 'right' key. I've modified the 'pc' file in the xkb directory, restarted, but I did not ...
4
votes
2answers
866 views

How to Remap NUMLOCK Key to be DELETE?

Because of the layout of my keyboard, I want to have numlock permanently pressed and use the numlock key as a delete key. I can't seem to get this to work. Any ideas on how to do this would be ...
1
vote
1answer
33 views

Adding ligated key in an XKB Keyboard

How to add a ligated key in an XKB keyboard? Ligated characters are common in most languages such as Bengali or Devanagari. I want to produce two or more characters by one keystroke. To do this, what ...
0
votes
1answer
696 views

Remapped CapsLock key is ignored (set by XKBOPTIONS in /etc/default/keyboard)

I tried to follow https://www.emacswiki.org/emacs/MovingTheCtrlKey which says this can be done this way: On Debian and derivatives (Ubuntu, Mint etc.) To make Caps Lock another Ctrl key, edit the ...
0
votes
1answer
115 views

keys virtually “stuck” after remapping

/situation I'm on this problem since several days, and to the point of considering switching back to Windows (which would make me sad, as i haven't used it since... 2010, iirc - but WoW Classic is ...
0
votes
0answers
110 views

Map key to a script in Ubuntu 18.04.1

I'm on Ubuntu 18.04.1 Bionic Beaver using an HP Pavilion laptop. My laptop has a key for toggling airplane mode. Using xev, I found out that it has keycode 255. I've saved the following code at /bin/...
2
votes
0answers
33 views

Mapping XKB to custom shell command

I'm running a crouton Gnome instance on a Pixelbook, and my brightness keys don't work in gnome. I have no /etc/default/grub file to speak of, so all those options aren't available to me. I'm thinking ...
1
vote
1answer
625 views

How to map the Caps Lock key to Left Alt in Ubuntu +18?

I've been looking for a way to solve the aforementioned problem. I tried xmodmap -e "keycode 66 = Alt_L" but apparently the result is that the CapsLock key gets mapped to Left-SHIFT, which is not ...
2
votes
0answers
187 views

rootless + permanent way to change keyboard layout in GNOME 3.28.2 (Ubuntu 18.04)

I would like to find a way to apply two minimal changes to my current keyboard layout: · change the behavior of Fn+P · change the behavior of AltGr+ùg While I was successful in doing it using two ...
0
votes
1answer
97 views

Caps Lock as a Control (Ctrl) key though the shell command

I'm using an Awesome WM, so the default settings provider doesn't work for me. Is there a simple shell way to make the Caps Lock key send a Ctrl key code instead?
0
votes
1answer
270 views

How to invoke xkbcomp? [closed]

When I'm trying to run this xcbcomp $DISPLAY original.xkb I'm getting this: No command 'xcbcomp' found, did you mean: Command 'xkbcomp' from package 'x11-xkb-utils' (main) xcbcomp: command not found ...
1
vote
0answers
55 views

Map Caps Lock to delete whole word

I used dconf-editor to map caps lock to backspace, which works fine. i.e. ['caps:backspace'] But I'd like to map caps lock to ctrl_backspace, so that it deletes the whole word when pressed. Is this ...
2
votes
0answers
303 views

Getting XKB remaped arrow keys (ISO_Level3_Shift + HJKL) to work properly with the WIN key

I've seen some posts on how to remap arrow keys with XKB, but although they work mostly fine, no method so far (except using different groups, which becomes an hassle to manage with Gnome keyboard-...
5
votes
0answers
537 views

Using xkb to map a key combination to another

How can I use xkb to map a key combination like Super + Shift + C to another combination like Ctrl + Shift + C? The question is about doing so with xkb. I know about autokey or xmodmap but I want to ...
0
votes
1answer
146 views

Mapping Left Control to Hyper using xkb

How can I map left Ctrl to behave as hyper (left hyper) using xkb? Look at this in keycodes/evdev: // Fake keycodes for virtual keys <LVL3> = 92; <MDSW> = 203; <ALT> = 204; &...
3
votes
2answers
808 views

Ubuntu 18.04 input slow when Portuguese (Brazil) layout among keyboard input sources

My system freezes for 1-2 seconds every time I need to input a password, most of the times when I start typing on the a new window or dash input and every time when I turn volume up/down through the ...
4
votes
0answers
180 views

How to stop Gnome from overriding XKB layout

I've created an udev rule to set the layout of an USB keyboard: ACTION=="add", ATTRS{idVendor}=="0e6a", ATTRS{idProduct}=="030c", ENV{XKBMODEL}="pc105", ENV{XKBLAYOUT}="us", ENV{XKBVARIANT}="dvorak", ...
2
votes
0answers
615 views

How can we make setxkbmap and xmodmap work together?

On Lubuntu 18.04, I found the following commands will cancel each other $ setxkbmap -option keypad:pointerkeys $ xmodmap ~/.Xmodmap I would like to be able to fully control my cursor using ...