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

16
votes
1answer
456 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 ...
15
votes
1answer
758 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 ...
11
votes
1answer
379 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 ...
9
votes
1answer
2k 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 ...
8
votes
1answer
1k views

Relationship of keyboard layout and xmodmap

I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remmaping some keys. I'm interested in two things: How the state of keyboard mapping changes when I turn the ...
8
votes
2answers
3k 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 ...
7
votes
3answers
1k views

Script to toggle setxkbmap

I would like a bash script that toggles between: setxkbmap se and setxkbmap us. Then my intentions are to map that script to CtrlEsc through the Keyboard > custom shortcuts. The point is that I ...
7
votes
2answers
550 views

How to map a console keyboard layout to a X keyboard layout in Linux

In my distribution (Slackware 13.37), the console keyboard layout is chosen among some of those available in /usr/share/kbd/keymaps ' sub directories, coming from the kbd package. Under X instead ...
6
votes
2answers
4k views

How do I temporary change my keyboard layout on Debian? (no X)

How can I quickly change my keyboard layout between US and German? setxkbmap does not apply here, as I only have an SSH shell. Persistent changes via dpkg-reconfigure keyboard-configuration ...
6
votes
2answers
868 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 ...
6
votes
1answer
45 views

xkb ɛ with acute accent [duplicate]

I've made a variant of Colemak which replaces ‘e’ with ‘ɛ’ – Latin letter open e (I have my reasons, but they're not relevant here). I have two problems: Though ‘ɛ́’ and other versions of ‘ɛ’ with ...
6
votes
2answers
279 views

Custom keyboard layout is reset to default after standby or reboot

I designed a keyboard layout for myself, after I run xmodmap it works OK, but after standby or reboot, the layout turn back to qwerty. How can I set it as default? My OS is Debian Wheezy with XFCE4. ...
6
votes
1answer
1k views

How to set keyboard layout used to enter password on an encrypted filesystem?

After my upgrade to Debian 6 (Squeeze), the keyboard layout used to enter the password of encrypted filesystem has been changed. How can I revert it back to previous one? My understanding is that, ...
6
votes
1answer
231 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
1answer
1k views

Using setkeycodes to map pressed and released to different “keys”

I have a keyboard that has a scroll wheel, but it doesn't work on Ubuntu and xev command doesn't show anything when moving it. But with the dmesg command I found this: When moving the scroll wheel ...
5
votes
1answer
2k views

command line retrieve list of 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. ...
5
votes
1answer
62 views

Why does showkey show a different keycode compared to xev?

Looking for an answer I came across this question. There's something like this: The keycode X uses and the keycode the kernel uses are OFF BY 8 for "historical reasons". So take 97 - 8 = 89 and ...
5
votes
1answer
475 views

Cannot switch to console anymore after using Alt_R as mod4

I'd like to use the right ALT key as 'mod4' (most notably because, by default, the 'awesome' window manager is using mod4 as a modifier for most WM commands and I like that idea a lot). However I've ...
5
votes
1answer
1k views

How do I configure setfont and loadkeys properly?

I'm installing LFS and I'm struggling with this section. My locale is sv_SE.UTF-8 and I have a Swedish keyboard. So I suppose I should enable unicode and that the keymap is sv-latin1: cat > ...
5
votes
1answer
270 views

Remapping power key to delete

I have a macbook pro running Ubuntu 13.10 with FluxBox. Unfortunately, the power button is physically above the backspace where I would expect the delete key to be in. In OS X, the PowerKey program ...
4
votes
1answer
274 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
1answer
768 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)" ...
4
votes
1answer
370 views

Trying to set keyboard layout using Xorg configuration but it's not working

I'm trying to set my HP Pavilion g6 keyboard layout to English(us) and Arabic(ara). I'm using Fedora 18, but followed Arch Wiki anyways. Here's my 90-keyboard-layout.conf file : Section ...
4
votes
3answers
3k 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 ...
4
votes
1answer
493 views

F4-key mysteriously reassigned

In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
4
votes
2answers
2k views

Awesome: keyboard layout switch

I use awesome as a window manager under gnome (debian system) and I made a widget to switch keyboard layout by this code: -- Keyboard map indicator and changer kbdcfg = {} kbdcfg.cmd = ...
4
votes
3answers
1k views

How to re-enable the caps lock key?

I am currently setting up my default keyboard layout like this: setxkbmap -layout us -variant dvorak -option ctrl:nocaps,[...] It disables the caps lock key and makes it an additional ctrl key, ...
4
votes
1answer
160 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 ...
4
votes
1answer
575 views

