You are not logged in.

#1 2023-05-23 13:39:11

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

[SOLVED] Using keys in other applications reserved for language switch

Greetings!
Faced such a problem that if you specify language switching in the i3 configuration file using ctrl + shift
Then in some applications using ctrl+alt or ctrl+shift
some combinations stop working, for example; ctrl+shift+t (open last closed tab in chrome or vivaldi)

.config/i3/config
  exec_always --no-startup-id "setxkbmap -model pc105 -layout us,ru -option 'grp:ctrl_shift_toggle'"

is there a way to force setxkbmap to disallow such hard key reserving, without changing the switching combination itself?

Last edited by BackToUSSR (2023-05-23 15:42:42)

Offline

#2 2023-05-23 13:58:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Using keys in other applications reserved for language switch

https://wiki.archlinux.org/title/Xorg/K … _Alt_Shift
(Ie. use a clientside shortcut to change the layout)

Nb. that
1. setxkbmap <layout> is a terrible way to switch layouts
2. ctr+shift toggles should not affect ctrl+alt shortcuts

grep toggle /usr/share/X11/xkb/rules/base.lst

for alternative combos.
You can also define one that's physically not available and then bind

xdotool key ISO_Next_Group

to some shortcut or desktop gadget.

Edit, ftr:

grep -i group /usr/include/X11/keysym*

Last edited by seth (2023-05-23 13:59:05)

Offline

#3 2023-05-23 15:41:25

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

Re: [SOLVED] Using keys in other applications reserved for language switch

Partially solved by assigning r_alt to switch language

Last edited by BackToUSSR (2023-05-23 23:14:59)

Offline

Board footer

Powered by FluxBB