Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xkb]

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

0
votes
1answer
6 views

Remapping Caps Lock to Alt (Meta) in GNOME / X11

I'm looking to replace Caps Lock behaviour with the "Left Alt"/"Meta" modifier, in GNOME / X11. There are a few options to replace Caps Lock with Super, Ctrl, etc. in GNOME Tweak Tool, which seems to ...
0
votes
0answers
40 views

Key remapping for special characters (Umlauts) in Wayland

Under Xorg, I used ~/.Xmodmap in order to be able to type amongst others a German Umlaut (i.e., äüö) using the right Ctrl key and a, u, o, respectively (as well as Shift for capitals): remove Control ...
0
votes
0answers
6 views

Cinnamon Alt-Tab shortcut not picking up xkb mapping Backslash to Tab

I'm using Cinnamon 3.6.7 and trying to map my physical Backslash key to work like a "right tab" button. All I did was use setxkbmap -print to generate a short keymap file, then put replace key <...
1
vote
1answer
10 views

Cannot map a hotkey on my keyboard (XF86Mail)

I had the following problem: I wanted to make use of some Hotkeys on my keyboard (I am using Openbox, but it should not make a difference.) Most of my keybinds worked just fine (XF86AudioRaiseVolume,...
0
votes
0answers
42 views

Remapping Capslock as Control: Capslock + Shift + 2 doesn't work

I have a Dell Precision M5530 and I am running xmonad as the DE, I've set up my system to map CapsLock to CTRL via the following: setxkbmap -option "ctrl:nocaps,altwin:swap_lalt_lwin" ## Set up ...
1
vote
2answers
20 views

How to remap ö to return

Does one see what I am doing wrong? setxkbmap -option ö:return man xkbmap nor skimming through /usr/share/X11/xkb/ gave me any hint, While e.g. setxkbmap -option caps:escape works
3
votes
1answer
51 views

Permanently change xkb keybindings?

I have a custom keyboard layout located in /usr/share/X11/xkb/symbols/us. Every time an update happens, this file is updated to the standard keyboard layout. Is there either a way to change this ...
0
votes
0answers
16 views

New entry in xmodmap creates new group instead of layer

Here is my dotfile: ! Key ! Shift+Key ! Mode_switch+Key ! Mode_switch+Shift+Key ! ISO_Level3_Shift+Key ! ISO_Level3_Shift+Shift+Key keycode 43 = h H BackSpace NoSymbol U20BD NoSymbol Cyrillic_er ...
1
vote
0answers
167 views

How to remap Caps Lock key to a command (not ctrl or escape, but a command like xfce4-terminal)

I am using GNOME on Wayland on Arch Linux. Currently my CapsLock key does nothing and "Both shift keys" act as CapsLock (set from gnome-tweaks). I want to remap CapsLock to a command like gnome-...
0
votes
1answer
45 views

French characters mappings in xkbcomp ~/.keymap.xkb

I am looking to add all the French characters to my ~/.keymap.xkb file. In the interest of not duplicating things, has anyone else done this and care to share their configuration? Clearly some ...
0
votes
0answers
47 views

Keyboard remap: home → comma, end → dot

I'm trying to change xkb settings in this file: /usr/share/X11/xkb/keycodes/evdev. Specifically, I tried this: // <AB08> = 59; // <AB09> = 60; // <HOME> = 110; // &...
1
vote
1answer
92 views

Some applications ignore Xmodmap settings

I am using the following ~/.Xmodmap keycode 133 = Mode_switch keycode 134 = Mode_switch keysym h = h H Left keysym l = l L Right keysym k = k K Up keysym j = j J Down keysym w = w W Prior keysym s = ...
0
votes
1answer
56 views

XKB: Shift or control + numpad = down without shift

I'd like to map my keyboard so that (when the Numlock is On), the numpad key 2 named KP_2 procudes a 2, but when I press Shift or Control I want this same key to produce a Down event, exactly like the ...
0
votes
0answers
26 views

XKB: creating new type fails

I thought I understood XKB, but apparently not... So first I have a question that make me unable to debug XKB: I have in a file (obtain with xkbcomp $DISPLAY output.xkb) a part like that: type "...
0
votes
0answers
12 views

Load partial XKB configuration

I'd like to modify my keyboard so that when I do Ctrl + NUMPAD<2> (well actually Caps lock as I reversed Ctrl and Caps-lock using KDE's configuration) it sends a down key without any modifier. ...
0
votes
0answers
119 views

