xkb

KDE – Map left and right `Alt` keys independently

KDE – Map left and right `Alt` keys independently When creating shortcuts, the left and right Alt keys map to identical references. Is there a way to create a shortcut for both individually so that RAlt+Key1 and LAlt+Key1 can point to different behaviors? Output from showkey: press any key (program terminates 10s after last keypress)… keycode …

Total answers: 1

`setxkbmap kr` not doing anything?

`setxkbmap kr` not doing anything? I’m trying to add a configuration to my multilingual setup on my ArchLinux desktop, but Korean doesn’t seem to do anything, despite it being listed under setxkbmap. How do I set it up similarly to other languages? So far, what I’ve been doing is basically this: # For US International: …

Total answers: 1

XKB spec says 63 levels max per type. For me it's 8. What am I doing wrong?

XKB spec says 63 levels max per type. For me it's 8. What am I doing wrong? X.org version: 1.21.1.7 Distribution: Kubuntu 23.04 I duplicated the included EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK type, inserted an additional level as Level1, and shifted all existing levels by +1. The highest level was then Level9. Running setxkbmap (regardless of specified layout, since …

Total answers: 1

How many levels can XKB accomodate?

How many levels can XKB accomodate? I am intending to add an additional level to the unconventional 8-level German Neo2 layout for redirecting keys to QWERTY when the control modifer is pressed. Whilst I don’t expect 9 levels to not work, it would be reassuring to know the maximum number of levels. I read somewhere …

Total answers: 1

Set individual auto-repeat rate for each key

Set individual auto-repeat rate for each key On X11, doing something like xset r rate 120 240 it’s possible to set the repeat rate for the entire keyboard. But I wonder if it’s possible to do the same thing for each individual key? (Ie. to have different keys have different repeat rates.) Perhaps using some …

Total answers: 2

Change default keyboard layout for virtual terminal

Change default keyboard layout for virtual terminal I use customized keyboard layout, which was set to default in UI gnome settings. It works well in gnome. However, when I open a new virtual termnial (Ctrl+Shift+F4 orCtrl+Shift+F5 ) It does not use my prefered layout 🙁 Any idea how to make my layout the default everywhere …

Total answers: 1

How to remap a regular key into a modifier key (Shift…) in Linux

How to remap a regular key into a modifier key (Shift…) in Linux On my new laptop keyboard, there’s a strange key next to my shift key. Frankly it’s useless to me and having a shorter shift key doesn’t let me reach some of the combinations that I was used to. I’d like to turn …

Total answers: 2

Xkb names of brightness, volume control and standby functions

Xkb names of brightness, volume control and standby functions I’ve written a custom keyboard layout in xkb and I would like to incorporate volume and brightness control as well as the standby and maybe shutoff function into it so I don’t have to reach for the highest row of keys when I want to change …

Total answers: 1

Where should `setxkbmap us_programmer` go to make it persistent?

Where should `setxkbmap us_programmer` go to make it persistent? Where should my custom setxkbmap us_programmer goto to make it persistent when I log into Ubuntu graphically and also from SSH? Asked By: Gabriel || Source If I would want to use that layout, this is how I would probably do it. First add this variant …

Total answers: 1

How to use custom keyboard layout in Windows and Ubuntu (WSL)?

How to use custom keyboard layout in Windows and Ubuntu (WSL)? I created a custom keyboard layout with Microsoft Keyboard Layout Creator (MSKLC) for my Windows 10 machine. The custom keyboard layout is based on the Swiss German Layout and the numbers are swapped with symbols. After the installation of the new layout, it works …

Total answers: 2

Use the EurKEY keyboard layout

Use the EurKEY keyboard layout I want to used the EurKEY custom keyboard layout on my freshly installed Ubuntu. I followed their installation instruction and downloaded and installed the .deb package manually. However when I run setxkbmap eurkey nothing seems to change. (I test the layout by trying Alt+A to see if I get an …

Total answers: 1

setxkbmap with alt-shift-toggle option for >1 keyboard layout where layout has name with > 1 word

setxkbmap with alt-shift-toggle option for >1 keyboard layout where layout has name with > 1 word I am currently trying to set up my system to use two keyboard layouts and switch between with alt_shift. From this question, I obtained the following command: setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,il This does exactly what I would like, except …

Total answers: 1

Key mapping: printable char key (like a/s/d/f) mapped to control?

Key mapping: printable char key (like a/s/d/f) mapped to control? Is it possible to use xmodmap or xkb to turn a key that usually inserts characters (like a/s/d/f) into a modifier key? I try xmodmap with what I thought would work, e.g., add Control = a, but this does not lead to the desired result. Achieving this could …

Total answers: 1

How to swap Left Alt with Right Alt

How to swap Left Alt with Right Alt How to swap the keys and make Left Alt act like AltGr as well? I tried xmodmap with the following: clear mod1 clear mod5 keycode 108 = Alt_L Meta_L keycode 64 = Alt_R Meta_R add mod1 = ISO_Level3_Shift add mod5 = Alt_L Meta_L but it doesn’t work. …

Total answers: 1

How to stop Gnome from overriding XKB layout

How to stop Gnome from overriding XKB layout I’ve created an udev rule to set the layout of an USB keyboard: ACTION==”add”, ATTRS{idVendor}==”0e6a”, ATTRS{idProduct}==”030c”, ENV{XKBMODEL}=”pc105″, ENV{XKBLAYOUT}=”us”, ENV{XKBVARIANT}=”dvorak”, ENV{XKBOPTIONS}=”” It works in a X debugging session that only starts a terminal. The USB keyboard gets the layout, the laptop keyboard doesn’t. It doesn’t work in a …

Total answers: 1

How to map caps lock to arrow keys?

How to map caps lock to arrow keys? I am trying to map Caps Lock to the Down arrow key and Caps Lock with a shift modifier to the up arrow key. I’ve tried using xmodmap with the following input file: remove Lock = Caps_Lock keycode 66 = Down Up Pressing caps lock does work …

Total answers: 2

What is the difference between base and evdev xkb rules?

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 debug-events showed correct key, though. After checking Xorg.conf, I noticed the following line: Option …

Total answers: 1

How do FOUR_LEVEL_SEMIALPHABETIC xkb keys work?

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 “FOUR_LEVEL_SEMIALPHABETIC” { modifiers = Shift+Lock+LevelThree; map[None] = Level1; map[Shift] = Level2; preserve[Lock] = Lock; map[LevelThree] = Level3; map[Shift+LevelThree] = Level4; …

Total answers: 2

How to find the raw keycodes for xkb?

How to find the raw keycodes for xkb? 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 they are the same thing. But they are evidently different.showkeys -scancodes reliably returns the Linux Keycode, as in …

Total answers: 1