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
1
vote
0answers
13 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
14 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
5 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
18 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. ...
1
vote
0answers
69 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
4 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
27 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
33 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
39 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
160 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
27 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
37 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
21 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
22 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
7 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
51 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
41 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
283 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 ...
1
vote
1answer
790 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 ...
33
votes
2answers
22k 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 ?
48
votes
5answers
40k 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
82 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' &&...
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" ...
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 ...
2
votes
2answers
462 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
96 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
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, ...
0
votes
0answers
14 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
14 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
20 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
84 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
16 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
51 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 \ -...
2
votes
0answers
39 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
65 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
1answer
66 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 ...
10
votes
4answers
8k views

How to display the current keyboard layout?

Is there a utility that allows to graphically display the current keyboard layout? This can be useful, for example, when writing in a foreign language and having the physical keyboard only ...
61
votes
12answers
61k views

How do I get current keyboard layout?

I'm wondering is there any command line tool, that returns current keyboard layout. I have XkbLayout set to us, ru. Update: setxkbmap returns layout settings, not selected layout. E.g.: $ setxkbmap ...
12
votes
8answers
15k views

Map Caps Lock to Control in Linux Mint

I am running the latest version of Linux Mint with Cinnamon. I'm trying to map Caps Lock to Ctrl, but I cannot figure out how to do it. All web searches I've done have led me to older versions of ...
0
votes
0answers
21 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 <...
4
votes
3answers
727 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 ...
3
votes
2answers
551 views

Make X11 source my ~/.Xkbmap

I want to remap capslock to ctrl, I found the answer online: setxkbmap -option ctrl:nocaps I tried in shell, it works. Now I want to persist it, I found some online post says that I need to create ~/...
3
votes
1answer
219 views

3rd level with space XKB

I have gone through plenty of documents and spent a lot of time trying to configure it, but so far unsuccessfully. I have keyboard with the 3rd level keys (probably ISO_LEVEL3_shift ?) So when I press ...
4
votes
1answer
1k views

Keyboard layout change indicator

I have (and often change) 3 keyboard layouts on my Mint 17/Mate. I would like to see a notification on my screen when layout is changed, e.g. "Switched to English/US". I tried to do it via keyboard ...
15
votes
5answers
16k views

How to permanently swap esc and caps lock in xfce / xubuntu?

I followed some post a while ago, and it said to make an ~/.xmodmap file like so: ! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = ...
11
votes
5answers
11k views

How can I make Ctrl + Alt act like Alt gr in Ubuntu?

I recently switched to Ubuntu on my laptop and one thing that almost got me to switch back to windows is the fact that I can't make Ctrl + Alt to act like Alt gr. I have programmed in several years ...