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
6
votes
1answer
759 views

How to make a ISO_Level4_Shift and Lock in xkb?

I would like to know if it’s possible to set a key as a level 4 modifier or locker in xkb instead of using: Shift + ISO_Level3_Shift (a.k.a AltGr). Same question with the levels 6, 7 and 8 (using "...
6
votes
1answer
1k views

How can I change an underutilized keyboard key into a modifier key

I have a Korean keyboard that looks like this: Hanja (한자), just to the left of space, is so little utilized even when typing in Korean, yet it's in prime real real estate for my left thumb as an i3 ...
6
votes
1answer
372 views

xkb ɛ with acute accent [duplicate]

I've made a variant of Colemak which replaces ‘e’ with ‘ɛ’ – Latin letter open e (I have my reasons, but they're not relevant here). I have two problems: Though ‘ɛ́’ and other versions of ‘ɛ’ with ...
5
votes
3answers
2k views

How do I bind AltGr+key to a symbol?

I want to bind AltGr+W to æ, and some other combinations, how can I do this? I also need AltGr+Shift+W to Æ. I normally use setxkbmap to change the keymap.
5
votes
2answers
450 views

Making ISO_Level5_Shift work

With lines such as key <AD01> { [ q, Q, degree, paragraph ] }; in /usr/share/X11/xkb/symbols/us, I am able to access the degree symbol with ISO_Level3_Shift+q. I ...
5
votes
3answers
5k views

How to run Xvfb without root?

Desired result on a server without root: 1) Run Xvfb without input devices, or 2) Just get Xvfb to run Background: I have two machines both having nearly identical builds of CentOS. One machine ...
5
votes
1answer
295 views

Bind holding `SPACE` to `CTRL`, pressing/releasing `SPACE` to “ ”

I am using Archlinux. For ergonomic reasons I am looking for a possibility to use xkb to map holding the space bar to the CTRL modifier and pressing and releasing the space bar to insert a " ". So ...
5
votes
2answers
2k views

Map right alt to left control

I would like to have my right alt key work as left control while still having left control work as left control. So I edited my evdev file like this: <LALT> = 64; <LCTL> = 37; // original ...
5
votes
1answer
286 views

Use xkb to make shift insert parenthesis

I'm trying to imitate the setup I had on OS X (via Karabiner): Pressing the left Shift on its own key inserts a left (, but holding it down and pressing another key acts as a normal Shift key (and ...
5
votes
1answer
2k views

How to set up XKB to work with 3 modifier keys and 2 switchable layouts?

