Questions tagged [setxkbmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

Unable to remap caps lock to escape with xmodmap and setxkbmap (on a raspberry pi)

I am trying to remap the caps lock key to escape on my raspberry pi. I tried the following Following the answer of @jojo I tried the following: setxkbmap -option caps:swapescape but got the following ...
user avatar
  • 121
0 votes
0 answers
80 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 ...
user avatar
  • 11
0 votes
1 answer
284 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 /...
user avatar
0 votes
0 answers
109 views

setxkbmap swap right alt with left ctrl

Wanting to make my Right Alt key trigger Left Ctrl, preferably using setxkbmap -option. Every guide I've found has been for swapping Right Alt with Right Ctrl, but I need it to be mapped to Left Ctrl. ...
user avatar
1 vote
1 answer
372 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=="...
user avatar
  • 438
1 vote
1 answer
433 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 ...
user avatar
6 votes
2 answers
1k 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 ...
user avatar
  • 61
11 votes
3 answers
6k 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 ...
user avatar
  • 151
0 votes
1 answer
790 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 ...
user avatar
3 votes
0 answers
623 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,...
user avatar
  • 2,369
2 votes
1 answer
355 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+...
user avatar
  • 191
1 vote
0 answers
234 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> { [ ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
  • 105
2 votes
1 answer
1k 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 ...
user avatar
  • 21
2 votes
1 answer
758 views

Mac Home/End Fixed Once and For All

Has anyone successfully fixed Mac Home/End keys permanently? And I mean Home/End actually go to the beginning and end of the line. KeyRemap4MacBook works almost everywhere but there are still ...
user avatar
  • 187
2 votes
1 answer
523 views

Configuring xkb so that left winkey is an additional left alt

I'm never using the windows key but for whatever reason on my laptop keyboard I often hit them by mistake trying to hit ALT. How can I configure xkb so that the left windows key acts as an additional ...
user avatar
1 vote
1 answer
275 views

How to configure X kbmap for 4 languages while keeping two "main" languages easily switchable?

Now I have setxkbmap -model acer_laptop -layout lang1,lang2 -variant , setxkbmap -option -option grp:caps_toggle in a startup script. It works well for two languages. I want to have 4 languages (...
user avatar
  • 16k
2 votes
0 answers
614 views

How do I permanently map Shift-Right to PageUp on xubuntu?

I got myself a laptop and the keyboard is slightly goofed up because the right Shift key is in a place where I have typically had the PageUp key. So, I wanted to figure out how to remap the right ...
user avatar
4 votes
1 answer
2k views

Using a custom keyboard map

I'm trying to not overwrite /usr/share/X11/symbols/us, even thought I've been doing that for years. So I added to ~/xkb/jpic, a copy of dvorak-alt-intl from /usr/share/X11/symbols/us, since that's ...
user avatar
  • 121
11 votes
1 answer
7k views

Setting Hyper and Super modifiers for certain keys with setxkbmap or xmodmap

Problem: I want to modify/redefine my keyboard layout (pc105 se) so that when I press certain keys with mod3 (super) and mod4 (hyper), a different character is returned than usual. E.g. Keycode 61 ...
user avatar
1 vote
1 answer
201 views

Changing languages rapidly causes Linux to crash

So I'm running Xmonad on my college computer (which runs Kubuntu) and whenever I leave my desk, instead of using x-screensaver which is incredibly buggy and slow, I just change to another workstation, ...
user avatar
  • 131
6 votes
2 answers
8k views

Linux, Ubuntu & Apple Aluminium keyboard: remap greater/less with tilde

I have an Apple Aluminium keyboard. To the left of 1 key I have the less/greater (< >) key, not grave/tilde (` ~). xmodmap does not work for me: layout switching (done with setxkbmap) resets my ...
user avatar
  • 3,031