We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
0answers
34 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: ...
2
votes
0answers
125 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 ...
2
votes
0answers
480 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
53 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?
2
votes
1answer
286 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/...
2
votes
0answers
210 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
0answers
386 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. ...
2
votes
0answers
65 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 ...
2
votes
0answers
279 views

Xkb: Overlay vs HotKeys

I'm configured xkb to select each keyboard layouts with unique hotkey (en = Win+1, de = Win+2, jp = Win+3) replace key <I156> { [NoSymbol], actions[Group1] = [ LockGroup(group=1) ] }; replace ...
2
votes
0answers
96 views

Something strange happens while keypress [duplicate]

I have meka g-unit keyboard. This keyboard has 12 additional keys. I found scancodes of this keys via evtest and mapped these codes to f13-24 key codes. Everything works fine, but some keys(F20,21,22,...
2
votes
1answer
584 views

Why is AltGr remapped from keycode 108 to keycode 92 (LVL3) and where?

While building my own xkb config file, I managed to make AltGr dysfunctional. Bottom line is: Removing this three lines (one is actually a whole block) ... xkb_keymap { xkb_keycodes "...
2
votes
0answers
182 views

How to find the version of xkb on my machine

A new keyboard layout of interest was recently checked into xkb. Since current version of xkb is at 2.19, I think my layout will be shipped with 2.20. How do I find out what version of xkb is ...
2
votes
0answers
432 views

xfce keyboard layout panel plugin gets stuck

I use the xfce "Keyboard Layouts" panel plugin to switch between english and french layouts. Sometimes it gets stuck and clicking the button and alt-shift stops working. The only fix I have found is ...
2
votes
0answers
280 views

XKB: enable a LED for specific layout

There's a widely used XKB option grp_led:scroll to light ScrollLock LED for cycling between layouts. Unfortunately, it doesn't work with ibus ATM because the implementation makes XKB consider every ...
2
votes
0answers
120 views

XKB Complete Key Definition

I tried defining something like this: xkb_types "complete" { type "COMPLETE_LEVEL" { modifiers = Alt+Shift+Control+Super; map[None] = Level1; map[Shift] = Level2; map[Control] = ...
2
votes
0answers
163 views

Map ctrl+key different from typing key in xkb or xmodmap

Is it possible to map ctrl+key different from regular typing key in linux? I have done it in windows with MSKLC but can't figure out how to do it in linux. E.g. I want to type dvorak but have regular ...
2
votes
0answers
98 views

Using overlay feature much like a shift

Using XKB, how could I make the keyboard send the keysym <RTRN> when I press Ctrl-J? The goal is to make sure that every program recognizes this key combination. I know there are overlays. But ...
2
votes
0answers
439 views

How do I emulate a virtual keyboard with an arbitrary character set?

I am writing a couple applications that change how your keyboard works. (One that allows key-chording, and another that allows you to say syllables out loud to type individual characters.) The "...
2
votes
0answers
310 views

Remap key to two modifers or use meta shortcuts in terminal (terminator)

Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys. So I am using xmodmap. Right now caps lock is mapped to meta (...
2
votes
0answers
46 views

Problems after mapping Alt_R to Control [closed]

I have mapped by Alt_R to Control. My Control_R is also mapped to Control. Alt_L remains as Alt (Mod1). I used xkbcomp :0 keyboard.xkb to dump the current configuration file. In that file, in the ...
2
votes
0answers
396 views

How to map Alt+H to the Arrow-left key?

I would like to have my HJKL keys to function as arrow keys whenever the Alt key is pressed down. Also other combinations should work, such as Ctrl+Left should be seen when Alt+Ctrl+H is pressed. I'...
2
votes
1answer
572 views

Which application receives which hotkey? (List X clients which hold key grabs.) [duplicate]

How can I list the X clients which registered for a specific keyboard event (i.e. a key press; a shortcut thing). Those things are called passive key(board) grabs. And the list should contain what ...
2
votes
1answer
734 views

swap symbols with numbers in keyboard layout

I'm looking to modify my keyboard layout such that holding down Shift and pressing a number key will result in a number being printed to the screen instead of the symbol that's on the key. For ...
2
votes
0answers
693 views

Remapping shifted function keys in XKB

I'm working on a keyboard layout for the Khmer language and I'm quickly running out of space. My aim is to create a keymap that includes all the characters in the Khmer script as well was their ...
2
votes
1answer
2k views

How can I replace my keyboard and mouse udev rules with xorg.conf.d?

Since it is impossible to make udev rules that affect Xorg settings run on startup, I'd like to replace these with other alternatives. At the moment, I have two primary udev scripts that I've written. ...
2
votes
0answers
119 views

xkb config has pointless entry?

I dumped the current xkb configuration with xkbcomp :0 keyboard.xkb and found that, for example, ISO_Level3_Shift has two 'interpret' entries: interpret ISO_Level3_Shift+AnyOf(all) { ...
2
votes
0answers
225 views

xkbcomp doesn't update keymap for running xterms?

When I use setxkbmap all programs use the new layout but when I change the keyboard layout with xkbcomp to my own only newly started programs are affected (using xkbcomp with a file with a default ...
2
votes
0answers
603 views

xkb: `ctrl:swapcaps` option messes with the escape key

I've been using setxkbmap -option "ctrl:swapcaps" to swap the capslock and left control keys, but I just recently noticed that this seems to mess up my escape key. With xev, I can see that pressing ...
1
vote
1answer
203 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
2answers
2k 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,...
1
vote
1answer
152 views

How to add additional control key?

I am using xkb to add an additional control key as follows: key <HENK> { [ Control_R ] }; However, it does not work. I even tried xmodmap without success: xmodmap -e "...
1
vote
2answers
26 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
1
vote
1answer
64 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 ...
1
vote
1answer
153 views

How to programmatically set keyboard shortcut on Mac?

On OSX Sierra, where can I control my keyboard shortcuts through the file system? I'd like to script the setup of the equivalent of XKBOPTIONS="ctrl:nocaps" in /etc/defaults/keyboard on ubuntu, but ...
1
vote
1answer
271 views

keyboard layout switching - non-working hotkeys in cyrillic layout

I've got a small script that runs in background and handles setxkbmap for me. Said script has some logic of switching keyboard layouts, which is essential and is not supported by my DE installation (...
1
vote
1answer
187 views

Force English layout for the «Compose» key pressed

I like using Compose key. The problem is that large part of my text being typed in non-english layout. This means that some symbols messed up, and most isn't even present (i.e. latin characters). ...
1
vote
1answer
127 views

Why grp:lctrl_lshift_toggle still keeps right keys as switch triggers?

I ran the following command in my terminal: setxkbmap -layout us,ru -option "grp:lctrl_lshift_toggle,ctrl:nocaps" but for some reason, the effect is the same if I specified "grp:ctrl_shift_toggle" - ...
1
vote
1answer
26 views

Finding APL symbols on the keyboard

I use GNU APL on Debian 10. My Apple keyboard is configured to input APL characters using the right Alt key and the latter is remapped to the right Command key: setxkbmap se,apl -variant ,dyalog -...
1
vote
1answer
80 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 ...
1
vote
1answer
62 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
763 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 ...
1
vote
1answer
221 views

Suddenly xkbcomp stopped working

I have a working keyboard setup in my .xkbmap and make it active by xkbcomp $HOME/.xkbmap $DISPLAY. But it suddenly stopped working. Somehow it does not change keyboard settings. I am totally confused....
1
vote
1answer
319 views

xbindkeys on one keyboard?

I have the current setup: One PS2 Keyboard One USB Keyboard Then I use this: xinput --create-master SecondKeyboard xinput --reattach "Keyboard Id" "Master Id" to separate them. I thought I could ...
1
vote
2answers
461 views

XKB: assign multiple keycodes to one behaviour (<ESC>)

I have a new bluetooth keyboard, and for some reason the keycode that the escape key returns is 172 instead of 1 (according to 'showkey'; the same codes have 8 added in xkb, so 180 instead of 9). By ...
1
vote
1answer
332 views

Map F2 to replace the 2 key – also with Shift and Alt combination – in Lubuntu 14.04.3

I run a Danish keyboard layout in Lubuntu 14.04.3. The 2 key is malfunctioning (hardware problem). I wish to replace its use by the key F2. The F2 key value (i.e., the F2 key-press event) will then ...
1
vote
1answer
120 views

Multilanguage keyboard mapping files

I would like to make a web page where the user chooses a language, and depending on the language, show a keyboard with all characters corresponding to that keyboard. I've been told that Unix has ...
1
vote
1answer
579 views

fluxbox keyboard switch german, greek (modern) and polytonic greek

Where can i find a list of keyboard-layout codes to switch between german, greek (modern) and polytonic greek in fluxbox menu? vim ~/.fluxbox/menu [begin] (fluxbox) [include] (/etc/X11/fluxbox/...
1
vote
0answers
25 views

Why two unicode-characters are not allowed in xkb?

I wonder why a sequence of Unicode-characters is not allowed on one key-press in xkb. Eg. I use the Indian keyboard for typing in Devanagari. This keyboard is based on the inscript keyboard layout. In ...
1
vote
1answer
25 views

Map right alt to left arrow on MacBook Pro with Kali Linux

I’ve just created a Kali Linux partition on my MacBook Pro. On Mac OS I used Karabiner Elements to remap the right alt key to left arrow because my real left arrow key is broken. Now I want to do the ...
1
vote
0answers
13 views

i3 - setxkbmap clashes with bindsym in config

I use a Manjaro i3 distribution on my laptop. Currently I switch layouts using Win+Space: $ setxkbmap -print -verbose 10 | grep options options: grp:win_space_toggle I also want to use the ...