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

How to map the forward/back buttons on Logitech G102?

By default pressing the the side button on the Logitech G102 mouse in Ubuntu results in the '[' and ']' keys being pressed. I am unable to map these button to the forward/back actions. Build ...
0
votes
0answers
29 views

OSX-like dead keys compose functionality in Linux

I recently switched from macOS to linux (Manjaro with XFCE). So far I am quite happy with that decision. However I am really missing one feature. I am using the dvorak layout. In OS X I could press ...
0
votes
1answer
12 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
7 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
21 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
15 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
24 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
105 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
49 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
11 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
54 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 ...
1
vote
0answers
14 views

Execute script on external keyboard connection [duplicate]

I'm performing two modifications on my keyboard on startup: xset r rate 160 50 setxkbmap -option "ctrl:nocaps" However, they seem to be lost whenever I disconnect my external USB keyboard (...
1
vote
0answers
124 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
31 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
230 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
18 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
80 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
43 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
57 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
87 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
381 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
64 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
48 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
91 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
153 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
38 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
110 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 ...
0
votes
0answers
44 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
45 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
72 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
62 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
34 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
241 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
173 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
143 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
212 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
171 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
38 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
47 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
262 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
572 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 ...
0
votes
0answers
141 views

Shift key not working in xterm after changing layout with xkbcomp

I created my own xkb file to get cyrillic letters in JCUKEN / UKNC and latin letters in qwertz layout. Now that works except for one problem: Shift doesn't work properly in running xterms. Starting a ...
2
votes
0answers
52 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 ...
0
votes
1answer
387 views

bind CapsLock to Control on Ubuntu

I googled this topic and a lot of people suggesting setxkbmap -option ctrl:nocaps I put this line into my .bashrc. However, frequently this key binding is disabled automatically. This happens ...
3
votes
2answers
297 views

How do FOUR_LEVEL_SEMIALPHABETIC xkb keys work?

I'm not an xkb expert. For some reason I'm looking into this xkb symbol file, and I'm seeing some group of keys designated as FOUR_LEVEL_SEMIALPHABETIC. Now, the definition of it in types/caps is: ...
0
votes
1answer
186 views

How do I get a Hebrew keyboard layout with Caps-Shift-based Niqqud (SI 1452)?

In Microsoft Windows, the Hebrew keyboard layout has Hebrew characters in the basic state, English capital letters in Shift state or in Caps Lock state, but if you use Shift when Num Lock is on, you ...
2
votes
1answer
419 views

Custom keyboard layout without root

What are the steps to setting up a custom keyboard layout in X11 without root access? I know it's possible, based on this answer, but I get Error loading new keyboard description whenever I try using ...
0
votes
0answers
455 views

Failing to change my keymap for X11 on void linux

I have installed a recent version of void linux on a Fujitsu Lifebook E751. uname -a results in 4.12.11_1 #1 SMP PREEMPT Fri Sep 8 20:17:18 UTC 2017 x86_64 GNU/Linux. Xorg version is 1.19.3, Protocol ...
1
vote
0answers
343 views

AltGr not working as keyboard level 3 chooser

I have an almost fresh install of Kali linux as secondary system on my laptop, which has a standard German 101 keys keyboard. After install the AltGr was working perfectly well as a level 3 chooser ...