Главная » soft, programming » Linux » Раскладка layout switch

Раскладка layout switch

echo «setxkbmap -layout us,ru,ua -option grp:shift_caps_switch,grp:alt_shift_toggle,grp_led:scroll» >> ~/.bashrc

setxkbmap -layout us,ru,ua -option grp:shift_caps_switch,grp:ctrl_shift_toggle,grp_led:scroll

setxkbmap -layout 'us,ru(winkeys),ua' -option [[grp:ctrl_shift_toggle]]

setxkbmap -layout us,ru -option grp:shift_caps_switch

setxkbmap -layout ‘us,ru’ -option ‘grp:ctrl_alt_toggle,grp_led:scroll’

setxkbmap -option grp:switch,grp:ctr_shift_toggle,grp_led:scroll us,ru

setxkbmap -layout ‘us,ru(winkeys),ua’ -option grp:caps_toggle,compose:ralt

setxkbmap -layout ‘us,ru(winkeys),ua’ -option [[grp:rwin_toggle]]

setxkbmap us,ru -option grp:rwin_toggle

setxkbmap -layout us,ru -option grp:menu_toggle

grp:toggle Right Alt

grp:lalt_toggle Left Alt

grp:caps_toggle CapsLock

grp:shift_caps_toggle Shift+CapsLock

grp:shift_caps_switch CapsLock (to first layout), Shift+CapsLock (to last layout)

grp:win_menu_switch Left Win (to first layout), Right Win/Menu (to last layout)

grp:lctrl_rctrl_switch Left Ctrl (to first layout), Right Ctrl (to last layout)

grp:alt_caps_toggle Alt+CapsLock

grp:shifts_toggle Both Shift keys together

grp:alts_toggle Both Alt keys together

grp:ctrls_toggle Both Ctrl keys together

grp:ctrl_shift_toggle Ctrl+Shift

grp:lctrl_lshift_toggle Left Ctrl+Left Shift

grp:rctrl_rshift_toggle Right Ctrl+Right Shift

grp:ctrl_alt_toggle Alt+Ctrl

grp:alt_shift_toggle Alt+Shift

grp:alt_space_toggle Alt+Space

grp:menu_toggle Menu

grp:lwin_toggle Left Win

grp:rwin_toggle Right Win

grp:lshift_toggle Left Shift

grp:rshift_toggle Right Shift

grp:lctrl_toggle Left Ctrl

grp:rctrl_toggle Right Ctrl

grp:sclk_toggle Scroll Lock

setxkbmap \
-variant altgr-intl \
-option \
-option compose:rctrl \
-option lv3:ralt_switch \
-option terminate:ctrl_alt_bkspc \
-option eurosign:e \
-option nbsp:level3n

As usual, the backslashes are only necessary if you’re splitting it across multiple lines. Here’s what they actually do when used with a us104 or us105 layout:

-variant altgr-intl
The default variant of the US 104 layout doesn’t have tertiary symbols like ¢ and þ for AltGr to access, so I’m selecting one that does.
You can also use the intl variant here but, for some reason, it maps ² to AltGr+2 and ³ to AltGr+3 but ¹ to AltGr+Shift+1.
An empty -option resets the layout options so I’m starting from a clean slate.
-option compose:rctrl
This remaps the Control_R keysym to Compose, so I can access glyphs like ½, ±, and é by typing “Ctrl 1 2” or “Ctrl + -» or «Ctrl e ‘“.
-option lv3:ralt_switch
This remaps Alt_R to AltGr, granting access to ¬ (AltGr+\) for making ¬_¬ smileys and giving me simpler key combos for commonly-used glyphs like µ (AltGr+m) and © (AltGr+c).
You can also use ralt_switch_multikey here to make Shift+AltGr the Compose key on compact keyboards but my muscle memory has already settled on Control_R. (Note: Make sure you press Shift first or it’ll just send an ordinary AltGr+Shift)
Note:If anyone knows why ¬ is no longer on AltGr+`, please leave a comment.
-option terminate:ctrl_alt_bkspc
Restore Ctrl+Alt+Backspace as the “Kill X Server” shortcut without relying on a superior but root-privileged and Linux-only config tweak.
(Again, I like settings I can store in my roaming profile)
-option eurosign:e
I’m Canadian, so on the occasions I need to type €, it can take me a while to remember that it has two cross-bars so I know to use “Compose e =“. Since my muscle memory already uses “Compose e ‘” for é anyway, let’s remap AltGr+e to €.
-option nbsp:level3n
Lets me type non-breaking spaces with AltGr+Space for those times when   doesn’t have special meaning.
Using level3n rather than level3 lets me type thin non-breaking spaces with Shift+AltGr+Space.

The beauty of doing things this way is that you’re unlikely to break things badly. It’s nearly impossible to paint yourself into a corner using variants and options alone (It’s models and layouts you have to be careful with) and, if you ever try to apply your settings to a keyboard they weren’t intended for, an unrecognized variant will abort the process and unrecognized options will simply have no effect.

Have fun and, if you’ve got any other interesting keyboard tweaks, share them in the comments. If I like one that applies to us104 enough to use it myself, I’ll update the example in the post body.
(axkb)Antico XKB configuration utility
AXKB this Qt application to adjust layouts by xkb.
Part of the code and interface window settings taken from KXKB and Kkbswitch.
Completely absent on to the kde-libs.
Originally developed as a complement to the Antico DE.
But just as well work on other WM and DE.
Depends only on Qt and X-server
Если Caps_Lock нажался перед тем как стал переключателем раскладки, то убираем верхний регистр «правым винкеем» после
xmodmap -e «keysym Super_R = Caps_Lock»
ремап к Контролу.
xmodmap -e «remove Lock = Caps_Lock»
xmodmap -e «remove Control = Control_L»
xmodmap -e «keysym Caps_Lock = Control_L»
xmodmap -e «add Control = Control_L»
xdotool key Caps_Lock
gsettings set org.gnome.desktop.input-sources xkb-options "['grp_led:caps', 'caps:none']"
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['0xffffff']"

===розкладка клавіатури
===розкладка клавіатури

nano /etc/default/keyboard

# Consult the keyboard(5) manual page.


nano /usr/share/X11/xorg.conf.d/10-evdev.conf

ection «InputClass»
Identifier «evdev keyboard catchall»
MatchIsKeyboard «on»
MatchDevicePath «/dev/input/event*»
Driver «evdev»
Option «XkbLayout» «us,ua,ru»
Option «XkbVariant» «»
Option «XkbOptions» «grp:lwin_toggle,terminate:ctrl_alt_bksp,grp_led:scroll»



Добавить комментарий

Заполните поля или щелкните по значку, чтобы оставить свой комментарий:

Логотип WordPress.com

Для комментария используется ваша учётная запись WordPress.com. Выход / Изменить )

Фотография Twitter

Для комментария используется ваша учётная запись Twitter. Выход / Изменить )

Фотография Facebook

Для комментария используется ваша учётная запись Facebook. Выход / Изменить )

Google+ photo

Для комментария используется ваша учётная запись Google+. Выход / Изменить )

Connecting to %s