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
1answer
14 views

prevent xkb layout from changing

I have a customized layout, but it keeps (what seems to be randomly) changing to default, I am not sure what I need to do more: // cat .profile setxkbmap -layout fr2 denis:~ $ uname -r 4.15.0-62-...
0
votes
0answers
35 views
+100

Set chinese in xkb

I tried the command setxkbmap cn but nothing happened. I'd like to write characters in pinyin, so that it would automatically write chinese characters and then have the possibility to turn in back to ...
1
vote
0answers
21 views

XKB - configurations not working properly

I added the following to /usr/share/X11/xkb/symbols/us: key <AC06> { [ h, H, Left ] }; key <AC07> { [ j, J, Down ] }; key &...
18
votes
2answers
17k views

Use setxkbmap to swap the Left Shift and Left Control

Is it possible to swap the Left Shift and the Left CTRL keys using setxkbmap instead of xmodmap? EDIT I have switched to Fcitx, which works way much better with my keyboard layout and customized ...
1
vote
0answers
64 views

How to use Shift_R+Ctrl_R as a third row modifier?

I bought a weird keyboard for windozers (Defender Oscar SM-600 PRO). Instead of AltGr, it has a LNG key, that sends a combination of Shift_R and Ctrl_R, and it does not seem to support rebinding it. ...
0
votes
1answer
25 views

How to map LSGT to left control with xkb?

I'm trying to map LSGT (the key on European keyboards) to "left control" using xkb with no success (under X and ubuntu 18). I tried the following: replacing the LSGT line with key <LSGT> ...
26
votes
4answers
9k views

How to remap the Context Menu key to the Super key

This keyboard has only one super key, so I want to remap the menu key to make up for that.
0
votes
0answers
41 views

Where/how is my keyboard configuration really defined?

Short version What determines which symbol is printed on <alt>-<KEY> on Debian 10 (buster) with openbox (i.e. no KDE, GNOME, etc)? Long version When I type the sequence <q> <...
0
votes
0answers
26 views

How to install the keyboard layout carpalx QGMLWB

Carpalx QGMLWB is a keyboard layout. My operating system is Ubuntu 18.04.3 LTS 64-bit; my desktop environment is GNOME 3.28.2. The list of installed keyboard layouts is at Settings > Language and ...
11
votes
2answers
3k views

CapsLock as modifier key for application keymaps

I am developer and currently I am using Ubuntu Linux with PyCharm IDE for development of website. In order to improve typing performance I consider change CapsLock to Hyper_L and assign it to mod3 ...
8
votes
1answer
2k views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
4
votes
4answers
749 views

How to put some keyboard layout aside from layout switching ring?

