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
3
votes
1answer
128 views

Permanently change xkb keybindings?

I have a custom keyboard layout located in /usr/share/X11/xkb/symbols/us. Every time an update happens, this file is updated to the standard keyboard layout. Is there either a way to change this ...
3
votes
1answer
842 views

How does one use the setxkbmap -geometry option?

I have a Sun Type7 keyboard on my Debian Linux (/etc/debian_version == 7.8) box, and, since it appears to be much like the Sun type6 I attempted: $ (setxkbmap -model sun6 -layout us -geometry 'sun(...
3
votes
1answer
1k views

Can no longer switch keyboard layouts in xfce [closed]

This appears to be a surprisingly complex problem, and worse, I'm not sure if it was a configuration change that I made or if it was an update to ubuntu that caused the problem. I'm running Ubuntu ...
3
votes
2answers
917 views

How to bind super key to Ctrl+Shift using xmodmap? [duplicate]

I have read the xmodmap documentation. I could only find information on how to bind one key to another. How do I bind one modifier key to a combination of other modifier keys? Can I do this using ...
3
votes
0answers
259 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 ...
3
votes
1answer
218 views

xkb: inverted keyboard layout indication

I use scroll LED as keyboard layout indicator (off - English, on - Russian). It works great on the PS/2 keyboard at home. And it works in general on my work computer (USB keyboard). But sometimes I ...
3
votes
0answers
76 views

Custom keyboard layout not used verbatim

I've created a custom keyboard layout, ~/dot/c98.xkb. It looks like this: // vim: ft=xkb xkb_keymap { xkb_keycodes "k" { include "evdev(evdev)" }; xkb_geometry "g" { include "pc(pc105)" }; ...
3
votes
0answers
1k views

Map right Alt to Ctrl key

I use Linux Mint Mate 17, which is based on Ubuntu 14.04, and I want to map my right Alt to act as a Ctrl key since I can reach it with my right thumb which is more comfortable. How can I do that? I ...
3
votes
0answers
113 views

How to trace xkbmap changes?

I am running Fluxbox on an Ubuntu (14.04.5) NoMachine server. I have a very simple startup file: fluxbox="$HOME/.fluxbox" stderr="$fluxbox/stderr" (umask 077; > "$stderr") exec 2> "$stderr" ...
3
votes
0answers
900 views

Xfce Keyboard Layout change Ctrl+Space

Ok, so I've been googling this for almost a week now...without any luck. When I open the Keyboard settings pane, the options are only limited to (ones that have "Space" in them) Alt+Space and Super+...
3
votes
0answers
85 views

How can I stop using setxkbmap groups from snagging modifier keys?

I have several different keyboard maps that I can switch between to my heart's content using: setxkbmap dvp Then when I want another one: setxkbmap ptf Etc. This works, but I'd rather use the ...
3
votes
0answers
248 views

alt-shift toggles keymap when part of a shortcut

I have two xkb layouts, and use Alt+Shift to toggle between them: setxkbmap "fr,us" -option grp:alt_shift_toggle However, when I press a shorcut which contains Alt+Shift, the shortcut isn't taken ...
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 ...
3
votes
0answers
393 views

How do I get a list of keys currently loaded with XKB?

I am writing an evdev-reliant daemon that needs to know the complete keyboard layout currently in use. Getting the properties of the current XKB layout is easy. You just use setxkbmap -query or ...
3
votes
2answers
213 views

Is there a program to monitor xkb state?

I'd like to show the state of xkb on status bar of (preferably any) window manager. State should include LED-indicators (both physical and virtual), modifier state, and both keycode and keysym each ...
3
votes
0answers
204 views

XKB - Clearing locked modifiers

I've been having some trouble creating a custom keymap with XKB configuration. I would like to have a Shift key that locks when called with a specific modifier and can be pressed again to toggle the ...
3
votes
0answers
109 views

Dvorak layout, but QWERTY with Ctrl or Alt modifiers

I comfortably type using a keyboard layout named Light Developer's Dvorak, which I have further customized (negligibly) for myself. How do I configure, so that pressing Ctrl, Alt, etc. will read the ...
3
votes
0answers
416 views

Will booting ubuntu in recovery mode use default keyboard layout?

I have a chromebook with Ubuntu 15.04 and I need to customize some of my keyboard keys in xkb. Unfortunately while doing so I managed to disable my keyboard and needed to boot from live USB to revert ...
3
votes
0answers
882 views

xkbmap remap PrtScr and Insert Keys to Home and Escape

I've been fumbling with xkbmap for a while, and I can't figure out how to remap the Print Screen button to Home. It's as if the us keymap just doesn't mention the PRSC key code at all. I can't use ...
3
votes
0answers
169 views

Why won't my custom layout work?

I'm trying to create a custom layout that I can use for various symbols. For now, I just copied the contents of gr(bare). However, the layout does not appear to work. When I press Caps Lock, the ...
3
votes
1answer
215 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 ...
3
votes
1answer
528 views

How can the xkb layout settings be simplified?

The question is, if there is a way to simplify the structure of the xkb configuration related to keyboard layouts? As explained in further detail below there are 5 independent places in which a ...
3
votes
0answers
162 views

Unmaping BKSP and RTSH in Xorg

I am trying to improve my typing habits, I have Backspace located elsewhere on my keyboard layout, but I would like to unmap the standard backspace key while I learn to use the one on my keyboard. In ...
3
votes
0answers
486 views

Where are xkb options defined?

I'm not too experienced with Linux on personal computers, but I've recently installed Debian Jessie on my laptop (using GNOME 3). It's a Macbook, so there's a command key on the keyboard. Initially, I ...
3
votes
0answers
330 views

XKB: Can I have an eight-level key and have Ctrl participate in selecting it’s levels?

Is there an XKB way to generate a key event, form a normal key combo which includes Ctrl without having the ctrl modifier bit set? Or the same question asked in another way: Can I have an eight-level ...
3
votes
0answers
536 views

Remapping Left Control <LCTL> in xkb changes behavior of Alt + Left Shift

For some reason pressing any alt key (including <MENU>) together with <LFSH> toggles "Switch windows of an application". This can be turned off by commenting out key <LCTL> { [ ...
3
votes
0answers
118 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
2
votes
2answers
431 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 ...
2
votes
1answer
111 views

How can I list all layouts and corresponding variants that don't use 3rd level symbols?

I need to list all possible xkb layouts and their respective variants that do not use 3rd-level symbols. Manually review of all files in /usr/share/X11/xkb/symbols/ directory is crazy, there maybe an ...
2
votes
2answers
3k views

How do you configure numpad keys using XKB?

I haven't figured out how you configure XKB to use the numpad yet. I found the following in the "us" file. partial alphanumeric_keys modifier_keys xkb_symbols "basic" { name[Group1]= "USA"; ...
2
votes
1answer
438 views

Problem with meta key on Emacs

I have a problem with meta key in Emacs. I trying to use M-> or M-< but in fedora meta key is left Alt that is key change layout (alt+shift) when i press M->(alt+shift+>). How people solve this ...
2
votes
1answer
435 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 ...
2
votes
1answer
3k views

How to find the raw keycodes for xkb? [duplicate]

At first glance, it seems /usr/share/X11/xkb/keycodes/ contains the mapping of raw keycodes reported by the device, and 'showkey --scancodes` command can return the scancode. It's easy to think that ...
2
votes
2answers
991 views

Visualizing layout key maps in xkb

I'm using setxkbmap -query layout us,in -variant ,tam to be able to enter tamil characters. I've not used it before, so I can't find the keys on the keyboard very easily. I've used xkbcomp /usr/...
2
votes
1answer
520 views

Using xkb to remap quote and Right Control

On a standard US keyboard, I've swapped Caps Lock and Left Control, which is almost essential for proper Emacs usage. For symmetry, I'd like to swap ' (the quote key) to Right Control. xkb seems like ...
2
votes
1answer
699 views

Transparently mapping a modified key (with xkb)

I'm trying to simulate numeric keypad keys on the main keyboard but am struggling with xkb. How do I to convert a <LWIN> + <AD07> into a 'Left'? (AKA Super + u) It needs to play nice ...
2
votes
1answer
272 views

Using remapped Left Control <LCTL> key as shortcut

I have remapped the <LCTL> key to Tab in /usr/share/X11/xkb/symbols/en using key <LCTL> { [ Tab, Tab, Tab, Tab ] }; key <MENU> { [ Alt_R, Alt_R, ...
2
votes
1answer
152 views

xkb - Keymaps at `/usr/share/X11/kbd/symbols` 2 values vs 4 values being specified

I was checking the keymap found at /usr/share/x11/kbd/symbols and in particular, I was browsing the us keymap and I didn't understand how this works: key <TLDE> { [dead_grave, dead_tilde, ...
2
votes
1answer
938 views

Remap altgr key to AC10 in XKB

I'd like to remap the altgr key to AC10 key. So far, I edited /usr/share/X11/xkb/symbols/us as follows: // key <AC10> { [ semicolon, colon ] }; key <AC10> { [ Alt_R ]} After $ ...
2
votes
2answers
2k views

Setxkbmap turns off NumLock LED - but not NumLock

Whenever I use setxkbmap in a terminal (or my .bashrc), the next time I press any modifier keys (ctrl, shift, alt) the NumLock LED on my keyboard goes off, but NumLock itself is still active so it's ...
2
votes
1answer
447 views

xmodmap not working for Alt-a

So, I am trying to map Alt-A to the right arrow. I followed 'xev and xmodmap' approach described here and came up with this: xmodmap -e "keycode 38 mod1 = Right" which fails miserably: when I press ...
2
votes
1answer
938 views

Map Insert key to End/Home

I'm trying to remap my Insert key to End and shift+Insert to Home on Ubuntu 16.10. Inspired by Map Super+[Left|Right] to Home/End and some other resources I made the following mysymbols file: partial ...
2
votes
2answers
544 views

How to make xkb settings stick after restart [duplicate]

I'm running Ubuntu 15.10. I'm running the following command in the terminal to swap the left Alt and left Control keys: setxkbmap -option ctrl:swap_lalt_lctl. It works, but as soon as I reboot It's ...
2
votes
1answer
599 views

How to change keyboard settings of the active user using udev and setxkbmap?

I have a usb keyboard that I plug in into my desktop at work. While using it tend to manually set the following setxkbmap option: setxkbmap -option compose:ralt setxkbmap -option ctrl:swap_rwin_rctl ...
2
votes
1answer
222 views

Unable to add a keyboard layout on Cinnamon

I'd like to try the Polish Colemak layout. It's built into xkb: /usr/share/X11/xkb/rules $ grep -ri 'Polish (Colemak)' * base.extras.xml: <description>Polish (Colemak)</...
2
votes
2answers
223 views

Swap shift and caps-lock

I would like to swap the behavior of the two keys Shift and Caps Lock on my keyboard. I have read the options in /usr/share/X11/xkb/rules/base.lst, played around with'em, but none of them seems to be ...
2
votes
1answer
77 views

How to troubleshoot layout switching when it “locks” on specific layout?

Recently I installed ChakraOS based on Arch with KDE and I cannot switch layout. Neither graphically, nor from cli. The strange thing is that I can switch to spanish with various other distributions ...
2
votes
1answer
815 views

Colon/Semicolon remapping with xmodmap with two active setxkbmap layouts

Gentlemen, I'm a non-native english speaker and need a second language layout. And I'm a heavy Vim user, and use : much more often than ;. At the moment they are remapped in .vimrc, buth that causes ...
2
votes
2answers
1k views

Mapping Super Keys to Control without Xmodmap

I've been attempting to switch my super and control keys in X on a macbook and have been half successful. I'd like to avoid creating a custom .Xmodmap if possible, as there is a temporary 100% cpu bug ...
2
votes
0answers
45 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, ...