dakyskye / dxhd

daky's X11 Hotkey Daemon
MIT License
99 stars 6 forks source link

super + 4 does not work in russian (and maybe other non english?) keyboard layout #42

Open Oxyd76 opened 3 years ago

Oxyd76 commented 3 years ago

super + 4 not worked in russian keyboard layout

If active keyboard layout is russian dxhd does not react on super + 4 key combination

How do you reproduce this bug

setxkbmap ru,us --option compose:ralt

dxhd.sh:

# super + {1-9}
i3-msg -t command workspace {1-9}
dakyskye commented 3 years ago

Oh, that's weird. It is known that fir non-US layouts holding a key conbo does not constantly send signals, but only once, but I didn't know about this. Thanks for reporting it :+1:

Oxyd76 commented 3 years ago

I think dxhd requires rewriting the keyboard logic independent of the layout. Based on scancodes. As an example, I have to write two key handling rules. One for English layout, another for Russian:

## Focus the parent container
# super + a
i3-msg -t command focus parent
# super + Cyrillic_ef
i3-msg -t command focus parent

But i3 may work in symbol or scancode mode (bindsym or bindcode directive)

dakyskye commented 3 years ago

You have forked the repository which I guess you did to contribute. If that's the case, have you found anything we can do about this?

Oxyd76 commented 3 years ago

You have forked the repository which I guess you did to contribute. If that's the case, have you found anything we can do about this?

I am not go developer. But wait for PR for systemd support.