The tag has no wiki summary.

learn more… | top users | synonyms

23
votes
7answers
11k views

How do I get current keyboard layout?

I'm wondering is there any command line tool, that returns current keyboard layout. I have XkbLayout set to us, ru. Update: setxkbmap returns layout settings, not selected layout. E.g.: $ setxkbmap ...
20
votes
5answers
12k views

How to get keycodes for xmodmap?

I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes. For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, ...
16
votes
1answer
443 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
749 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 ...
10
votes
3answers
2k views

How to disable caps-lock, without remapping or disabling it?

I have an X11 program that grabs caps-lock, and uses it. The problem is, I want to disable the regular caps-lock toggling, but doing so seems to disable the key. So whatever X11 gets for a caps-lock ...
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
100 views

Map a symbol to a specific key

I have the following problem: I use the intl variant of gb keyboard layout, i.e., what you get with: setxkbmap -layout gb -variant intl I use gmail in Firefox, and for some reason, the gmail ...
8
votes
2answers
1k views

Openbox overwrites xmodmap configuration

I am setting up openbox on my laptop running Linux Mint 13. I want my Caps Lock key to act as an additional control key. I put the required settings in my ~/.Xmodmap file and checked it by running ...
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 ...
6
votes
2answers
495 views

Custom xkb layout in which one key creates two unicode code points

I am writing a new custom keyboard layout for Xorg, but there is one particular glyph which does not exist in Unicode. It is, however, easy to create it by using a standard letter plus a combining ...
6
votes
3answers
518 views

Turn off Caps lock when Escape is pressed

Is there any way to disable CapsLock whenever Esc is pressed. Yes, I use VIM! I actually have an alternative all-caps keyboard layout on Ctrl-6 but I find it cumbersome and would prefer to just have ...
6
votes
1answer
39 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
1answer
250 views

I've just deleted my /usr/share/X11/xkb/symbols directory and restarted, how come I can still type?

I'm running Linux Mint and I'm trying to edit my symbol files but none of the changes stick - I've tried restarting X and restarting the computer. Eventually I got frustrated and tried deleting the ...
6
votes
1answer
221 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 ...
5
votes
1answer
1k views

Where is Xkb getting its configuration?

Is there a way to query where xkb is getting its configuration from? Under ArchLinux I have /etc/X11/xorg.conf.d/00-keyboard.conf with Section "InputClass" Identifier "system-keyboard" ...
5
votes
1answer
265 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
3answers
1k views

how to assign another modifier to Alt key for X11?

Aim: I would like to assign Alt to CapsLock-key, and Meta to Alt-key. But in such way, Alt-key would no longer be recognized as Alt, and CapsLock-key would no longer be recognized as CapsLock. ...
4
votes
1answer
2k views

Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?

All I can find about XkbOptions was: Option "XKbOptions" "grp:alt_shift_toggle" Seems I can only use alt+shift combination to switch keyboard layout, any other keys that I can use ?
4
votes
1answer
273 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
762 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
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
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
2answers
59 views

Escape on Control key, Control on Capslock key, Capslock on Escape key

I'm looking for a method that works in both X and the console with console-setup (e.g. xkboptions, no X-exclusive methods like xmodmap). With XKBoptions, combining ctrl:swapcaps and caps:swapescape ...
4
votes
1answer
273 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
3answers
544 views

How can I make Ctrl + Alt act like Alt gr in Ubuntu?

I recently switched to Ubuntu on my laptop and one thing that almost got me to switch back to windows is the fact that I can't make Ctrl + Alt to act like Alt gr. I have programmed in several years ...
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
2answers
469 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
2answers
1k views

Is there a way to remap the AltGr key to Ctrl with setxkbmap?

I've already checked the option section in /usr/share/X11/xkb/rules/base.lst but I didn't find an entry for AltGr...
3
votes
1answer
629 views

How to change the flag pictures XFCE Keyboard Layouts applet uses for its indication?

