Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
3201
views
xorg keyboard config not working (us altgr-intl no deadkeys)
I'm trying to get my keyboard to use the us layout with variation altr-intl and no deadkeys. Somehow my xorg-keyboard-config does not take effect. I looked up the config here [arch-wiki][1] but there seems to be a mistake in my config which I was unable to find. My current (not working) config looks...
I'm trying to get my keyboard to use the us layout with variation altr-intl and no deadkeys.
Somehow my xorg-keyboard-config does not take effect. I looked up the config here arch-wiki but there seems to be a mistake in my config which I was unable to find.
My current (not working) config looks like this:
/etc/X11/xorg.conf.d/00-keyboard.conf
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
Option "XkbVariant" "altgr-intl"
Option "XkbOptions" "nodeadkeys"
EndSection
I get it to work by using the following command but as you might know this is not persistent:
setxkbmap -layout us -variant altgr-intl -option nodeadkeys
I don't want this command to end up in my xprofile file or such. I would prefere to do it in xorg as I did with my trackpad, mouse ect.
The keyboard I'm using is a keychron k2 connected by cable. Here is the output of xinput, in case the keyboard doesn't get identified correclty:
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Synaptics TM3053-003 id=11 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=12 [slave pointer (2)]
⎜ ↳ Keytron Keychron K2 id=15 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse id=17 [slave pointer (2)]
⎜ ↳ Logitech Wireless Keyboard PID:4023 id=18 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=9 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=10 [slave keyboard (3)]
↳ Keytron Keychron K2 id=13 [slave keyboard (3)]
↳ Integrated Camera: Integrated C id=14 [slave keyboard (3)]
↳ Keytron Keychron K2 id=16 [slave keyboard (3)]
↳ Logitech Wireless Keyboard PID:4023 id=19 [slave keyboard (3)]
I tried to identify the keyboard by using "MatchIsProduct" "Keytron Keychron K2" without any luck either.
I'm running manjaro i3 community edition. The keyboard settings set in the manjaro-settings are also the wanted layout so I don't think that these settings would mess up my xorg config. I'm trying this on a thinkpad T550.
With the current config I get the us keyboard without deadkeys but the altgr-intl variant is not active.
Elfie
(111 rep)
Oct 20, 2021, 06:55 PM
• Last activity: Jul 31, 2025, 10:07 AM
5
votes
3
answers
4286
views
Add second keyboard layout with localectl
I am using Fedora 28 workstation with Gnome. My current layout status with `localectl status` is System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us I am using localectl set-x11-keymap "us,gr" "" "," in order to add second (greek) layout. New `localectl status` result is System Locale: LANG...
I am using Fedora 28 workstation with Gnome.
My current layout status with
localectl status
is
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
I am using
localectl set-x11-keymap "us,gr" "" ","
in order to add second (greek) layout. New localectl status
result is
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us,gr
X11 Variant: ,
but when I press super(key) + space, no greek characters are displayed.
How can I add a second keyboard layout with command line?
I have a fresh install of Fedora 28 Workstation. Selected language and keyboard layout are "US".
I am trying to add a second language in the keyboard but not from Gnome (i.e. Settings->Region & Language-> Input Source), but from the command line.
I am using localectl; when I use set-keymap, I can write greek characters on the login screen but not in a terminal.
I am trying set-x11-keymap and I can't write greek characters -- only US.
When I enter the simple command
localectl set-x11-keymap us,gr
in the login screen the language selector is present. But AFTER I log in, there is no language selector in the taskbar!?!?!
I then made a clean install.
Step 1: before I make anything, I execute setxkbmap -print
and I get
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
Step 2: I execute the following command
setxkbmap -layout "us,gr" -option "grp:win_space_toggle"
Step 3: now I am trying to press win+space keys but I can't print greek characters.
Step 4: the output of setxkbmap -print
is now
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+gr:2+inet(evdev)+group(win_space_toggle)"};
xkb_geometry { include "pc(pc105)" };
};
I logged out and there is no language selector on login screen. Also: after I log in, I can write only English characters.
chris
(51 rep)
Aug 15, 2020, 09:21 AM
• Last activity: Jul 28, 2025, 08:02 PM
1
votes
0
answers
60
views
mousepad with key combinations for bash, zsh, emacs, vi, or gnome on a German PC keyboard?
Recently, I noticed that it's possible to order cheap mousepads with customer-provided images on it. As I don't wish to reinvent the wheel: Has anyone of you folks, perhaps, already done the job of constructing an image with a list or lists of the most useful or frequent default key bindings of bash...
Recently, I noticed that it's possible to order cheap mousepads with customer-provided images on it. As I don't wish to reinvent the wheel: Has anyone of you folks, perhaps, already done the job of constructing an image with a list or lists of the most useful or frequent default key bindings of bash, zsh, emacs, vi, or Gnome for a rectangular mousepad of size between 22 cm × 18 cm and 25 cm × 20 cm? The key combinations should work on a
on a PC running Debian, if that matters.
In the positive case: could you share not only the image but, ideally, also the original document?