What I need is to switch between Russian and English layout with my favorite shortcut (namely Shift-CapsLock) switch to Belarusian layout with another shortcut (say, Ctrl-RightShift, but actual ...
5
votes
1answer
2k views

setxkbmap switches between 2 out of 3 layouts

Issuing that command: setxkbmap -layout "us,ua,ru" -variant ",winkeys" -option "grp:shift_caps_toggle,grp_led:scroll" -model pc105 -rules xorg When hitting Caps Lock+Shift I'm switching between ...
3
votes
1answer
356 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 ...
9
votes
2answers
5k views

how to bind AltGr to <Ctrl> + <Alt>

I am trying to create a linux equivalent of Ergonomic Telugu Keyboard layout called Sarala (Hard la). I have been able to map all the keys so far. The layout uses the following key combinations for ...
1
vote
0answers
25 views

Change Key's Function If Held (Tab>Super;Apostrophe>CTRL)

I'd really love tab and apostrophe to work as they are supposed to, but then change to Super and Ctrl respectively when held. If I can figure out how to do this, I'm gonna be doing it all over my ...
2
votes
0answers
43 views

XKB groups vs levels

I want to extend my XKB keyboard layout to add custom bindings. Based on a pc104/us layout I want to add bindings like these: AltGr-a → ä (adiaeresis) AltGr-e → € (EuroSign) I think I know how to ...
0
votes
1answer
1k 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 ...
0
votes
0answers
37 views

xkb: How to turn a symbols file into a working keymap?

My goal is to create a keyboard map that I can switch via the GUI (here gnome on Ubuntu 19.10, but I have also tried with Xfce and got the same problem, so I am assuming this is xkb rather than Gnome/...
0
votes
0answers
7 views

How to turn a non-bindable key into a bindable one?

I'm talking about the Menu (keycode = 135) (aka Right Click), I don't use it So I disabled its contextmenu action with Xmodmap tool, now it doesn't open the menu and still working for keyboard ...
1
vote
0answers
83 views

XKB Error: Couldn't lookup keysym Symbol interpretation ignored

I have someone's XKB file binding Caps + uhjk to arrows (here is the file https://gist.github.com/AlexP11223/945e24fdc07ae8b093ef939b46d30b64 with diff from the original). Now I am trying to bind Caps ...
0
votes
0answers
9 views

Remap keys on Kinesis Freestyle Mac

The keyboard is Kinesis KB700PB which I am trying to use in Ubuntu. Here is its layout When I press the "left-arrow web" button, I get this using xev KeyRelease event, serial 37, synthetic NO, ...
3
votes
1answer
1k views

Adding a custom keyboard layout (and setting it as the default)

I'm on Arch Linux with i3, and I'm trying to create a personalized layout with IPA (International Phonetic Alphabet) symbols for use in linguistic research. I'm also using iBus for Chinese language ...
1
vote
1answer
41 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
1answer
48 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
45 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
1answer
297 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 ...
1
vote
0answers
28 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
61 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 -...
0
votes
0answers
36 views

xkb: How to map keypad arrows to <Ctrl>+<Alt>+[keyboard arrow]?

I have reviewed all the answers to every remapping question on ask.ubuntu.com and Stack Exchange sites, and I still can't grok how to get this done. I would like, when the 4/left arrow key is pressed ...
1
vote
0answers
42 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 ...
0
votes
0answers
13 views

Use the XKB option lv3:caps_switch to remap CAPS to AltGr

I want to make this upgrade-save: Configure Caps Lock as AltGr and Arrows like in vim I already have a separate partial for my changes, but I still have to add an include in my symbols file. I ...
2
votes
0answers
80 views

Problem remapping function buttons on Ubuntu 18.04 / i3 / xkb

I have been trying to remap my functions keys on my X1 Carbon 6th gen, since there's no Media Keys on the default keyboard. Until now, I have remapped F8, F9 and F10 to respectively XF86AudioPrev, ...
0
votes
0answers
78 views

how to toggle group layout (layer) with grp:toggle option of setxkbmap

I am only able to change keyboard layout using the switch option (while pressed) and not the toggle option. I tried several keyboard layouts, custom ones or default ones. I tried on Manjaro with Gnome ...
1
vote
2answers
417 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 ...
2
votes
1answer
867 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 ...
34
votes
2answers
23k views

Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?

All I can find about XkbOptions was: Option "XKbOptions" "grp:alt_shift_toggle" Seems I can only use alt+shift combination to switch keyboard layout, any other keys that I can use ?
53
votes
5answers
42k views

List all valid kbd layouts, variants and toggle options (to use with setxkbmap)

Is there a way from command line to retrieve the list of all available keyboard layouts and relative variants? I need to list all the valid layout/variants choices to be used then from setxkbmap. ...
1
vote
0answers
101 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' &&...
3
votes
2answers
544 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
107 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 ...
0
votes
0answers
15 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, ...
0
votes
0answers
17 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 ...
1
vote
0answers
17 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
26 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
7 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
109 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
18 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
65 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 ...
7
votes
1answer
3k views

Map Super+[Left|Right] to Home/End

How do I map key "Super" so, when combined with Left/Right, it produces keycode Home/End? My current setxkbmap: setxkbmap \ -model pc105 \ -layout 'us(dvorak-intl),us(alt-intl)' \ -option \ -...

1 2 3 4 5 6