How do I enforce system-wide custom keyboard shortcuts / macros?

I would like to be able to apply the same custom key bindings and shortcuts I use on my text editors to my entire desktop environment. I want to basically remap my keyboard system-wide, not just in ...
4
votes
1answer
274 views

How can I set left alt + right shift keyboard layout switch in xubuntu?

From what I found from xkeyboard-config man page there is no such combination, which is very upset. Is there any workaround for that? Because I want layout change to be as in winXP.
4
votes
2answers
167 views

Changing one character in keyboard layout

I edited the file /usr/share/X11/xkb/symbols/us and added a definition with my new layout as follows partial alphanumeric_keys modifier_keys xkb_symbols "us_pl" { include "us(basic)" ...
3
votes
3answers
5k views

Does the Fn Lock (FnLk) on Thinkpad T440s work well with Linux?

I'm considering to buy a Lenovo Thinkpad T440s and to install Linux on it. According to the user guide and photos of T440s, to use F1-F12 you have to hold down the Fn key, or use Fn+Esc to enable "Fn ...
3
votes
1answer
196 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 ...
3
votes
2answers
132 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
477 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 ...
3
votes
1answer
107 views

Fedora 20 kde change keyboard layout permantely to Latin America?

I'm trying to change it to Latin America language, however in the System Settings->Hardaware->input devices-layout tab nothing seem to works correctly (even if I add any layout) Also I can type ...
3
votes
1answer
78 views

Switch between keyboard layout based on input event

I have a french and a US keyboard on my computer. I'm using awesome wm and have set everything so that it is easy for me to switch between keyboard layout. But I still have to do it myself. ...
3
votes
1answer
386 views

Loadkeys gives permission denied for normal user

I am trying to perform loadkeys operation. For normal user, I am getting permission denied error. the error is as follows. <tim@testps>~% loadkeys mykeys Loading /usr/tim/mykeys Keymap 0: ...
3
votes
1answer
78 views

m key not registering in Bourne-Again shell 3.2, OSX. Guesses?

Just lowercase m, and just when invoked interactively through /bin/sh. The keyboard works fine, and usually everything works fine. I almost never use /bin/sh, just /bin/bash, so it was somewhat ...
3
votes
1answer
709 views

How can I install a new keyboard layout in KDE 4?

I have a custom X11 keyboard layout that I can use with setxkbmap. But after some searching I've found that apparently just having the XKB layout file isn't enough to set it as a new keyboard layout ...
3
votes
2answers
371 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 ...
3
votes
1answer
157 views

Keyboard layout switch (Ctrl+Shift) in a new xorg

I've been using similar config for years: Section "InputClass" Identifier "keyboard-all" MatchIsKeyboard "on" Driver "evdev" Option "XkbLayout" "us,ru,de" Option "XkbVariant" ...
3
votes
3answers
572 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 ...
3
votes
2answers
2k views

Disable scroll lock

We have a shell/tty based application that has ~1,000 users. It is running in an environment where X Server is not available. If a user accidently turns on the Scroll Lock, it makes it seem as if the ...
3
votes
1answer
838 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
370 views

Uppercase input turns on periodically

I have some problem. Every 3-5 second everything, that I input from keyboard became UPPERCASE only. I also have two keyboard layouts: us and ua. And when uppercase happens - I can't switch my keyboard ...
3
votes
1answer
2k views

How to change the USB keyboard layout in an OpenBSD console?

I may be abusing the word console but I mean the mode without X i.e. pressing ^+Alt F1 and then log as other user where I want to use my chosen layout with USB keyboard. X works, it configures the ...
3
votes
1answer
107 views

Caps lock doesn't take effect on all letters

I have a laptop running Debian Jessie with only the Linux console (X server not installed). On this laptop caps lock doesn't take effect on the special Danish characters æøå (I just get æøå instead of ...
3
votes
1answer
71 views

Writing single-handed layouts for X

I know someone who'd really like to be able to type with only the left hand, so I had the idea of writing a layout which "switches" the sides of the keyboard when the caps lock key is pressed. For ...
3
votes
1answer
177 views

Where do find information about xkb_symbols (i.e. dead_acute, KP_1, Delete, Down) [closed]

Where can I find a list of the xkb_symbols and their meaning? To clarify let me give some examples for xkb_symbols: dead_acute dollar Down Delete adiaeresis Adiaeresis dead_circumflex KP_0 (KP_ ...