user743115
(1 rep)
Jul 25, 2025, 02:14 AM
• Last activity: Jul 26, 2025, 03:29 PM
2
votes
2
answers
5500
views
How to configure Deepin Desktop Environment (DDE) to change keyboard layout with caps lock?
My system is Manjaro Linux. But I think this does not metter. In settings panel I cannot make `CapsLock` as keyboard layout changer. _Please help_.
My system is Manjaro Linux. But I think this does not metter.
In settings panel I cannot make
CapsLock
as keyboard layout changer.
_Please help_.
kyb
(430 rep)
Apr 17, 2017, 06:49 PM
• Last activity: Jul 25, 2025, 02:03 AM
7
votes
2
answers
3387
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 English (us) and Ukrainian (ua) layouts, but not Russian (ru). I've tried to reset it with the following...
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 English (us) and Ukrainian (ua) layouts, but not Russian (ru).
I've tried to reset it with the following command:
setxkbmap -layout "us,ua,ru" -option ""
and played with many different options - nothing helps.
My system is Gentoo Linux and window manager wmii.
archer
(171 rep)
Jan 31, 2013, 06:11 PM
• Last activity: Jul 22, 2025, 07:05 PM
1
votes
1
answers
3396
views
How do I retain keyboard setup for my xrdp session?
Running RDP on my Win10 box against my Raspbian distro on an R4 with xrdp. My keyboard layout was not corresponding to my Norwegian keyboard. I followed the advice in https://unix.stackexchange.com/questions/99085/save-setxkbmap-settings to get the keyboard (Norwegian). `setxkbmap no` in a terminal...
Running RDP on my Win10 box against my Raspbian distro on an R4 with xrdp.
My keyboard layout was not corresponding to my Norwegian keyboard.
I followed the advice in https://unix.stackexchange.com/questions/99085/save-setxkbmap-settings to get the keyboard (Norwegian).
setxkbmap no
in a terminal fixes it. I also followed the advice and added that to ~/profile
.
Problem is my keyboard layout seems to be reset when the connection is broken (for what ever reason, network glitch, rebooting router after fiddling with some settings etc) or simply being inactive for a while even without the connection being broken.
Any takers?
Quick question. What's the difference between setxkbmap no
and setxkbmap -layout no
? Both seems to do the trick but both suffers from the same lack of permanency.
Brumlemannen
(11 rep)
May 26, 2020, 08:50 AM
• Last activity: Jul 22, 2025, 07:04 AM
43
votes
11
answers
42590
views
How to display the current keyboard layout?
Is there a utility that allows to graphically display the current keyboard layout? This can be useful, for example, when writing in a foreign language and having the physical keyboard only indicating the local language (positioning of symbols, etc.). I would like to get a display similar to the foll...
Is there a utility that allows to graphically display the current keyboard layout?
This can be useful, for example, when writing in a foreign language and having the physical keyboard only indicating the local language (positioning of symbols, etc.). I would like to get a display similar to the following:

landroni
(11586 rep)
Jan 30, 2014, 09:15 AM
• Last activity: Jul 20, 2025, 12:08 PM
2
votes
1
answers
2585
views
How to create a new keyboard layout in the /usr/share/X11/xkb directory in Ubuntu?
In the ```/usr/share/X11/xkb/symbols``` directory there are various keyboard layouts listed. I made a copy of the ```/usr/share/X11/xkb/symbols/us``` file under the name ```/usr/share/X11/xkb/symbols/new_test_layout```. The symbols corresponding to the keys being pressed are indicated in the file as...
In the
/usr/share/X11/xkb/symbols
directory there are various keyboard layouts listed. I made a copy of the /usr/share/X11/xkb/symbols/us
file under the name /usr/share/X11/xkb/symbols/new_test_layout
.
The symbols corresponding to the keys being pressed are indicated in the file as in the given example:
xkb_symbols "basic"{
//other keys
key {[q, Q]};
//other keys
};
This means that the symbol lowercase q appears when the key AD01 is pressed normally, and uppercase Q appears when the key AD01 is pressed along with shift key. From my understanding, the third symbol listed will appear when the key is pressed along with alt-gr key, and the fourth symbol when it is pressed along with alt-gr and shift both.
I can replace the symbols provided under each key with a symbol of my choice. However, in this file the symbols are not being directly represented as string characters or by their Unicode values. For example in the file there is
key {[slash, question]};
I am very new to Linux, so I am not sure what these are, but I am guessing that they are variables defined in another file. Anyhow
will correspond to the symbol /
and
will correspond to the symbol ?
In this webpage, there is an example of an
layout for a Farsi keyboard.
https://itectec.com/ubuntu/ubuntu-how-to-add-a-new-keyboard-layout-custom-keyboard-layout-definition/
Here you can see for example,
{[Arabic_hah, bracketleft, 0x100202c]};
So the key AD10 (which is the P key in a regular QWERTY keyboard) should give the character ه which is listed as U0647 (ARABIC LETTER HEH) under Unicode. The letter is being referred to as
. Where do I find a listing of these names? If I were to simply use U0647 in its place, would it still be recognised in any file within the
directory? In Urdu there is a letter *choti he*, ہ that looks similar to the Arabic heh, but has a different Unicode listing: U06C1 (ARABIC LETTER HEH GOAL). I do not know the name that is being used for *choti he* in Linux because I cannot find the Urdu keyboard layout anywhere in the /usr/share/X11/xkb/symbols
directory, even though the files for Dari (
) and Arabic (
) are present.
Will it be sufficient if I were to simply use the Unicode values for all symbols that are supported by Linux in any file within the
directory?
sriganesh
(111 rep)
Sep 25, 2021, 12:36 PM
• Last activity: Jul 19, 2025, 06:03 AM
43
votes
8
answers
36426
views
Swap alt and super
I have a Macbook Air that runs Linux. I want to swap the `alt` and `super` keys in both sides of the keyboard with each other. How do I do this with cli tools? **Update** Following Drav Sloan's answer I used the following: keycode 64 = Alt_L keycode 133 = Super_L remove Mod1 = Alt_L remove Mod4 = Su...
I have a Macbook Air that runs Linux. I want to swap the
alt
and super
keys in both sides of the keyboard with each other.
How do I do this with cli tools?
**Update**
Following Drav Sloan's answer I used the following:
keycode 64 = Alt_L
keycode 133 = Super_L
remove Mod1 = Alt_L
remove Mod4 = Super_L
add Mod1 = Super_L
add Mod4 = Alt_L
keycode 108 = Alt_R
keycode 134 = Super_R
remove Mod1 = Alt_R
remove Mod4 = Super_R
add Mod1 = Super_R
add Mod4 = Alt_R
user24483
Aug 15, 2013, 09:35 PM
• Last activity: Jul 11, 2025, 04:04 AM
1
votes
0
answers
70
views
How to make "Ctrl-Shift" and "Ctrl-Shift-Arrows" shortcuts work together?
I am running KDE on Kubuntu 24, with default settings for almost everything. I am trying set up shortcuts to be Windows-like, as I am used to but I have gotten stuck on a weird bug. When I set Ctrl + Shift as the shortcut to change keyboard layouts, the Ctrl + Shift Left or Right combination (for se...
I am running KDE on Kubuntu 24, with default settings for almost everything. I am trying set up shortcuts to be Windows-like, as I am used to but I have gotten stuck on a weird bug.
When I set Ctrl+Shift as the shortcut to change keyboard layouts, the Ctrl+ShiftLeft or Right combination (for selecting the whole word) stops working.
If I set Alt+Shift as the keyboard layout change shortcut, the Alt+Shift+Tab combination (switch back to previous task) breaks.
I have now set the shortcut to switch layouts to something weird and inconvenient so make the others work, but it feels like bug that must've been fixed by someone years ago.
So the question is - is it really fixed? Or, at least, is there a workaround?
AlexandrX
(111 rep)
Dec 5, 2024, 04:24 PM
• Last activity: Jun 25, 2025, 06:28 AM
2
votes
2
answers
324
views
How do I configure US layout with German special characters (on Fedora/GNOME/wayland)?
On a Fedora system running GNOME under Wayland, I want to accomplish the following: - regular US ANSI layout - international keys / unicode keys on Right Alt + key (I really only need the German ones and maybe the Euro symbol) - no dead keys This is one of the layouts available on KDE and it's perfe...
On a Fedora system running GNOME under Wayland, I want to accomplish the following:
- regular US ANSI layout
- international keys / unicode keys on Right Alt+key (I really only need the German ones and maybe the Euro symbol)
- no dead keys
This is one of the layouts available on KDE and it's perfect for anyone with a US keyboard who needs european characters and wants to do coding. But there is no such layout on GNOME.
Does anyone know how I can configure it?
Hendrik Hübner
(21 rep)
Dec 5, 2024, 07:31 PM
• Last activity: Jun 25, 2025, 06:25 AM
0
votes
1
answers
78
views
Is it possible to determine the keyboard layout?
Please tell me, is it possible to display the current keyboard layout using xkbcomp on Alpine Linux? Alpine Linux is installed. I use Wayland with [Wayfire compositor](https://wayfire.org/) installed. I need to get data about the current keyboard layout in the console. There is only `xkbcomp`. There...
Please tell me, is it possible to display the current keyboard layout using xkbcomp on Alpine Linux?
Alpine Linux is installed. I use Wayland with [Wayfire compositor](https://wayfire.org/) installed. I need to get data about the current keyboard layout in the console. There is only
xkbcomp
. There is also gsettings
. Keyboard layout switching is implemented using Wayfire in the wayfire.ini
file in the [input section](https://github.com/WayfireWM/wayfire/wiki/Configuration#input) . However, Wayfire does not have the ability to transfer information about the current layout. That is why I am looking for a way to do this.
As a result of gsettings get org.gnome.desktop.input-sources sources
, I get @a(ss) []
.
setxkbmap
, gkbd-keyboard-display
, xkeycaps
, xkbprint
, xset
, localectl
not available.
And I would like to clarify that I am interested in the language layout.
Raalgepis
(21 rep)
May 29, 2025, 12:07 PM
• Last activity: May 30, 2025, 04:58 PM
0
votes
1
answers
2312
views
Can't change keyboard layout inside vncserver
How to change keyboard layout inside (tiger) vncserver? I am running `startxfce4` inside it. I can show country flag in the corner and switch layout by clicking on it, but I can't switch by keyboard shortcut, although I set it [![enter image description here][1]][1] [1]: https://i.sstatic.net/d3wcb....
How to change keyboard layout inside (tiger) vncserver? I am running
startxfce4
inside it. I can show country flag in the corner and switch layout by clicking on it, but I can't switch by keyboard shortcut, although I set it

Dims
(3425 rep)
Jul 26, 2018, 07:03 PM
• Last activity: May 29, 2025, 07:04 PM
5
votes
1
answers
2750
views
Xfce Keyboard Layout change Ctrl+Space
I've been googling this for almost a week to no avail.  When I open the Keyboard settings pane, the options (ones that have "Space" in them) are limited to only Alt + Space and Super + Space – there is no Ctrl + Space . I've found a couple of answers, none of which seem to work. The first one i...
I've been googling this for almost a week to no avail.
When I open the Keyboard settings pane, the options
(ones that have "Space" in them) are limited to
only Alt+Space
and Super+Space –
there is no Ctrl+Space.
I've found a couple of answers, none of which seem to work.
The first one is to install the xfce4-xkb-plugin (which I already had
installed), then set "use system default" flag in the Keyboard settings pane, after which use plugin Properties to set the languages and shortcuts.
It doesn't work – the Properties pane has only options
on how the pane item looks...that's it.
Number two is this line:
-option grp:ctrl_space_toggle,grp_led:scroll en,ru
It doesn't work either.
If I put this in my
.Xmodmap
file,
there is an error and the file isn't parsed anymore.
I gave up on searching, but I really need this, as it's a long time reflex.
Please help me set Ctrl+Space
as a shortcut to change layout.
(I use Arch Linux.)
simon
(171 rep)
Jun 22, 2016, 11:40 AM
• Last activity: May 29, 2025, 04:05 AM
3
votes
1
answers
506
views
How do I disable a keyboard key in udev? (at driver level)
I would like to disable a keyboard key completely, specifically the **XF86Back** (keycode: 166) and **XF86Forward** (keycode: 167) on the Lenovo ThinkPad X220. For the time being, I disable these two by having these two lines in my .bashrc: ``` xmodmap -e 'keycode 166=' xmodmap -e 'keycode 167=' ```...
I would like to disable a keyboard key completely, specifically the **XF86Back** (keycode: 166) and **XF86Forward** (keycode: 167) on the Lenovo ThinkPad X220.
For the time being, I disable these two by having these two lines in my .bashrc:
xmodmap -e 'keycode 166='
xmodmap -e 'keycode 167='
This disables the two keys in X11 as soon as I open the terminal (which is very often).
However, ibus overrides these when I change my language, so I have to open the shell in order to deactivate them again. Ibus provides the *"Use system keyboard layout"* option that solves this, but this breaks my language, so that's not an option either. Catch 22.
Since these two keys are causing me a lot of trouble, I would like to just disable capturing them at all, at driver level if possible. **Ideally**, the operating system would behave as if they don't exist, and no program should be able to detect their keypress no matter how low they attempt to go.
Is it possible to permanently disable keyboard keys like this?
user194515
Jul 7, 2019, 09:56 PM
• Last activity: May 14, 2025, 03:24 PM
6
votes
1
answers
6697
views
Scrolling TTY without dedicated PgUp and PgDown
**Stop reading if `uname -r` returns a Linux version greater than 5.9**, since scrollback has been simply removed ([1][3], [2][4]). ---- My keyboard does not have separate PgUp and PgDown keys. They are in the numpad, sharing their position with KP_9 and KP_3. [![Keypad picture][1]][1] Scrolling ter...
**Stop reading if
Scrolling terminals with
uname -r
returns a Linux version greater than 5.9**, since scrollback has been simply removed (1 , 2 ).
----
My keyboard does not have separate PgUp and PgDown keys.
They are in the numpad, sharing their position with KP_9 and KP_3.

Shift+Pg{Up,Down}
was not possible either with
Numlock on or off.
Since I don't care for the keypad numbers but do care a lot for scrolling,
I have successfully remapped them in X11 to "Prior" and "Next" regardless
of Numlock state, and now Shift+{PgUp,Down}
both work in Xterm.
However, I can't achieve the same in the TTY. With other keyboards that had exclusive Page keys, I could use Shift+PgUp
to scroll back after cat
ing a large file, for example.
### Original keycodes
As of showkeys
:
KP_3/KP_PgUp = 73
KP_9/KP_PgDown = 81
Slash = 89
Right Shift = 54
As of dumpkeys
:
PgUp = 104
PgDown = 109
Slash and Right Shift were also listed because I will also swap them just
for testing.
### Attempts
- Modified /etc/console-setup/remap.inc
to exactly this:
keycode 73 = Prior
shift keycode 73 = Scroll_Backward
shift shiftl keycode 73 = Scroll_Backward
shift shiftr keycode 73 = Scroll_Backward
shift shiftl shiftr keycode 73 = Scroll_Backward
shift ctrll keycode 73 = Scroll_Backward
shift shiftl ctrll keycode 73 = Scroll_Backward
shift shiftr ctrll keycode 73 = Scroll_Backward
shift shiftl shiftr ctrll keycode 73 = Scroll_Backward
keycode 81 = Next
shift keycode 81 = Scroll_Forward
shift shiftl keycode 81 = Scroll_Forward
shift shiftr keycode 81 = Scroll_Forward
shift shiftl shiftr keycode 81 = Scroll_Forward
shift ctrll keycode 81 = Scroll_Forward
shift shiftl ctrll keycode 81 = Scroll_Forward
shift shiftr ctrll keycode 81 = Scroll_Forward
shift shiftl shiftr ctrll keycode 81 = Scroll_Forward
keycode 89 = Shift
keycode 54 = slash
shift keycode 54 = question
altgr keycode 54 = degree
shift altgr keycode 54 = questiondown
- Followed the instructions of How to change console keymap in Linux? .
dumpkeys > pageupdown
Then swapped
keycode 73 keycode 104
keycode 81 keycode 109
keycode 54 keycode 89
in that file and issued loadkeys -s pageupdown
.
### Results
In both experiments,
- Although the two keypad keys don't print numbers anymore and PgUp
still
works (it scrolls in less
) as desired, Shift+PgUp
does not scroll the TTY.
- Right Shift and Slash have been correctly swapped.
### Additional notes
- Toggling Numlock does not help in any of the configurations. The Fn key
also does not have any effect in those keys.
- I have also tried mapping more
ordinary keys, namely l
and p
, to the Page actions, without success.
- If it helps in any way, this is the XKB map that works in the X session:
partial keypad_keys
xkb_symbols "noKPNumbers" {
key { [ Prior, Prior ] };
key { [ Next, Next ] };
};
How can I map the keypad PgUp and PgDown keys in such a way that Shift+Pg{Up,Down}
scroll the TTY buffer? Is it possible at all?
Quasímodo
(19361 rep)
Oct 21, 2020, 03:07 PM
• Last activity: Apr 13, 2025, 11:05 PM
13
votes
3
answers
1622
views
Using new (2019) Microsoft Ergonomic Keyboard - how to map emoji and office keys into something usable?
I bought a „Microsoft Ergonomic” keyboard to replace my used up Microsoft Natural. They moved „Win” key to the left and placed new „Office” and „Emoji” keys on the right instead: [![Alt, Office, Emoji - new keys][1]][1] By default, those keys seem to be not recognized by xorg (at least on Ubuntu 20....
I bought a „Microsoft Ergonomic” keyboard to replace my used up Microsoft Natural. They moved „Win” key to the left and placed new „Office” and „Emoji” keys on the right instead:
By default, those keys seem to be not recognized by xorg (at least on Ubuntu 20.04 I use).
I am looking for hints how to map those keys. I heavily used Win-… combinations in my custom keyboard shortcuts, so I press those keys repeatedly). I'd prefer to make the Office key behave as Win used to (Super if I recall), and map Emoji as some new modifier.
I tried

evtest
; it emits some key combinations. Both reports below are from a single keypress.
(Office)
Event: time 1604935916.773242, -------------- SYN_REPORT ------------
Event: time 1604935919.037417, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1604935919.037417, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1604935919.037417, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1
Event: time 1604935919.037417, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 1
Event: time 1604935919.037417, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1604935919.037417, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1604935919.037417, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1604935919.037417, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
(Emoji)
Event: time 1604935938.159725, -------------- SYN_REPORT ------------
Event: time 1604935942.720256, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1604935942.720256, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1604935942.720256, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1
Event: time 1604935942.720256, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 1
Event: time 1604935942.720256, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1604935942.720256, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1604935942.720256, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1604935942.720256, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1604935942.720256, -------------- SYN_REPORT ------------
Event: time 1604935942.728233, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c
Event: time 1604935942.728233, type 1 (EV_KEY), code 57 (KEY_SPACE), value 1
Event: time 1604935942.728233, -------------- SYN_REPORT ------------
^X@s^[^@Event: time 1604935942.872415, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c
Event: time 1604935942.872415, type 1 (EV_KEY), code 57 (KEY_SPACE), value 0
Event: time 1604935942.872415, -------------- SYN_REPORT ------------
Event: time 1604935942.880280, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1604935942.880280, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1604935942.880280, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1
Event: time 1604935942.880280, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 0
Event: time 1604935942.880280, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1604935942.880280, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1604935942.880280, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1604935942.880280, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1604935942.880280, -------------- SYN_REPORT ------------
Mekk
(261 rep)
Nov 9, 2020, 03:24 PM
• Last activity: Apr 9, 2025, 04:45 PM
0
votes
2
answers
59
views
How to get Danish letters on US (physical) keyboard on Fedora Linux?
I am a Dane residing in the USA. On Windows, I select "US International Keyboard", and I can produce ```æ, ø, å``` with ```Alt-Gr+z, Alt-Gr+l, Alt-Gr+w```. How can I do the same on Fedora Linux? Is there a keyboard layout file that matches the Windows one? And how do I select it - In...
I am a Dane residing in the USA.
On Windows, I select "US International Keyboard", and I can produce
æ, ø, å
with -Gr+z, Alt-Gr+l, Alt-Gr+w
.
How can I do the same on Fedora Linux?
Is there a keyboard layout file that matches the Windows one?
And how do I select it
- In the GUI?
- In a GNOME and/or XFCE configuration file?
Lars Poulsen
(357 rep)
Apr 5, 2025, 05:29 PM
• Last activity: Apr 5, 2025, 09:35 PM
0
votes
0
answers
75
views
Fedora: Is there a command to change keyboard layout but by TUI?
For `Fedora` **Server** to change the keyboard layout is possible use the `sudo localectl set-keymap ` command in peace. Other approach would be with **TUI** (_Terminal User Interface_). I found the following answer in this network: * [In Fedora, how do I select a proper Norwegian keyboard layout?](...
For
Fedora
**Server** to change the keyboard layout is possible use the sudo localectl set-keymap
command in peace. Other approach would be with **TUI** (_Terminal User Interface_).
I found the following answer in this network:
* [In Fedora, how do I select a proper Norwegian keyboard layout?](https://unix.stackexchange.com/a/104262/383045)
Where among many methods the #1 is as follows:
$ sudo yum install system-config-keyboard
...
Installed:
system-config-keyboard.x86_64 0:1.3.1-14.fc19
Dependency Installed:
system-config-keyboard-base.x86_64 0:1.3.1-14.fc19
It to execute then the system-config-keyboard
command and get the TUI
Well when is executed the sudo dnf install system-config-keyboard
command appears:
No match for argument: system-config-keyboard
You can try to add to command line:
--skip-unavailable to skip unavailable packages
Yes, I can see in the command's output is for Fedora Core 19 (**fc19**) What would be the equivalent for Fedora Server **41**
**Question**
* Is there a command to change keyboard layout but by TUI?
For example Debian
and Ubuntu
have the dpkg-reconfigure keyboard-configuration
command
Manuel Jordan
(2108 rep)
Apr 4, 2025, 09:04 PM
0
votes
1
answers
3076
views
Metasploitable virtualbox has wrong keyboard layout
I just installed Metasploitable in VirtualBox for doing some exercises. Metasploitable is a Ubuntu Hardy-based system, with some built in errors that allows you to tamper with it. I live in Denmark, and thus I use a Danish keyboard layout. Since Metasploitable works for English, this means that my k...
I just installed Metasploitable in VirtualBox for doing some exercises.
Metasploitable is a Ubuntu Hardy-based system, with some built in errors that allows you to tamper with it.
I live in Denmark, and thus I use a Danish keyboard layout.
Since Metasploitable works for English, this means that my keyboard is now messed up a little bit when I type inside of this new VM.
Usually, when I have been working on Ubuntu or Kali VMs, then it is quite easy to navigate around and change the keyboard language layout.
This is harder now, since I only have a terminal to work with.
I have been searching around for solutions, the closest thing I have found is this:
sudo dpkg-reconfigure keyboard-configuration
Where I think I need to put the configuration I want in the
keyboard-configuration
field. But I don't know how to figure what the configurations are called for the different languages (trying intuitive names like "dk" fails).
So, how do I change the keyboard layout?
NotQuiteSo1337
(23 rep)
Sep 15, 2021, 07:20 PM
• Last activity: Apr 1, 2025, 11:09 AM
Showing page 1 of 20 total questions