Questions tagged [keyboard-layout]

National keyboard layouts, relocating control keys, etc., generally at the operating system level. See /keyboard-shortcuts for key mappings in applications.

Filter by
Sorted by
Tagged with
16
votes
2answers
15k views

Use setxkbmap to swap the Left Shift and Left Control

Is it possible to swap the Left Shift and the Left CTRL keys using setxkbmap instead of xmodmap? EDIT I have switched to Fcitx, which works way much better with my keyboard layout and customized ...
25
votes
1answer
3k views

Shortcut keys that are independent to keyboard layout

Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout? Example: In most ...
6
votes
1answer
2k views

Remapping Caps Lock to Compose

Because I now and then need to use scandinavian letters despite using US Dvorak as my layout, I would like to use Caps Lock as a compose key. (I don't need Caps Lock at all, I'm not a forum troll) ...
3
votes
2answers
2k views

Unable to simulate Ctrl+Shift+Fn+F10 Key press \

I have an ubuntustudio 16.10 64 bit on an IBM Thinkpad E431. I am able to launch an app from a shell script, but the next step involves pressing Ctrl+Shift+F10 On my notebook I need to press the ...
4
votes
2answers
3k views

Key mappings in Linux

What do people mean when they point out that the "keys are not properly mapped" in a Linux installation when working on the command line? Isn't the default installation OK? What extra/specific ...
8
votes
5answers
838 views

