The tag has no wiki summary.

learn more… | top users | synonyms

16
votes
1answer
486 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 ...
24
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 ...
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 ...
6
votes
1answer
273 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 ...
15
votes
1answer
785 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
2answers
517 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 ...
21
votes
5answers
13k 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, ...
3
votes
2answers
581 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
377 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 ...
4
votes
1answer
292 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 \ ...
1
vote
1answer
602 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. ...
1
vote
2answers
3k 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), ...
4
votes
3answers
2k 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. ...
1
vote
1answer
91 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 ...