People who code: we want your input. Take the 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
1
vote
1answer
23 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 $...
1
vote
1answer
29 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
0answers
20 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 ...
0
votes
0answers
21 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
0answers
25 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
0answers
59 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' ...
1
vote
1answer
99 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, ...
1
vote
1answer
96 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
0answers
19 views

Switching caps lock and escape doesn't survive suspend on external keyboard [duplicate]

On Ubuntu 20.04, I use the gnome tweaks tool to switch caps and escape for improved efficiency with vim-like editing. I am running on a laptop with external keyboard connected. What bugs me is that ...
0
votes
0answers
30 views

VNC viewer does not respect xkb keymap

I want to use ctrl+j/k as left/right key over X11, so I write the following in .xkb source file type "newType" { modifiers= Control; map[Control]= Level2; level_name[Level1]= &...
0
votes
1answer
59 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
1answer
78 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
1answer
239 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 ...
0
votes
1answer
81 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
1answer
52 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&...
1
vote
0answers
31 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 ...
1
vote
0answers
50 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
0answers
171 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
0answers
50 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 ...
2
votes
1answer
851 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
1answer
376 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
1answer
308 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
1answer
84 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
1answer
425 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
0answers
18 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
272 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 ...
1
vote
0answers
77 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 ...
1
vote
1answer
630 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
1answer
61 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 ...
5
votes
2answers
1k 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 ...
2
votes
0answers
92 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
106 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
1answer
139 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
94 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) ...
2
votes
2answers
2k 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
3answers
812 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
81 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
1answer
108 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
164 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
157 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/...
1
vote
1answer
2k 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
59 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 ...
1
vote
1answer
360 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
300 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
259 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
76 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
55 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
49 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
331 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 <...
1
vote
0answers
78 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 ...