Insert both characters if a dead key combination is not recognized (e.g. 'a → á, 'b → 'b)

When I use any variation of English, US international (with dead keys,altGr dead keys or alternative) on my Linux Mint machine I always encounter this behaviour. When I press one of these keys: ' " ...
10
votes
2answers
3k views

Override a few keycodes with XKB

I want to shuffle a few keys around with XKB. (Why? On a laptop where some keys are inconveniently located.) I currently use xmodmap: keycode 110 = Prior keycode 115 = Delete keycode 112 = Next ...
6
votes
3answers
17k views

Change the keyboard layout in LightDM

I installed LightDM on an Arch Linux system (using pacman) and it runs fine, except, that if I try to type a special character (like "@", "$", ...) in the user or password field it doesn't do anything....
2
votes
1answer
703 views

Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?

I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap (and I suppose you could also do it through the X protocol directly, eg. using libxcb as a ...
15
votes
3answers
3k views

How to make Compose work in GTK and Qt apps?

I used Gnome for a long time, but preferred vanilla X input method (xim) over the default GTK behaviour. I just set GTK_IM_MODULE and QT_IM_MODULE environment variables to xim, and didn't have any ...
17
votes
2answers
1k views

Select characters by holding down a key in Linux (like in OSX)

I've been wondering if there's any add on available that does something like Mac OS X. My mother tongue is Spanish, and now I live in a Francophone environment, I also do English a lot, so I'm in need ...
14
votes
1answer
4k views

Remapping both Caps Lock and Shift+Caps Lock in xkb

I am trying to configure xkb such that Caps Lock is mapped to the Compose key and Shift+Caps Lock functions as the traditional Caps Lock. I put the following in a new file called /usr/share/X11/xkb/...
4
votes
2answers
8k views

Where to put `setxkbmap` command in Xfce?

What is the proper place for setxkbmap command in Xfce? What is the proper place for it in general - other DEs and bare WMs? I have the following command: setxkbmap -layout "us(colemak), ru(...
3
votes
3answers
3k views

How to add a keyboard-layout applet switcher to Fluxbox toolbar?

In Manjaro Fluxbox there is no keyboard layout switch in the panel/toolbar tray. How do I add that?
11
votes
2answers
2k views

Adding custom Compose key sequences

How can one add custom Compose-key sequences? I have googled quite a bit, but could not find an explanation. In particular, I would like to have: <Compose> + <Z> + <Z> = ℤ # ...
5
votes
1answer
1k views

Change behaviour of numpad to dpad in GNOME 3

I'm a long-time Windows user who uses the numeric keypad with the numlock off for navigating text, highlighting it, etc. Shift + Home (7 on the numpad) selects all text till the beginning of the line. ...
26
votes
5answers
16k 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 ...
45
votes
5answers
35k views

List all valid kbd layouts, variants and toggle options (to use with setxkbmap)

Is there a way from command line to retrieve the list of all available keyboard layouts and relative variants? I need to list all the valid layout/variants choices to be used then from setxkbmap. ...
30
votes
1answer
2k views

Multiple Keyboard Layouts and Shortcuts

I configured KDE to switch easily from a bépo (french-dvorak) to an azerty layout. I configured it with the KDE interface (systemsettings), but I guess it just call setxkbmap be and setxkbmap fr. The ...
13
votes
1answer
17k views

How to get all my keys to send keycodes

I'm using Gentoo with XFCE. I have a logitech K350 keyboard, all but a few of the keys work as expected but there is one specific key that I want to use but when I run showkey no key codes are being ...
12
votes
4answers
20k views

How do I change currently selected keyboard layout from command line?

I have my keyboard layouts (two of them) and switching between them configured via the following command: setxkbmap -layout us,ru -option -option "grp:lctrl_lshift_toggle,ctrl:nocaps" Now I want to ...
20
votes
1answer
3k views

Switch between numbers and symbols on caps lock

Is it possible to set caps lock to switch between inserting numbers and the symbols they normally trigger when one holds shift? e.g. when you normally press the 9 key, you get a ( unless caps lock is ...
9
votes
1answer
3k views

Create and set custom keyboard layout

I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content: partial default alphanumeric_keys xkb_symbols "basic" { include "latin(type4)" ...
17
votes
2answers
13k views

How to define a Compose Key in terminal (no desktop environment)?

I would like to define a compose key on my system (Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal. I would like to set it up on my Alt-Gr key (right ...
16
votes
1answer
17k views

Save setxkbmap settings?

I'm having trouble setting my keyboard settings to swedish, running Raspbian on a raspberry pi. I've tried everything and the only thing that worked was the command setxkbmap se. But this doesn't ...
13
votes
5answers
8k views

How to change keyboard layout in gnome 3 from command line

I am using gnome 3.22.1 but problem exists since 3.18. Before that (don't remember the exact version) I was able to switch keyboard layout using xkb-witch, simple application that uses X.org bindings ...
11
votes
2answers
2k views

UTF8 math symbols & keyboard layout / input

I'd like to use UTF8 math symbols, when typing one list, another list. I've found something called ComposeKey. Unfortunately it's not covering omega, theta, right arrow etc. I am using KDE, I've ...
6
votes
2answers
37k views

How to set default console keyboard layout in Arch Linux?

Whenever I reboot my computer, I have to set the keyboard layout in a console again with loadkeys. Is there a way to change the default keyboard layout that is loaded every time the computer boots?
7
votes
1answer
3k views

Map Super+[Left|Right] to Home/End

How do I map key "Super" so, when combined with Left/Right, it produces keycode Home/End? My current setxkbmap: setxkbmap \ -model pc105 \ -layout 'us(dvorak-intl),us(alt-intl)' \ -option \ -...
6
votes
3answers
12k views

Mint login screen: wrong keyboard layout

After installing Mint 15 / updating to Mint 17, I'm unable to log in using the GUI login screen and German localisation with a password containing special characters. Changing the language using the ...
4
votes
2answers
10k views

how to swap ctrl and capslock using xmodmap?

I know this xmodmap script can swap ctrl and capslock: remove Lock = Caps_Lock remove Control = Control_L keysym Caps_Lock = Control_L keysym Control_L = Caps_Lock add Lock = Caps_Lock add Control =...
2
votes
3answers
20k views

How can I set the keyboard right on X?

Note: forked of this per recommendation here. I made a foolish typo for UTF-8, and expected that when I fixed it, the keyboard on X would work right. Since making this errant change, I was no longer ...
20
votes
1answer
5k views

Does Wayland use XKB for keyboard layouts?

As XKB is part of X window, is it XKB used in Wayland as well? If so, is there any utility planed to replace XKB at some point? In weston, setxkbmap does not work obviously. What is the currently ...
5
votes
1answer
650 views

How to make a ISO_Level4_Shift and Lock in xkb?

I would like to know if it’s possible to set a key as a level 4 modifier or locker in xkb instead of using: Shift + ISO_Level3_Shift (a.k.a AltGr). Same question with the levels 6, 7 and 8 (using "...
4
votes
1answer
494 views

Disable keyboard but still allow reading from it

I have a USB numpad that I want to use to control a specific application running as a daemon in the background. The daemon is written in Python and I'm currently reading input using python-evdev which ...
3
votes
1answer
3k views

Problem keyboard layout in boot with LUKS

I'm French and I have install ArchLinux with LUKS on btrfs file system. In Login: I can't mount my filesystem on /dev/sda2 because the keyboard is in US I try change /etc/vconsole.conf in FR and ...
3
votes
1answer
286 views

Xmodmap syntax for rebinding Shift+Down to Up

I would like to rebind some keys on Linux via Xmodmap. Left and up cursor on my Acer (yes, I know) laptop have broke. I would like to map shift+down to up, and shift+right to left. Struggling to ...
2
votes
2answers
180 views

Typing dead key after base letter

The US International keyboard allows to add diacritics by means of dead keys. Specifically: `a maps to à and 'a maps to á. In X, using the international or the standard US keyboard, I would like ...
1
vote
2answers
150 views

What controls the mapping between Ctrl+Alt+F keys, TTYs and X sessions?

On my CentOS system, Ctrl+Alt+F1 shows the X Windows session known as :0, but on other systems Ctrl+Alt+F7 may do the same thing. What determines how Fn keys are mapped to X sessions and TTYs? ...
12
votes
1answer
3k views

Relationship of keyboard layout and xmodmap

I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remapping some keys. I'm interested in two things: How the state of keyboard mapping changes (a) when I turn the ...
25
votes
1answer
20k views

Mod, Meta, Super … keys?

In Window Managers circle there are some technical terms; couple of them are Mod keys and Meta keys. The questions here I am asking are What exactly are those and are they universal across ...
9
votes
1answer
2k views

xkb: make ctrl+backspace behave as delete

How can I map Ctrl+Backspace to behave as Delete key with xkb? I can remap a single key on /usr/share/X11/xkb/symbols/pc but can't figure out how to do the combination. My OS is Ubuntu 15.04
10
votes
4answers
7k 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 ...
3
votes
1answer
2k views

Adding custom setxkbmap options

Use setxkbmap to swap the Left Shift and Left Control describes how to swap some modifier keys with xkbcomp. However, I'd like to just add a custom setxkbmap option instead of using xkbcomp with a ...
12
votes
1answer
1k views

Get the keycode of a key, from a custom made keyboard

I'm trying to transform a Minitel to a computer with a Raspberry Pi. This is a minitel: So I soldered the matrix of the minitel keyboard to a usb keyboard pcb, like this: Everything is working ok,...
9
votes
3answers
1k views

How to remap keyboard keys based on how long you hold the key

I would like to remap the keys on my number pad so that they behave differently depending on how long the key is pressed. Here's an example: If I hold the Numpad 9 key down for less than 300ms it ...
7
votes
2answers
14k views

In Fedora, how do I select a proper Norwegian keyboard layout?

I just installed Fedora 19 in VirtualBox using an image from virtualboxes.org. However, I'm unable to select a proper Norwegian keyboard. When I open the keyboard layout, it shows an US layout. A ...
6
votes
1answer
734 views

Can I give two keyboards different layouts?

I prefer a Dvorak layout, so I have a nice USB Das Keyboard and I have assigned it a layout that works for me on Virtual Console and in X11. I used loadkeys and install-keymap to arrange for it to ...
5
votes
3answers
1k views

How to disable the keyboard's numeric keypad?

I want to disable all numpad keys; the ones located on the right side of my keyboard. How can I do this? Of course, I would also like to know how to revert the action an re-enable the numeric keypad. ...
4
votes
3answers
699 views

How to put some keyboard layout aside from layout switching ring?

What I need is to switch between Russian and English layout with my favorite shortcut (namely Shift-CapsLock) switch to Belarusian layout with another shortcut (say, Ctrl-RightShift, but actual ...