The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
21 views

Compose Combination for Russian Ruble

Why there is no compose combination for ruble sign (₽)? This combinations should work, but they don't: Compose + = + P Compose + = + p Compose + P + = Compose + p + =
0
votes
0answers
23 views

A Compose Key as a Part of a Layout Switch Combination

Why I can't switch my layout with these settings: setxkbmap -layout us,ru -option grp:alt_caps_toggle,compose:caps Is it possible at all to have a compose key assigned on CapsLock and a layout ...
1
vote
0answers
55 views

Fedora 30 on Macbook Pro - cannot remap caps lock

I'm running Fedora 30 (gnome desktop) on a 2015 Macbook Pro, and am trying to remap caps lock to ctrl when held down and escape when pressed. To do this, I ran: setxkbmap -option 'ctrl:nocaps' &&...
0
votes
0answers
12 views

Unexpected xkb behaviour 3-level return

I've let Return work as a level-5 shift on the 3rd level: key.type = "THREE_LEVEL"; key <LCTL> { [ Control_L, Control_L, ISO_Level5_Shift ] }; key <RTRN> { [ Return, Return, ...
1
vote
1answer
82 views

Bind CapsLock+hjkl to arrow keys

I want to bind CapsLock + hjkl to arrow keys, I found two way that each have some issues: Solution 1 Using xkb : Edit /usr/share/X11/xkb/symbols/us first block. # replace Caps with ...
0
votes
0answers
13 views

Making level-3 backspace control

I'm trying to make my backspace work as control on level 3. key.type = "THREE_LEVEL"; key <BKSP> { [ BackSpace, BackSpace, Control_R ] }; But I find that this only works if I add modifier_map ...
0
votes
0answers
11 views

Gnome make mouse keys config persistent

I enabled mouse keys in gnome settings and the default mouse pointer was unusable due to its slowness, so I searched and found this command that fixes the problem: xkbset ma 60 10 10 5 2 The problem ...
1
vote
0answers
19 views

Adding a rule file to xkb

I expected that with the file ~/.xkb/rules/myr as follows ! option = symbols test = +what(ever) then the output of setxkbmap -I$HOME/.xkb -rules myr -option test -print would reflect ...
0
votes
0answers
4 views

Adding keysyms for xkb

Is there a way to add keysyms to xkb? I understand I could modify /usr/include/X11/keysymdef.h, but could I do it for a non-root user?
0
votes
0answers
51 views

How do I install a new custom keymapping in XKB?

(This is a repost of an ignored question over at Super User) I am attempting to install a custom symbols file in my keyboard mapping in XKB, as found here. I would like to overwrite how the J key is ...
1
vote
0answers
13 views

XKB keyboard remapping

I want to replace the character map of one keyboard with some other unicode characters. I did it by going to usr > share > X11 > xkb > symbols as prescribed here. I am pasting here the ...
3
votes
1answer
39 views

Merge two usb ports/two keyboards into one

I use two keypads (Koolertron AE-SMKD72 Type A), that I use as one split keyboard. But they are recognized as two separate keyboards, what causes some problems: I use an alternative keyboard layout ...
2
votes
0answers
32 views

Remap keys including a modifier

I use an alternative german keyboard layout on Ubuntu 18.04: ~$ setxkbmap de koy Now I want to swap three keys (Mod3 → f → ß → Mod3) as shown in that picture: This are the keycodes for these keys: ...
0
votes
1answer
40 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 ...
1
vote
2answers
174 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
19 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
16 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
46 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
24 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
109 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
17 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
290 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
56 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
88 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
113 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
102 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
32 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
198 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
202 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
50 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
24 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
75 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
28 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
85 views

XKB: Hyper_L and Hyper_R

I'm running XMonad as my WM and I've been very inspired by this Youtube 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 ...
1
vote
0answers
33 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
15 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
73 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
33 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
1answer
137 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 ...
2
votes
2answers
405 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
105 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
244 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
110 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
457 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
52 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
821 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
262 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
78 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. ...