Remap capslock key to tab with setxkbmap

I was trying to remap the <Capslock>key to the <tab> key, after some research I found out I could do; setxkbmap -option ctrl:nocaps Which maps the <Capslock> key to <Ctrl>. ...
0
votes
0answers
153 views

Manjaro openbox: Different keyboard layout for each window

I'm using manjaro openbox Illyria 18.0.2-2018520 and looking for an option for different language per application/window. I didn't see any option in keyboard setting. How can i set this? similar ...
0
votes
0answers
43 views

Can't switch to ruu layout variant in gnome

I'm running on Antergos with Gnome 3.30.2. Right now I have English and Russian keyboard layouts, they work fine. $ dconf read /org/gnome/desktop/input-sources/sources [('xkb', 'us'), ('xkb', 'ru')] ...
0
votes
0answers
20 views

Switching XKB group programmatically

Is there a way to switch group programmatically, without actually pressing a key that's bound to something like ISO_First_Group? I tried xdotool key ISO_First_Group, but that didn't work.
1
vote
1answer
52 views

What happens when type dead key “acute accent” then “o” to produce “ó”?

I'm on Belgian keyboard (/usr/share/X11/xkb/symbols/be) and when I type AltGrù it produces the dead key "acute accent", it waits for another key, o for example, to produce ó. How can I change which ...
0
votes
0answers
24 views

Making shifted hyper super

I have the Happy Hacking keyboard, which only has one pair of extra modifiers in addition to ctrl and meta. I want to use these for super and hyper, and I don't want one for super and the other for ...
0
votes
0answers
67 views

XKB: Hyper_L and Hyper_R

I'm running XMonad as my WM and I've been very inspired by this YT video. In short, what I'd like to achieve is having my right \ key when pressed continually, act as a Hyper_R and the left Tab act as ...
1
vote
0answers
31 views

Modifier as normal key

With xcape, it is possible to make a modifier act as a normal key when pressed and released. Is it possible to achieve this with xkb alone?
0
votes
0answers
14 views

Triggering actions from modifier combinations only

/usr/share/X11/xkb/rules/base.lst shows various setxkbmap options; for instance it is possible to switch the keyboard layout by pressing both shifts at the same time. How might I get an arbitrary ...
1
vote
0answers
52 views

System wide mapping of a key combination to a single key

I've recently switched from macOS to Fedora, on macOS I used a tool called Karabiner Elements to map the key combinations Ctrl+ö to [ Ctrl+ä to ] Alt+ö to { Alt+ä to } I'm aware of a similar ...
0
votes
1answer
23 views

`us:2` mod in XKB configuration

This is my XKB configuration: $ setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" ...
0
votes
0answers
9 views

Loading XKB mod earlier

