Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
16 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
23 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
10 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
34 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
18 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
21 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
18 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
11 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
26 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
15 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
8 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
23 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
30 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
29 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
148 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
58 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: ...
0
votes
0answers
12 views

Map alt+h to Shift left?

Is there any way to map Alt+h to shift+left under xmodmap or xkb?
0
votes
0answers
89 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
36 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
195 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
40 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
336 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 "$(...
0
votes
0answers
20 views

xkb: Remap capslock behavior to shift-capslock [duplicate]

I'm annoyed by constantly accidentally triggering CapsLock. I'd like to remap CapsLock to ESC; that's already available and works using: hidden partial modifier_keys xkb_symbols "swapescape" { ...
2
votes
1answer
107 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
49 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
82 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
106 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
609 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
0answers
82 views

Using mode_switch and super together in xkb

I'm using xkb to create a layer on my keyboard with a navigation cluster, accessible by holding down a modifier key. Here's a simplified version of my xkb config file: xkb_keymap { xkb_keycodes ...
0
votes
0answers
56 views

How to make double-shift/control to be a distinct modifier state?

In my attempt to make it feasible to make window-manager shortcuts compatible with emacs key binding I realize that I basically run out of modifier keys. The options that I've considered are ...
0
votes
1answer
123 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 ...
1
vote
1answer
239 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
44 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
127 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
74 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
52 views

remapping CAPS in xkb not working

Remapping RWIN to Mod5 works: key <RWIN> {actions=[SetMods(modifiers=Mod5)]}; Remapping BKSL to Mod3 works too key <BKSL> { [NoSymbol], actions=[SetMods(modifiers=Mod3)] }; ...
0
votes
0answers
97 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
0answers
67 views

XKB > ctrl + alt as level3 switch > xev shows expected output (it seems to work) > no success otherwise (it works not)

I've a german keyboard layout and it works as expected. Level3 switch is altgr. That's very inconvinient and i'd like to map lctrl+lalt as level3 switch. I made a new type as described in this answer ...
0
votes
0answers
42 views

How to remap ALT + BackSpace to work like DEL key?

My laptop has no delete key so I tried remapping Shift+BackSpace to behave as DEL key and it works fine. I can delete characters/text, and it can also delete files in File Manager (I'm on Elementary ...
0
votes
1answer
294 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 ...
0
votes
0answers
228 views

Why does setxkbmap always include the option capslock(ctrl_modifier)

Short background I'm trying to write my own keyboard layout with the super/mod4/win-key in place of caps lock. But no matter what caps lock is instead bound to ctrl. I'm currently on a 64 bit Ubuntu ...
1
vote
1answer
160 views

Beginner friendly Debian package for custom keyboard layout?

I have a custom keyboard layout that I want to install like this: $sudo apt install my-custom-kbd-layout Is this possible with Debian? Because I started writing some python script to automate the ...
1
vote
0answers
242 views

Remap capslock and enter to control modifier

I want to remap two keys, not just one. Specifically, I want to: Remap capslock to control and escape, and Remap return/enter to control when it is pressed with another key. Based on the two links ...
1
vote
1answer
212 views

How can I remap left-backspace to escape on the Colemak keyboard layout?

My keyboard setup is this command: exec setxkbmap -layout us,us -variant altgr-intl,colemak -option caps:escape,grp:alt_shift_toggle It maps caps lock to escape for qwerty, but in Colemak, there is ...
0
votes
0answers
49 views

Getting Alt to work with diferent groups other than group 1 in XKB

I'm trying to figure this out for weeks now. I have a keyboard layout with 3 groups and I've assigned the [; key] and the [' key] to change groups. Everything works mostly fine except when I try to ...
1
vote
0answers
38 views

How can I remap Ctrl_Left + button to one action, and Ctrl_Right + button to another?

In my particular example, I want to be able to remap Control_left + n to output LeftArrow, but also to Control_right + n to output Return. How can I do that? I red through xmodmap man, so as xbinkeys, ...
1
vote
1answer
51 views

Cannot log back into desktop environment after running “setxkbmap il” and logging out

On OpenSUSE Leap 42.3, with KDE desktop environment, I changed the X11 keyboard map by running $ setxkbmap il to type something on LibreOffice Writer with a local language. Then after a period of ...
2
votes
0answers
288 views

Getting modifier keys (Alt, Ctrl) to work together with ISO_Level3_Shift

I have altered quite a bit my keyboard layout using two levels of shift keys. Basically now, I have 3 layers on my keyboard. In order to do so I used the ISO_Level3_Shift and ISO_Level5_Shift. ...
3
votes
1answer
703 views

What is the difference between base and evdev xkb rules?

I just switched from xf86-input-evdev to xf86-input-libinput and it broke my keyboard layout – arrow keys with right alt, context menu key, delete key, numpad enter, etc. all weirdly swapped. libinput ...
2
votes
0answers
53 views

Xkb to replace § in the Slovak keyboard layout to ď/Ď

I want to replace § in the Slovak keyboard layout (it's currently ' - the first key to the right from my right pinky finger) on the English keyboard or keycode 48 on most keyboards) with the more ...