XFCE Keyboard Layouts panel applet offers to use either textual or graphical indications. But the font used for textual indication is too small and the flag icons used for graphical are too blowzy. ...
3
votes
1answer
75 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
2answers
368 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
155 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
1answer
172 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_ ...
3
votes
0answers
122 views

Remapping keys that generate multiple scan codes

I have a ThinkPad W540. On its keyboard there are four multimedia keys above the numpad. Two of those keys generate keycodes (and, apparently, scancodes) that correspond to combination of keys, Win_L ...
3
votes
0answers
62 views

How to remap simultaneous letter keys to modifier?

I have really gotten used to the "Simultaneous Vi Mode" functionality of KeyRemap4MacBook which lets you press and hold the s and d keys simultaneously and then use the h, j, k, and l keys as the ...
3
votes
1answer
209 views

How to make custom key type auto repeat in xkb

I have defined a custom key type in my xkb configure file to do some redirection (e.g. redirect Ctrl+p to Up etc.) However, I cannot get auto-repeat work for this custom type (neither the original key ...
2
votes
1answer
273 views

Problem with meta key on Emacs

I have a problem with meta key in Emacs. I trying to use M-> or M-< but in fedora meta key is left Alt that is key change layout (alt+shift) when i press M->(alt+shift+>). How people solve this ...
2
votes
1answer
8 views

xkb - Keymaps at `/usr/share/X11/kbd/symbols` 2 values vs 4 values being specified

I am a noob when it comes to linux and xkb. Sorry if the question seems very obvious and stupid. I was checking the keymap found at /usr/share/x11/kbd/symbols and in particular, I was browsing the us ...
2
votes
1answer
29 views

Declare a new modifier key with XKB

I'm trying to create a one handed keyboard layout and want to use Hyper to produce special keys when I press some keys. For example, when I press Hyper_L and B, I want XKB to produce ...
2
votes
1answer
109 views

Colon/Semicolon remapping with xmodmap with two active setxkbmap layouts

Gentlemen, I'm a non-native english speaker and need a second language layout. And I'm a heavy Vim user, and use : much more often than ;. At the moment they are remapped in .vimrc, buth that causes ...
2
votes
2answers
558 views

Setxkbmap turns off NumLock LED - but not NumLock.

Whenever I use setxkbmap in a terminal (or my .bashrc), the next time I press any modifier keys (ctrl, shift, alt) the NumLock LED on my keyboard goes off, but NumLock itself is still active so it's ...
2
votes
1answer
1k views

Why does the setxkbmap compose key mess with other keys?

I just found a tip to set the compose key manually: setxkbmap -option compose:caps Unfortunately, after running this several keypresses act as if the compose key had been pressed. For example, to ...
2
votes
0answers
20 views

Remapping Left Control <LCTL> in xkb changes behavior of Alt + Left Shift

For some reason pressing any alt key (including <MENU>) together with <LFSH> toggles "Switch windows of an application". This can be turned off by commenting out key <LCTL> { [ ...
2
votes
1answer
164 views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
2
votes
0answers
125 views

Remapping shifted function keys in XKB

I'm working on a keyboard layout for the Khmer language and I'm quickly running out of space. My aim is to create a keymap that includes all the characters in the Khmer script as well was their ...
2
votes
0answers
54 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
2
votes
1answer
407 views

Mapping AltGr to left control

I mapped my AltGr key to Ctrl with the following command: setxkbmap -option ctrl:ralt_rctrl However, when displaying the bindings with xmodmap -pke I can see that the keycode is associated to ...
2
votes
1answer
510 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 ...
2
votes
0answers
90 views

xkb config has pointless entry?

I dumped the current xkb configuration with xkbcomp :0 keyboard.xkb and found that, for example, ISO_Level3_Shift has two 'interpret' entries: interpret ISO_Level3_Shift+AnyOf(all) { ...
2
votes
0answers
130 views

xkbcomp doesn't update keymap for running xterms?

When I use setxkbmap all programs use the new layout but when I change the keyboard layout with xkbcomp to my own only newly started programs are affected (using xkbcomp with a file with a default ...