Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [setxkbmap]

The tag has no usage guidance.

0 votes
1 answer
40 views

setxkbmap multi layout and toggle not working

I installed regolith (based on i3 wm) on my Ubuntu 22.4, and now the default Keybind Super+Space to switch source layouts is not working because regolith uses it as a shortcut for other things. I ...
Nova's user avatar
  • 103
1 vote
1 answer
165 views

XKB layout, remaping key LSGT is disabling the less key

I am creating a custom XKB layout. My european keyboard has a physical less/greater key which I want to be mapped as 3rd level modifier. I used sucesfully include level3(lsgt_switch) However this also ...
n0tis's user avatar
  • 133
1 vote
1 answer
406 views

setxkbmap and ~/.XCompose - unable to set up valid dead key ...?

I'm running Debian 20.0.4 under XFCE4. I want to set up the left "Win" key (i.e., LWIN) on my keyboard as a dead key which can be used to output vowels with acute accents and which can be ...
HippoMan's user avatar
  • 389
1 vote
0 answers
326 views

Using setxkbmap to have | Hyper, Alt, Ctrl, Space-Bar, Ctrl, Alt, Hyper |

Want to set a keyboard layout in the following way Keys: Hyper, Alt, Ctrl, Space-Bar, Ctrl, Alt, Hyper Perhaps using setxkbmap. I use a US 104-Key Mechanical keyboard, and want a Dvorak Layout, with ...
Veak's user avatar
  • 1
2 votes
1 answer
2k views

Xfce window manager forget Super-D keyboard shortcut when I use setxkbmap

I'm running Linux Mint 20 with the Xfce desktop environment. As I am used to hitting Super+D for minimizing all windows, I changed the shortcut from Ctrl-Alt-D to Super+D in Settings / Window Manager /...
John Banks's user avatar
1 vote
1 answer
689 views

Changing keyboard layout when keyboard is plugged with udev

I want the activate a keyboard layout and to enable "sticky" modifier keys when my external keyboard is plugged in. I've made this udev rule: /etc/udev/rules.d/keyboard.rules ACTION=="...
Macario's user avatar
  • 478
2 votes
1 answer
731 views

Mapping capslock to printscreen key using setxkbmap

I am trying to map my caps-lock key to the print-screen key. Looking up in the /usr/share/X11/xkb/rules directory, and searching for print, prnt etc., I found out that the key is called one of prsc ...
hjpotter92's user avatar
7 votes
2 answers
2k views

Difference between setxkbmap and localectl

I'm a bit confused regarding the difference/relationship between localectl and setxkbmap. Is any of them meant to supersede the other? Or are they meant to be used in conjunction? Are they even ...
0xcurb's user avatar
  • 71
13 votes
3 answers
9k views

How to swap control and function key on Lenovo external keyboard?

I use a Lenovo ThinkPad (X220i) and like all ThinkPad users, I swapped "control" and "function" in the BIOS. Now I bought an external USB keyboard by Lenovo with a similar keyboard layout as the ...
Martin's user avatar
  • 191
0 votes
1 answer
1k views

Non-toggling caps lock with xkmodmap or xkb?

Is there a way to configure the caps lock button so it's not toggling? That is, so that it only applies the caps lock state while held down, and when released everything reverts to normal. The ...
David Given's user avatar
3 votes
0 answers
764 views

How to map space to control and unmap win from Hyper_L using xkb/setxkbmap

I am trying to make my space act as control by default (and as space when tapped by using xcape) and to make capslock act as the only hyper modifier. I have a working configuration for this in xmodmap,...
joelostblom's user avatar
  • 2,579
2 votes
1 answer
441 views

xmodmap: `Shift+CapsLock` -> `Delete` returns error bell

Because CapsLock has the keycode 66 on my English_US keyboard layout, the command xmodmap -e "clear Lock" -e "keycode 66 shift = Delete BackSpace" turns CapsLock into the Delete key and Shift+...
Enno's user avatar
  • 201
1 vote
0 answers
322 views

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

I followed the instruction here by defining my own xkbsymbols partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <COMP> { [ Caps_Lock ] }; replace key <CAPS> { [ ...
godblessfq's user avatar
3 votes
1 answer
3k views

setxkbmap: how to apply options to a specific device only?

I have two keyboards, one used primarily for typing and the other for R&R. The latter is Razer Orbweaver, which is like a half of a normal keyboard with several other keys slapped in various ...
XNRL's user avatar
  • 105
2 votes
1 answer
2k views

Switching left alt and left win

I have a Thinkpad X230 (german layout, [edit]running linux[/edit]) and I want to switch the left win- and the left alt-key somehow with the right alt-key (AltGr) not being touched. However, I haven't ...
michael's user avatar
  • 21

15 30 50 per page