The xkb tag has no wiki summary.
4
votes
2answers
74 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 ...
1
vote
1answer
66 views
Remap altgr key to AC10 in XKB
I'd like to remap the altgr key to AC10 key.
So far, i edited /usr/share/X11/xkb/symbols/us as follows:
// key <AC10> { [ semicolon, colon ] };
key <AC10> { [ Alt_R ]}
After
$ ...
4
votes
2answers
79 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)"
...
1
vote
1answer
135 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"
...
1
vote
1answer
29 views
Why grp:lctrl_lshift_toggle still keeps right keys as switch triggers?
I ran the following command in my terminal:
setxkbmap -layout us,ru -option "grp:lctrl_lshift_toggle,ctrl:nocaps"
but for some reason, the effect is the same if I specified "grp:ctrl_shift_toggle" ...
3
votes
1answer
267 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 ...
2
votes
1answer
99 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
0answers
60 views
Change behaviour of the modifier keys system-wide
I’d want to make modifier keys (control, alt, shift, meta, super, lv3_switch) to act like usual keys, I mean, without holding one of them to perform associated key combination. Say C-x M-1 can by ...
1
vote
1answer
155 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+SHIFT I'm switching between English ...
6
votes
3answers
346 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 ...
1
vote
1answer
142 views
Mapping Super Keys to Control without Xmodmap
I've been attempting to switch my super and control keys in X on a macbook and have been half successful. I'd like to avoid creating a custom .Xmodmap if possible, as there is a temporary 100% cpu bug ...
3
votes
1answer
343 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)"
...
1
vote
1answer
127 views
fluxbox keyboard switch german, greek (modern) and polytonic greek
Where can i find a list of keyboard-layout codes to switch between german, greek (modern) and polytonic greek in fluxbox menu?
vim ~/.fluxbox/menu
[begin] (fluxbox)
[include] ...
2
votes
1answer
121 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.
9
votes
3answers
2k views
How to get keycodes for xmodmap?
I'm trying to use xmodmap to remap alt/windows 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 ...
3
votes
0answers
75 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) {
...
1
vote
2answers
1k 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
0answers
95 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 ...
6
votes
3answers
635 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 ...
3
votes
1answer
940 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 ?
2
votes
1answer
229 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 ...
4
votes
1answer
771 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
...
4
votes
2answers
215 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 ...
2
votes
0answers
104 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 ...
14
votes
1answer
418 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 ...
1
vote
0answers
160 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 ...
2
votes
1answer
664 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 ...
3
votes
2answers
636 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...
4
votes
1answer
166 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 ...
2
votes
1answer
182 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 ...
1
vote
2answers
256 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";
...
2
votes
2answers
266 views
How to put some keyboard layout aside from layout switching ring?
An exact thing 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 ...
3
votes
1answer
413 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. ...
4
votes
3answers
657 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, ...
15
votes
7answers
5k 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 ...
3
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.
...