My current user-local keyboard configuration is: $ setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { ...
0
votes
0answers
35 views

How can I remap Left Control + ijkl to cursor keys

Based on this blog post, I'd like to use Ctrl + ijkl as cursor keys, without losing other common keybindings such as Ctrl + s, Ctrl + a, etc. Using xkb, is there a way to remap Ctrl + i, Ctrl + j, ...
0
votes
1answer
79 views

Can I remap key combos to key sequences in Linux/X?

Using something like xkbmap, is there any way to translate a single complicated "key event" such as Ctrl-Super-F or some Korean unicode char to a sequence of simpler events, say C-x C-x C-a, so that a ...
0
votes
0answers
48 views

How can I configure xkb to switch layouts both ways?

If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the ...
1
vote
2answers
277 views

prevent Qemu / Spice from grabbing keys that are bound elsewhere

My setup: Qemu with Spice display managed by libvirt running on Linux with X11. I’m looking for a way to preserve key bindings in the window manager and the X server when a Qemu client is focused. A ...
1
vote
0answers
88 views

Why Tab can't be modified with ISO_Level3_Shift

I am using a 40 key keyboard called daisy, I want to have a consistent layout of all my keyboards. The tab can't modified to other keys is kind a waste of resources. The relevant part in .Xmodmap is: ...
2
votes
0answers
178 views

How to make ISO_Level5_Shift work?

I wanted to add more levels to my keyboard layouts, so I decided to enable level5 key. I’ve already had level3 on Menu, and would like to map RAlt to ISO_Level5_Shift. However, setxkbmap has no ...
2
votes
0answers
52 views

Execute script on external keyboard connection

EDIT: This is NOT a duplicate because the linked question is about external USB drives, not keyboards. The suggested command udevadm info -a -n sdb does nothing in helping to find the corresponding ...
1
vote
0answers
323 views

How to alter level 3 meaning of keys with XKB

I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file ...
2
votes
0answers
47 views

Swapping sticky modifiers

You can turn on sticky modifier keys with xkbset sticky but is it possible to get a sticky Hyper when tapping Super and vice versa?
3
votes
2answers
659 views

execute command to swap caps lock and ctrl at startup

I'm a bit puzzled why this is not working as intended. My goal is to map the caps lock key to control. I'm using debian. For this I'm using the following command /usr/bin/setxkbmap -layout "$(...
2
votes
1answer
179 views

How does xkb compilation work?

In a kind of "Linux from scratch" environment I have the problem that xkbcomp fails on startup of X. I found that I even can't compile keymaps on my standard Ubuntu machine: xkbcomp -w 10 -R/usr/...
0
votes
1answer
68 views

Can I create additional keyboard shortcuts inside xkbconfig that switch to a particular language, instead of cycling?

My current keyboard config is quite complex, but the relevant line is: setxkbmap -option -option 'grp:rshift_toggle, compose:rctrl' dmru,ru,ua & Rshift now cycles through dmru, ru, and ua. ...
1
vote
0answers
124 views

KDE Custom Shortcuts don't work with special XF86 keys

I want to use an external numpad as a 'macro keyboard' with each key being able to perform a specified action. I have already created a custom xkb_keymap to map keys to XF86 symbols. $ cat ~/.xinitrc ...
0
votes
0answers
157 views

How to have multipl 'level 3' modifier using xkb

I'm trying to improve my keyboard layout using xkb and it worked great using the default 4 levels (or should I say 2 levels? I don't really know the terms.. And when I'm at opening a parenthesis, I ...
1
vote
2answers
1k views

How can I set the keyboard layout for the login screen before the first successful login in CentOS 7?

I realize that by adding setxkbmap xxx we can change the keyboard layout in X server. It cannot survive logout/reboot, so we can add this line into $HOME/.profile to make it available when we log in,...
0
votes
1answer
178 views

Why does not keypresses to the pause/break key reach `xev`?

I'm running xfce and as far as I can see the pause key is not mapped as a hotkey. When pressing the pause key it only produces: FocusOut event, serial 37, synthetic NO, window 0x3000001, mode ...
0
votes
1answer
36 views

Map both Caps Lock and Escape to Escape

I used dconf-editor to map caps to esc and esc to caps but I want esc to remain esc. How do I do that? Currently I put ['caps:escape'] under the xkb-options. I believe that the command I run ...
1
vote
1answer
382 views

Switch between more than two keyboard layouts using modifier keys

I am currently able to temporarily switch my keyboard layout from US to Danish while holding caps, and toggle permanently using alt+space, with the following command: setxkbmap -option "grp:...
0
votes
1answer
58 views

How do I know which key combination does what for the Dvorak international alternative layout?

So far, I can only figure it out by trial and error. Right Alt + a = à Right Alt + o = ô Right Alt + e = é Right Alt + u = û Right Alt + i = î Right Alt + 4 = € Right Alt + , = ä Right Alt + . = ê ...
2
votes
0answers
164 views

Turning the Escape key into a modifier that still acts as Escape when tapped

I use a tiling window manager (xMonad at the moment), and due to this I need a key that acts as the ‘control key’ for window management. Whenever I use a keyboard with Windows/Super/Mod4 keys, I use ...
2
votes
1answer
145 views

Advanced key mappings in linux

I am using manjaro i3 and am looking into revamping some of the key mappings I have made. Currently I am using xcape, xmodmap, and setxkbmap commands to remap the following keys: caps to contol when ...
0
votes
0answers
155 views

How can I assign “control” functionality to the right super (windows) key in /usr/share/X11/xkb/symbols/pc?

I am trying to assign "control" to my Super R key in /usr/share/X11/xkb/symbols/pc. So, I change key <RWIN> { [ Super_R ] } to key <RWIN> { [ Control_R ] } Then I start X and use xev ...
0
votes
1answer
374 views

XKB: modify layout to Multi-group with Mode_switch

I want to create a custom keyboard layout based on my German keyboard layout (de). The idea is to have a two-group layout and have the Caps-Lock to be the Mode_switch key. That remap seems to work ...