Questions tagged [setxkbmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
131 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
356 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
  • 357
1 vote
0 answers
309 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
  • 121
2 votes
1 answer
1k 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
640 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
689 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
8k 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
753 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,549
2 votes
1 answer
425 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
304 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
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 ...
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
2 votes
2 answers
878 views

Has anyone successfully fixed Mac Home/End keys functionality permanently?

I am on OSX 10.8+ and has anyone successfully fixed Mac Home/End keys functionality permanently? And I mean Home/End actually go to the beginning and end of the line. KeyRemap4MacBook works almost ...
Shaun's user avatar
  • 197
2 votes
1 answer
757 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 ...
Cedric Martin's user avatar
1 vote
1 answer
361 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 (...
Vi.'s user avatar
  • 17.2k
2 votes
0 answers
762 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 ...
John Smith's 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 ...
jpic's user avatar
  • 131
12 votes
1 answer
8k 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 ...
Xyz's user avatar
  • 361
1 vote
1 answer
216 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, ...
eZanmoto's user avatar
  • 131
6 votes
2 answers
9k 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 ...
kolypto's user avatar
  • 3,081