Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-english layout breaks normal Ctrl+ hotkeys #888

Open
Nekotekina opened this issue Dec 9, 2024 · 3 comments
Open

Non-english layout breaks normal Ctrl+ hotkeys #888

Nekotekina opened this issue Dec 9, 2024 · 3 comments

Comments

@Nekotekina
Copy link

Nekotekina commented Dec 9, 2024

Config file (trimmed):

[ids]
*
-054c:09cc

[global]
default_layout = def

[main]
numlock = pause

[def:layout]
compose = setlayout(ru2)

[ru2:layout]
compose = setlayout(def)
` = ё
' = э
, = б
- = -
. = ю
/ = .
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
0 = 0
; = ж
= = =
[ = х
\ = \
] = ъ
a = ф
b = и
c = с
d = в
e = у
f = а
g = п
h = р
i = ш
j = о
k = л
l = д
m = ь
n = т
o = щ
p = з
q = й
r = к
s = ы
t = е
u = г
v = м
w = ц
x = ч
y = н
z = я
shift = layer(ru2_shift)
altgr = layer(ru2_altgr)

[ru2_shift:S]
` = Ё
' = Э
, = Б
- = _
. = Ю
/ = ,
1 = !
2 = "
3 = №
4 = ;
5 = %
6 = :
7 = ?
8 = *
9 = (
0 = )
; = Ж
= = +
[ = Х
\ = /
] = Ъ
a = Ф
b = И
c = С
d = В
e = У
f = А
g = П
h = Р
i = Ш
j = О
k = Л
l = Д
m = Ь
n = Т
o = Щ
p = З
q = Й
r = К
s = Ы
t = Е
u = Г
v = М
w = Ц
x = Ч
y = Н
z = Я

[ru2_altgr:G]
......

[ru2_altgr+ru2_shift]
.......

When I press Ctrl+F when toggle is active, it behaves like Ctrl+P (print dialog). Others shortcuts are also messed up.

Workaround: add EVERY DAMNED HOTKEY into the layout.

a = C-a
b = C-b
c = C-c
d = C-d
e = C-e
``` etc/
@Nekotekina Nekotekina changed the title Toggling a layer messes up normal Ctrl+ hotkeys in a strange way Non-english layout breaks normal Ctrl+ hotkeys Dec 9, 2024
@ErlendAHall
Copy link

ErlendAHall commented Dec 9, 2024

I appear to have the same problem. The config works as expected with English, but seemingly not in any other languages. I tested French, Spanish and Norwegian.

I'm migrating from setxkbmap because of the messy hassle between system upgrades. I just have a pretty basic setup for now. The rightalt+WASD strokes work regardless, but the others produce random characters depending on the configured layout. (I use Gnome)

[ids]
......

[main]
rightalt = layer(nav)

[nav]
w = up
a = left
s = down
d = right

e = (
r = )
f = {
g = }
c = [
v = ]

@Osse
Copy link

Osse commented Dec 16, 2024

I have the exact same problem as @ErlendAHall (mysteriously similar config too...). As far as I can tell the output of keyd monitor is "less incorrect". What it claims is different from what is actually inserted in a terminal prompt.

@Nekotekina
Copy link
Author

I recommend having a single system layout (for example, English (intl., with AltGr dead keys)).
Because keyd has no way of recognizing changes in xkb mappings.
Then you may implement other languages within keyd layers/layouts.
I think it's the only way unfortunately. But keyd is still very powerful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants