Questions tagged [xkb]

xkb is the abbreviation for the X Keyboard Extension used to describe and configure differ keyboard layouts, etc. under X11.

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

Make xkb produce two symbols on one key press (e.g. make `ctrl`+`+` & `ctrl`+`=` produce same (combined) effect to get rid of `Shift` for zooming in)

Some apps use ctrl++ and some ctrl+= to zoom in. Only some allow to customize. If all used same, I would just remap the keyboard not to use Shift. Can I make apps receive signals that both ...
0
votes
2answers
47 views

How to create a new keyboard layout in the /usr/share/X11/xkb directory in Ubuntu?

In the /usr/share/X11/xkb/symbols directory there are various keyboard layouts listed. I made a copy of the /usr/share/X11/xkb/symbols/us file under the name /usr/share/X11/xkb/symbols/new_test_layout....
0
votes
1answer
11 views

RALT doesn't send Alt_R

I've tried remapping left Control key to left Alt key. in /usr/share/X11/xkb/keycodes/evdev by doing this: // <LALT> = 64; // <RCTL> = 105; // <LCTL> = 37; // <...
1
vote
0answers
33 views

Setting ALT + ARROWS LEFT,RIGHT to HOME,END in xkb

I'm trying for days to set the (left) ALT + arrows keys (left/right) keybindings in xkb. ALT + LEFT to HOME ALT + RIGHT to END These keybindings should work together with SHIFT as well. I just ...
0
votes
0answers
15 views

Does ~/.Xmodmap replace the presets completely?

I've successfully switched to dedicated settings for my special keyboard in the keyboard settings panel of Xfce. However a few buttons are missing. I was able to get the keycodes for them using ...
0
votes
0answers
25 views

Emulating SOCD cleaner functionality with xkb

I'm trying to emulate the functionality of standard hitbox SOCD cleaners with normal keyboard input. Specifically, I need it to: Space only: KeyPress Space s only: KeyPress s Holding s and Pressing ...
2
votes
0answers
23 views

Changed keyboard map reverts back after short time

I use: xkbcomp "$DISPLAY" - | # Menu key = mouse button ...
2
votes
2answers
48 views

Sun Type 7 Keyboard + KDE shortcuts: Why does the control center ignore most of the function keys on the left edge?

I've recently equipped my OpenSuSE 15.2 with KDE 5 with a Sun Type 7 keyboard and now would like to use the function keys on its left edge for a variety of system-wide shortcuts. The only issue is ...
0
votes
0answers
34 views

how to set keyboard layout from custom file, without root permissions?

I know that there is a lot of questions on stack exchange around this subject, but none of the answer solved my use case. This is not a duplicate ! I have created a custom layout file (~/beprog). It ...
0
votes
1answer
44 views

How do I reset the caps lock key after remapping it to ctrl while caps lock was enabled?

I used the following command to remap my caps lock key: setxkbmap -layout us -option ctrl:nocaps How do I reset my keyboard to the default settings?
0
votes
0answers
65 views

How to swap the XF86MonBrightnessUp and F2 key using a custom XKB layout?

I want to swap "two" keys, the XF86MonBrightnessUp ("brightness up") and the F2 keys, using an xkb layout. The keys are both under the same button, "F2". If the keyboard ...
2
votes
1answer
65 views

Setting CAPS_LOCK + arrows to Home, PgUp, PgDown, End in xkb

I'm trying to set some CapsLock + arrows keybindings in xkb Using ArchLinux, KDE, Xorg What I'm trying to achieve (wishful thinking) Ultimately, the perfect solution would be No modifier CapsLock as ...
1
vote
0answers
41 views

XKB: modifier when hold, dead key when tapped?

