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

6
votes
1answer
2k 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 ...
7
votes
3answers
2k 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 ...
10
votes
2answers
4k 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 ...
5
votes
1answer
553 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 ...
7
votes
2answers
3k 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. ...
4
votes
1answer
556 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 ...
7
votes
2answers
599 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 ...
2
votes
1answer
616 views

Assigning mouse keys to keyboard

Is it possible to assign mouse keys (left click 1, middle click 2, right click 3, etc) to keyboard keys by modifying a file in /etc/X11/xorg.conf.d? If so, how can I do that?
3
votes
1answer
502 views

How do I remap my caps lock key to ctrl+x within x.org?

I've seen some setxkbmap stuff when talking about key mappings, but ctrl-c isn't a single key. Ideally, I would love to make it a copy/paste key but that seems impossible on Linux. Is there a way ...
15
votes
1answer
876 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 ...
2
votes
0answers
283 views

xkb: `ctrl:swapcaps` option messes with the escape key

I've been using setxkbmap -option "ctrl:swapcaps" to swap the capslock and left control keys, but I just recently noticed that this seems to mess up my escape key. With xev, I can see that pressing ...
4
votes
2answers
3k 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 = ...
1
vote
1answer
206 views

AltGr key combinations through Qtnx

I started using Qtnx, and it works great. I have a problem accessing some keyboard characters though. I am using a french keyboard (azerty-like), and every character is mapped correctly with qtnx, ...
1
vote
1answer
2k views

How to set up FreeBSD for my region?

im currently installing FreeBSD. Im at the "Time Zone Selector" screen. I don't know what should i choose. Normally, since i live in Quebec (Canada), i choose Eastern time GMT -5, but there is no such ...
2
votes
1answer
407 views

xmodmap equivalent in bash

I'm constantly on bash via ssh, on a computer that doesn't have X. In my computer I've switched the keyboards' Super and Alt keys with xmodmap. Is it possible to do it on the computer in which I log ...
2
votes
1answer
385 views

How can I use GNOME's keyboard settings in Fluxbox?

My GNOME keyboard settings do two main things: Switch CMD and CTRL (I'm on a Macbook) Give me a third level (for special characters) This is really the only functionality I'm missing in Fluxbox. ...
3
votes
3answers
924 views

Xorg: multiple keyboards, one configuration

On my laptop, I tweak some keybindings and keyboard preferences with xmodmap and xset. When I plug an external USB keyboard, the configuration for that new keyboard is the default, i.e., without my ...
2
votes
1answer
230 views

Some keys on keyboard map to numbers instead

I'm running Leenux 5.1 from a USB stick using unetbootin. It works ok, except my keyboard is messed up -- pressing k results in a 2 instead (the 2 key also types a 2). How could this happen?
6
votes
2answers
5k 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 ...
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 ...
5
votes
1answer
985 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?
2
votes
0answers
175 views

Keyboard layout bug in login window after screen lock

I use Fedora 16 now, but this issue already was in Fedora 15 before I upgraded it. When I lock my screen and then want to unlock it, I have a default English layout (I am from Russia and also have ...
1
vote
2answers
555 views

How do you configure numpad keys using XKB?

I haven't figured out how you configure XKB to use the numpad yet. I found the following in the "us" file. partial alphanumeric_keys modifier_keys xkb_symbols "basic" { name[Group1]= "USA"; ...
3
votes
2answers
403 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
2answers
425 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 ...
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, ...
3
votes
1answer
381 views

Change behaviour of numpad to dpad in GNOME 3.2

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. ...
7
votes
2answers
1k 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 ...
2
votes
1answer
410 views

Disable action keys

I'm running openSUSE on HP Pavilion dm4. I have a bunch of action keys (volume up/down, brightness, wifi etc.) on my function keys. For using standard Fx keys I have to hold Fn key. The problem is ...
1
vote
1answer
904 views

cryptsetup luksOpen only accepts password via ssh

while installing my Gentoo system I encoutered a strange error. One of my disk is encrypted, I have done all the installation via ssh, so did I enter the encryption passphrase via ssh. Now I entered ...
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, ...
5
votes
1answer
2k 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 > ...
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 remmaping some keys. I'm interested in two things: How the state of keyboard mapping changes when I turn the ...
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 ...