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
0 answers
12 views

Installing Colemak on Fedora

I am struggling with installing colemak on my Fedora 36 instance. I am using the following procedure: wget https://colemak.com/pub/unix/colemak-1.0.tar.gz tar -xzf colemak-1.0.tar.gz cd colemak-1.0 ...
user avatar
  • 1
0 votes
0 answers
13 views

How to add a compose character to a xkb keyboard layout

I created a custom Ukrainian ISO 9 layout successfully (by redacting /usr/share/X11/xkb/symbols/ua and several other files), it works and all but it lacks one letter, namely G with a grave i.e. 'G̀' (...
user avatar
  • 1
0 votes
0 answers
30 views

Switch AltGr and Ctrl with XKB

Ive tried various xkb_options to swap the right AltGr key with the left Ctrl key, bot none of them worked. On my X11 setup, I've used a .Xmodmap file to redefine these keys like so: ! CTRL on ALTGR, ...
user avatar
  • 425
1 vote
0 answers
71 views

How to set Caps Lock as Hyper (and change modifiers) using xkb?

This is currently my .xsessionrc file: xmodmap -e "remove Mod4 = Hyper_L" -e "add Mod3 = Hyper_L" -e "lock = Hyper_L" -e "keysym Caps_Lock = Hyper_L" & ...
user avatar
  • 111
0 votes
0 answers
20 views

How to assign dot symbol for the numpad del key in the KDE (X11) permanently?

I use the KDE Plasma with X11 on my laptop. And I set up two keyboard layouts in the KDE settings: US English and Russian. I'd like to assign the dot symbol for the numpad Del key. I found the ...
user avatar
0 votes
0 answers
17 views

Pressing & holding AltGr to spam output

a bit ago a tragedy befell my space bar, on my laptop. For now, as a workaround solution, i remapped space to my MENU key, because AlrGr doesn't allow for pressing & holding. Is there a way to ...
user avatar
0 votes
0 answers
39 views

Swap F9-F12 with their Fn+media key counterparts with XKB

The F9 through F12 keys on my Asus keyboard are also media control keys when the Fn button is held down. But I would use the Play/Stop/Prev/Next media keys constantly if I didn't need to hold the Fn ...
user avatar
1 vote
1 answer
18 views

implicit types in xkb

The keymap source (in .xkb format) of the current XKB configuration can be obtained by running xkbcomp $DISPLAY -. Mapping to keysyms is done in the xkb_symbols section of this file. Some of the ...
user avatar
  • 3,530
0 votes
0 answers
10 views

Custom AltGr + Shift only work on some keyboards

internet I'm trying to map the numbers to the shift+algr + home row keys. I've made the following changes to a custom file in xkb/symbols. key <AC01> { [ a, A, ...
user avatar
0 votes
0 answers
36 views

xkb: Why is the compose key set to NoSymbol after a system update (OpenSuSE 15.2 → 15.3)?

After upgrading my OpenSuSE Leap from 15.2 to 15.3, I found out that the Compose key (keycode: 135) was no longer working. In fact, xev no longer recognised it as Multi_key, but as NoSymbol: KeyPress ...
user avatar
  • 317
0 votes
0 answers
16 views

Non-breaking space and win-space toggle conflict, Mint

I am adjusting my keyboard layout in Linux Mint and I use nobr space quite often, so I need it on my shift+SPCE. And I also like both Ctrl+Shift and Win+Space options for layout changing. ...
user avatar
0 votes
2 answers
761 views

Setting an X11 keymap on Arch Linux

I am running Arch Linux and I would like two input languages on my system. English, UK Kurmancî (Northern Kurdish) In my .xinitrc I have the following: # keyboard layout setxkbmap -layout gb & ...
user avatar
  • 275
0 votes
0 answers
27 views

How to print currently assigned key code table for xkb, such that it can be modified and used with `setxkbmap`?

I have a mobile presenter device, which acts like a small keyboard. It has a little laser pointer and allows you to hold a presentation and flip to the next slide while standing on a stage or podium. ...
user avatar
  • 10.4k
1 vote
0 answers
26 views

How to unmap a modifier?

I'm trying to swap Caps Lock with Backspace for group 1. I have this in xkb_symbols: replace key <BKSP> { symbols[Group1] = [ Caps_Lock ], symbols[Group2] = [ ...
user avatar
  • 169
1 vote
0 answers
50 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 ...
user avatar
0 votes
1 answer
378 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....
user avatar
0 votes
1 answer
28 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; // <...
user avatar
  • 605
1 vote
0 answers
115 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 ...
user avatar
  • 111
0 votes
0 answers
21 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 ...
user avatar
  • 315
1 vote
0 answers
67 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 ...
user avatar
  • 11
2 votes
0 answers
29 views

Changed keyboard map reverts back after short time

I use: xkbcomp "$DISPLAY" - | # Menu key = mouse button ...
user avatar
  • 29.9k
2 votes
2 answers
159 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 ...
user avatar
  • 317
0 votes
0 answers
87 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 ...
user avatar
  • 103
0 votes
1 answer
119 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?
user avatar
  • 103
1 vote
0 answers
157 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 ...
user avatar
2 votes
1 answer
187 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 ...
user avatar
1 vote
0 answers
67 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 ...
user avatar
  • 111
0 votes
1 answer
83 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 ...
user avatar
  • 33
0 votes
0 answers
255 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 -...
user avatar
2 votes
3 answers
267 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" { ...
user avatar
  • 33
1 vote
1 answer
41 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> { ...
user avatar
1 vote
0 answers
101 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 ] }; ...
user avatar
  • 111
0 votes
0 answers
36 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 ...
user avatar
1 vote
1 answer
623 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 = ...
user avatar
  • 115
0 votes
1 answer
73 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 ...
user avatar
3 votes
0 answers
204 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/...
user avatar
0 votes
1 answer
111 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 -...
user avatar
  • 3
0 votes
1 answer
898 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" ...
user avatar
0 votes
1 answer
277 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 ...
user avatar
  • 415
0 votes
1 answer
120 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 ...
user avatar
0 votes
1 answer
166 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 ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
1 vote
0 answers
145 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 ...
user avatar
  • 51
1 vote
3 answers
206 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 ...
user avatar
1 vote
0 answers
41 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 ...
user avatar
  • 151
0 votes
1 answer
3k 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 ...
user avatar
  • 464
1 vote
0 answers
48 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 ...
user avatar
  • 151
1 vote
0 answers
122 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'...
user avatar
  • 213
4 votes
2 answers
317 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? ...
user avatar
  • 149
2 votes
0 answers
46 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 ...
user avatar

1
2 3 4 5
8