I discovered that one can use Compose files to output a keycode when a modifier is pressed and released "alone", which is handy (I though before that one had to compose at least two keys ...
0
votes
1answer
45 views

Custom XKB layout before login

I have made a custom keyboard layout with XKB, but when I type my password on the login screen, the system still uses a QWERTY layout, only after the login my customized layout is applied. Is it ...
0
votes
0answers
65 views

Map Escape to caps lock in vim not working in Fedora 34

I am new to Fedora and I have installed Fedora-34 couple of days ago. Well, when I used ubuntu, I mapped my Esc to CapsLk in vim using following lines in ~/.vimrc file au VimEnter * silent! !xmodmap -...
2
votes
3answers
109 views

XKB not recognizing my custom layout

I created a custom keyboard layout (the file is called “brc”) based on Colemak for my Lubuntu 18.04, and copied it to /usr/share/X11/xkb/symbols: default partial xkb_symbols "basic" { ...
1
vote
1answer
26 views

In my customized keyboard layout, how can I include individual key into capslock control scope? I don't want shiftlock

In my customized keyboard layout, I have these lines already: // row 1 (E) key <TLDE> { [ question, exclam, masculine, ordfeminine ] }; key <AE01> { ...
1
vote
0answers
38 views

Multimedia keys on a 101-key keyboard (ubuntu 20.04)

I'm trying to use function keys from an old 101-key keyboard (IBM model M). I've modified /usr/share/X11/xkb/symbols/pc file including this lines: key <FK09> { [ F9, XF86AudioPlay, F9, F9 ] }; ...
0
votes
0answers
24 views

How to assign several characters to one key-stroke in xkb?

We are using a custom written (by me) xkb Symbols file for a minority language. This has worked fine for over ten years and we roughly know how the system works. I am presently re-working the keyboard ...
1
vote
1answer
94 views

How to swap Left Alt with Right Alt

How to swap the keys and make Left Alt act like AltGr as well? I tried xmodmap with the following: clear mod1 clear mod5 keycode 108 = Alt_L Meta_L keycode 64 = Alt_R Meta_R add mod1 = ...
0
votes
1answer
32 views

Reassigning Right_Control from control modifier key to mod3 without using xmodmap

I am doing a task that is taking me longer than expected as xmodmap cannot be combined with other commands such as setxkbmap and so on. My goal is to change Right_Control key from been assigned on ...
0
votes
0answers
46 views

Use QMK instead of XKB?

Is it possible to totally ditch XKB and use QMK instead? That is, inside X or Wayland, totally remove XKB and use QMK? I know QMK is a microcontroller for hardware keyboards, so this seems complicated....
4
votes
0answers
88 views

How to map a sequence of keys to <dead_greek>?

I have mapped Insert to Multi_key (also known as Compose) so I can input ä or µ. I've used xmodmap -e 'keycode 118 = Multi_key' in my wm init script. Now, checking /usr/share/X11/locale/en_US.UTF-8/...
0
votes
1answer
60 views

xkb Can't find file "myswap" for symbols include error in systemd python job

I'm using Ubuntu 20.10 and python 2.7. I've got a bash script which overwrites default keyboard bindings and it always works when I execute it from terminal, here's the script. #!/bin/bash xkbcomp -...
-1
votes
1answer
355 views

How to map compose key to insert via setxkbmap?

I'm using US (non-international) layout. One way of typing üäöß is setting a compose key via: setxkbmap -layout us -option compose:ralt Unfortunately, this removes the normal "alt" ...
0
votes
1answer
67 views

Why does the X window system handle keyboard input?

When people discuss the X window system, they mostly focus on the display side, i.e. how it is a networked system that handles and coordinates the graphical output of different applications in the ...
0
votes
1answer
50 views

What is the difference between EIGHT_LEVEL_ALPHABETIC and EIGHT_LEVEL in xkb symbols files?

The title says it all. What is the difference between the two and when should I choose one over another when creating a custom eight level layout? For context, here is in an excerpt from partial ...
0
votes
1answer
68 views

Map from XKB key names to LDML ISO key names?

XKB names keyboard keys with names such as "TLDE" and "AB01" https://www.charvolant.org/doug/xkb/html/node5.html#Fig:KeyNames seen in /usr/share/X11/xkb/keycodes/evdev , whereas ...
0
votes
1answer
46 views

How to remap `alt gr` + `j` to another key (xkbmap)

I use setxkbmap dk. I need the alt gr + j combination mapped to a character that isn't already included in the layout. At the moment, alt gr + j maps to nothing. The reason why I want to do this is so ...
0
votes
0answers
20 views

Can't use xkbcomp to remap combinations

Background I bought HP wireless keyboard 600, plugged it into my Ubuntu PC and it turned out that the top row of keys are media keys(Mute, Vol+, Vol-, Play/Pause, etc.) by default, and they only act ...
1
vote
0answers
71 views

What is a user-specific way to remap some keys, that is easy to backup

I wonder how I can remap some keys (especially modifier keys) in a way that will hopefully continue to work for the forseeable future, will probably work on different machines and preferrably use ...
1
vote
3answers
95 views

Map key which produces multiple scan codes on Fedora

I own an MSI Laptop which has some special functions on the F keys, for instance, Toggling Touchpad on F4 key. In Windows, this key is working as expected: enabling/disabling the touchpad. But in ...
1
vote
0answers
30 views

X11: Some applications misunderstand xkb keymap

I want to remap my keys in the following way: ctrl+j/k -> left/right and ctrl+h/l -> ctrl+left/right. So I got the default xkb file and added the following contents into it. First, I defined a ...
0
votes
1answer
960 views

How do I fix exit code 1 for a systemd service running inputplug?

I want to set up a systemd service to set my custom keymap when my bluetooth keyboard is plugged. I am using inputplug, as suggested here. Since I need to have an executable command containing no ...
1
vote
0answers
23 views

linux: generate a key sequence with shortcut

I want to generate a key sequence (+)+left when pressing ( (actually it is Shift+9), so that I can achieve autocomplete of bracket globally. Is there any way to do this? Implementation with xkb is ...
0
votes
0answers
66 views

Why does setxkbmap on a single device also change other devices?

I am running Ubuntu on a Thinkpad laptop with an external keyboard linked up. The laptop keyboard has a GB layout and the external has a US layout. First, I output a list of the connected devices (I'...
4
votes
2answers
236 views

Swapping keys AltGr and Space in Kali - Firefox is not affected

After trying several Space and AltGr key remapping ideas, changing xkb looks most promising. I read and used these ideas related to xkb: Remap altgr key to AC10 in XKB How can I remap keyboard keys? ...
2
votes
0answers
27 views

GroupLatch doesn't work with Shift for some keys using xkb

I am using custom keyboard layout with two groups for German and for Cyrillic. CAPS is used as a group latch in two ways. Either one "CAPS followed by the key" or "CAPS+Key" gives ...
2
votes
1answer
87 views

XKB Layout with Caps modifier, some combinations conflicting with other modifiers

I created a custom keyboard layout in xkb format to simulate arrow keys and put it in /usr/share/X11/xkb/symbols/custom: xkb_symbols { name[Group1]= "English (US) with Caps mod"; ...
0
votes
0answers
24 views

Remapping WASD + Alt_R without conflicting with APL Mode_switch?

Following the advice of Remapping WASD + R_Shift to arrows, but using Right Alt and esdf instead, I am able to make my Linux box recognize Right Alt + esdf as arrow keys. However, I also have ...
1
vote
0answers
82 views

xkb rebind Capslock + shift + hjkl to same behaviour as arrowkeys + shift

A long time ago I rebound my capslock + hjkl to essentially work as if they were arrow keys in the xkb config file. key <CAPS> { [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ...
3
votes
0answers
121 views

How can I fully cuztomize my keyboard modifiers in xkb?

I am using a ThinkPad laptop with Arch Linux, and I am looking into the possibilities of remapping my keyboard layout + modifiers. What I want to do is similar to what you can do with the QMK firmware ...
1
vote
0answers
32 views

Ctrl+x produces strange behaviour

All my other Ctrl shortcuts are working perfectly (Ctrl+C for copying etc). But when I type Ctrl+X nothing happens. I used xev to display what's happening when I press Ctrl+X. This is the output when ...
1
vote
1answer
172 views

In Debian, how to change keyboard mapping in a single USER-SPECIFIC file to be used by X (via setxkbmap) and (kernel) virtual consoles (TTYs)?

This is NOT a duplicate of Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?, where a system-wide /etc/default/keyboard is discussed. I'm looking to ...
3
votes
0answers
247 views

XKB Keyboard Configuration on Debian system

I'm configuring my keyboard layout on Debian to learn how XKB extension works. I'm trying to load a custom keyboard layout and am not sure why it's not working in a graphically environment but is ...
6
votes
0answers
253 views

Using new (2019) Microsoft Ergonomic Keyboard - how to map emoji and office keys into sth usable?

I bought „Microsoft Ergonomic” keyboard to replace my used up Microsoft Natural. And … they moved „Win” key to the left, and placed new „Office” and „Emoji” keys on the right instead: By default ...
0
votes
1answer
117 views

How can the Chrome browser treat the numpad keys as arrow keys when the xkb option numpad (mac) is active?

I'm using the Num Lock key as meta key and have set the numpad keys permanently (as if Num Lock was active all the time). Many desktop apps (konsole, the Atom editor, LibreOffice) and even the login ...
0
votes
0answers
90 views

XKB Shift + KP_Subtract: How to map these multiple keys?

I've succesfully mapped the KP_Subtract to Home (in /usr/share/X11/xkb/symbols/pc): key <KPSU> { [ Home ] }; It works fine, BUT, when I also click the Shift key (to include the previous text) ...
1
vote
0answers
100 views

Keyboard layout on login

Debian GNU/Linux 9 (stretch), no GUI Recently something happened to my SSH, so I need to login to my debian locally. I stuck on login (GUIless) because of keyboard layout, which by default is likely ...
1
vote
1answer
103 views

XKB Transparently map modifier level

I use a layout which is not QWERTY for first and second level. key <AC06> { type= "FOUR_LEVEL_ALPHABETIC", symbols[Group1]= [ m, M, ...

1
2 3 4 5
7