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

learn more… | top users | synonyms

12
votes
1answer
7k 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 ...
18
votes
1answer
1k 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
5k 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 ...
2
votes
2answers
1k 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 ...
2
votes
2answers
629 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?
4
votes
2answers
322 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
2k 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 enviroment variables to xim, and didn't have any ...
10
votes
1answer
1k 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 ...
6
votes
2answers
827 views

Tuning keyboard (dead key) functionality in X

My preferred keyboard configuration is US-International. When I use it on MS-Windows and type certain special characters (i.e., ~ ' ") followed by a, o n I get á ó or ñ as I wish. However when I type ...
4
votes
2answers
5k views

Mint login screen: wrong keyboard layout

After installing Mint 15 / updating to Mint 17, i'm unable to login using the gui login screen and german localisation with a password containing special characters. Changing the language using the ...
1
vote
1answer
318 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) ...
17
votes
1answer
1k 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 ...
6
votes
3answers
4k 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 ...
21
votes
1answer
576 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 ...
8
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 sth called ComposeKey. Unfortunately it's not covering omega, theta, rightarrow etc. I am using KDE, I've tried ...
1
vote
3answers
8k 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 ...
2
votes
1answer
90 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 ...
1
vote
1answer
89 views

Switch keyboard layouts from Plank dock

Can Plank dock be used to switch between keyboard layouts?
0
votes
0answers
95 views

Keyboard-layout variants missing in IBus preferences

I use IBus in Manjaro Fluxbox to switch keyboard layouts. But I need one kb-layout variant that is not displayed in IBus preferences. While some layouts, like English and French, have variants in ...
-1
votes
1answer
91 views

Switch keyboard layouts with a launcher like Synapse

There are some light desktops like Openbox and Fluxbox that may not have a panel applet/switcher for keyboard layouts. I fact even those that work, had some problems. In such a case switching ...
8
votes
2answers
158 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 ...
6
votes
2answers
797 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> = ℤ # ...
4
votes
1answer
5k 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 ...
4
votes
1answer
481 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. ...
3
votes
3answers
298 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. ...
0
votes
0answers
49 views

Incorrect keyboard mappings on RHEL v6.4

Spent a while trying to create keyboard shortcuts in terminal for command history access (up/down arrow keys). Realized after some frustration that this wasn't the issue - some keyboard keys are just ...
9
votes
1answer
2k 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 ...
6
votes
3answers
10k 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 ...
12
votes
2answers
7k 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 ...
6
votes
1answer
5k 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 ...
5
votes
1answer
462 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
12
votes
1answer
828 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 ...
5
votes
1answer
837 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 \ ...
4
votes
2answers
6k 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 ...
3
votes
2answers
509 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 ...
7
votes
1answer
1k views

How can I create a new keyboard layout for KDE 4?

I would like to define a new keyboard layout for KDE 4. In particular I would like to take the standard British layout and add Polish characters for the combinations Alt-Gr + letter. How can I do it?
3
votes
2answers
320 views

Multi-function CapsLock without X

I would like to remap CapsLock to Esc when pressed by itself and Ctrl when pressed with another key without using X. This is similar to a previous question ( Remap CapsLock to Escape and Control ...
3
votes
2answers
6k 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), ...
2
votes
2answers
3k 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 ...
1
vote
1answer
992 views

How can I replace my keyboard and mouse udev rules with xorg.conf.d?

Since it is impossible to make udev rules that affect Xorg settings run on startup, I'd like to replace these with other alternatives. At the moment, I have two primary udev scripts that I've written. ...
0
votes
1answer
137 views

How to add new keyboard layouts in Manjaro Fluxbox?

I want to try Manjaro Fluxbox, and I would say it's my favorite Manjaro to date, except for some quirks like the one that I don't know --- not only how to get a keyboard layout indicator / switcher, ...
0
votes
1answer
721 views

Add a foreign keyboard layout to Gnome in Debian 8

I would like to add an Italian keyboard layout as an input source, but my system only lists English layouts. I suppose that this is because I didn't select any locale other than English during ...
6
votes
4answers
200 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: ' " ...
5
votes
2answers
894 views

How do I run a script when I switch between keyboard layouts

I use more than one keyboard layout, and I would like to find a way to run a script when I switch between them. Is this possible? So far, I can assign a shortcut for a script like this: #!/bin/bash ...
4
votes
1answer
391 views

xmodmap shift + keycode to produce keysym

There seem to be few examples for how to use xmodmap to bind a modifier + some key, to a new key. E.g. I want to bind left Shift (keycode 50) + ` (keycode 21) to emit a grave accent character: ` ...
3
votes
1answer
43 views

How to list all currently available compose key combinations?

Is there some way to inspect the state of X to get exactly and only a list of compose key shortcuts and what they map to, either as literal keys, for example: aa å 88 ∞ or as glyph names, for ...
3
votes
0answers
22 views

Always insert the diacritic after a dead key

A followup question on this subject, perhaps any of you can help with that too. In Windows the layout for US International does/did this for me; Typing I ' d yields I'd (with no extra jams on the ...
3
votes
2answers
381 views

How to make AltGr+i,j,k,l work properly as cursor keys?

(I already asked this question on superuser but got no answer so I'll try here now.) I would like to have the cursor keys and some others available as AltGr+c,h,t,n etc. (i,j,k,l if you have qwerty). ...
2
votes
1answer
480 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 ...
2
votes
1answer
1k views

How can I make the TTY use the appropriate charset?

Note: forked of this per recommendation here. While I got the X keyboard layout right on my own after I fixed that stupid typo, I still can't set the console charset, key map, font map, or whatever ...