Consider the following XKB layout: xkb_keymap { xkb_keycodes { <ESC> = 9; <FK01> = 67; <FK02> = 68; <FK03> = 69; <FK04> = 70; <FK05> = 71; <FK06&...
5
votes
2answers
793 views

Escape on Control key, Control on Capslock key, Capslock on Escape key

I'm looking for a method that works in both X and the console with console-setup (e.g. xkboptions, no X-exclusive methods like xmodmap). With XKBoptions, combining ctrl:swapcaps and caps:swapescape ...
5
votes
2answers
821 views

How to make custom key type auto repeat in xkb

I have defined a custom key type in my xkb configure file to do some redirection (e.g. redirect Ctrl+p to Up etc.) However, I cannot get auto-repeat work for this custom type (neither the original key ...
5
votes
1answer
3k views

Why does the setxkbmap compose key mess with other keys?

I just found a tip to set the compose key manually: setxkbmap -option compose:caps Unfortunately, after running this several keypresses act as if the compose key had been pressed. For example, to ...
5
votes
0answers
430 views

Does xkb support complex key combinations such as mapping s+hjkl to left, down, up, and right?

I'm trying to configure xkb to make it register left, down, up, and right arrow when I hold s (the letter) and press h, j, k, or l (similar to Karabiner on MacOS). This will allow navigation in vim or ...
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 ...
4
votes
2answers
9k views

Where to put `setxkbmap` command in Xfce?

What is the proper place for setxkbmap command in Xfce? What is the proper place for it in general - other DEs and bare WMs? I have the following command: setxkbmap -layout "us(colemak), ru(...
4
votes
2answers
631 views

How do FOUR_LEVEL_SEMIALPHABETIC xkb keys work?

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: type "...
4
votes
3answers
2k views

How remap my CapsLock key to work as if it was a Return key using setxkbmap?

I tried several things: setxkbmap -option caps: return setxkbmap -option caps: enter I also tried to modify the file /usr/share/X11/xkb/symbols/pc by: "Key <CAPS> {[Enter]};" But nothing ...
4
votes
1answer
536 views

xkb: Use a key to change shift level without appearing as a modifier

I'd like to configure XKB to use Caps Lock as a way of producing different keys, but I don't want it to appear as a modifier. For example: F1 produces F21 keypress Caps Lock + F1 produces F1 ...
4
votes
1answer
2k views

xkb: Assign a new shift level to function keys

I'm trying to get some more use out of my function keys. I would like the physical F1 to F12 keys to appear as F21 to F32, so I can assign functions to F21 etc. in my window manager (e.g. switch to ...
4
votes
1answer
819 views

xkb: how toggle keyboard layout with win + capslock?

I want to set custom shortcut to change keyboard layout using setxkbmap. For example win_caps (Win+CapsLock). This option is not listed in /usr/share/X11/xkb/rules/base.lst How can I achieve this?
4
votes
3answers
718 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
916 views

Remapping space + ijkl to arrow keys

I want to set my keyboard so that pressing space and releasing will emit a "normal" space, but holding space and pressing one of i/j/k/l will emit an arrow key. Is it possible to do that? Thanks!
4
votes
1answer
2k views

How to use the '-config' option of `setxkbmap`?

I have a keymap file with this content: xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete+numpad(shift3)" }; xkb_compat { include "...
4
votes
1answer
1k views

What is wrong with these XKB rules files?

I am playing with xkeyboard-config. Currently, I'm trying to understand the rules files. I've used xkbcomp to get the current keymap from the X server and write it to a file. This keymap is the ...
4
votes
2answers
1k views

How to make AltGr+i,j,k,l work properly as cursor keys?

(I already asked this question on superuser but got no answer so I'll try here now.) I would like to have the cursor keys and some others available as AltGr+c,h,t,n etc. (i,j,k,l if you have qwerty). ...
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 ...
4
votes
1answer
2k views

Mapping AltGr to left control

I mapped my AltGr key to Ctrl with the following command: setxkbmap -option ctrl:ralt_rctrl However, when displaying the bindings with xmodmap -pke I can see that the keycode is associated to ...
4
votes
1answer
535 views

How can I set left alt + right shift keyboard layout switch in xubuntu?

From what I found from xkeyboard-config man page there is no such combination, which is very upset. Is there any workaround for that? Because I want layout change to be as in winXP.
4
votes
1answer
778 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 ...
4
votes
0answers
168 views

How to simulate mouse press with shift in xkbcomp

I have a mouse with a small built-in keyboard. I'd like to map one key as combination of "Shift-MiddleButton". This combination is used in Blender for navigation. I don't know how to emulate ...
4
votes
0answers
749 views

how to remap super keys?

I'm playing around with keyboard settings, and wanted to remap my windows keys to tab, for convenience. So I tried (133 is the left super key on my keyboard) xmodmap -e "keycode 133 = Tab Super_L" ...
4
votes
0answers
355 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
4
votes
0answers
479 views

GTK_IM_MODULE=xim breaks dead keys in GTK and QT applications

I'm using XIM to have the compose key take into account my ~/.XCompose file (it's the only input method that takes it into account, all the others I tried use hard-coded tables). However, it is ...
4
votes
0answers
407 views

replace menu key with capslock and capslock with left control using xkb

I followed the instruction here by defining my own xkbsymbols (Use setxkbmap to swap the Left Shift and Left Control) partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <...
4
votes
2answers
319 views

Changing one character in keyboard layout

I edited the file /usr/share/X11/xkb/symbols/us and added a definition with my new layout as follows partial alphanumeric_keys modifier_keys xkb_symbols "us_pl" { include "us(basic)" name[...
3
votes
2answers
882 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 "$(...
3
votes
1answer
3k views

setxkbmap: Multiple layouts with different variants

Using setxkbmap from a user's .xinitrc, I'd like to configure: German keyboard layout (de) without dead keys (variant nodeadkeys). French keyboard layout (fr) with dead keys (variant basic). So far ...
3
votes
1answer
3k views

How to change the flag pictures XFCE Keyboard Layouts applet uses for its indication?

XFCE Keyboard Layouts panel applet offers to use either textual or graphical indications. But the font used for textual indication is too small and the flag icons used for graphical are too blowzy. ...
3
votes
1answer
897 views

Switch between keyboard layout based on input event

I have a french and a US keyboard on my computer. I'm using awesome wm and have set everything so that it is easy for me to switch between keyboard layout. But I still have to do it myself. ...
3
votes
1answer
215 views

How to set the keymap for keyboards that are plugged in later?

I have configured my keyboard layout by adding a call to setxkbmap to my .xinitrc. This works for my laptop's internal keyboard and for any external keyboard that is plugged in when the X server ...
3
votes
1answer
5k views

How do I enable Shift Lock? (Sticky shift key)

I want to map one of my keys the shift lock key. In my understanding, the shift lock key is a kind of a 'sticky' shift key: it remains pressed, shifting all keys of the layout until pressed again. It ...
3
votes
1answer
2k views

Adding custom setxkbmap options

Use setxkbmap to swap the Left Shift and Left Control describes how to swap some modifier keys with xkbcomp. However, I'd like to just add a custom setxkbmap option instead of using xkbcomp with a ...
3
votes
2answers
532 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
973 views

Make an ordinary key act as modifier with xcape and xkb

To make Spacebar act as Ctrl under appropriate circumstances, GitHub page of xcape currently instructs as follows: # Map an unused modifier's keysym to the spacebar's keycode and make it a # control ...
3
votes
1answer
1k views

xmodmap clear modifier not working

Trying to understand XKB and how to customize keyboard mappings, specially for modifiers. A little experiment on disabling modifiers, leads to an unexpected result: (1) Modifier maps before $ ...
3
votes
1answer
2k views

How Are Keys or Keycodes Mapped to X Key Symbols?

I am trying to map a function key combination to an XF86 key symbol. The key combination is Fn+F1, which I was able to use showkey to get the raw keycode for. jason@io ~ $ showkey kb mode was RAW [ ...
3
votes
1answer
1k views

Keyboard layout switch (Ctrl+Shift) in a new xorg

I've been using similar config for years: Section "InputClass" Identifier "keyboard-all" MatchIsKeyboard "on" Driver "evdev" Option "XkbLayout" "us,ru,de" Option "XkbVariant" ",...
3
votes
1answer
46 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 ...