You are not logged in.
Pretty exotic problem here...
At the top of my .xinitrc file I got :
setxkbmap -option compose:menu
setxkbmap fr,fr oss,ergol grp:alt_caps_toggle,grp_led:scroll
To load fr-oss and fr-ergol and switcing between the two with Alt + CapsLock
So for example :
Super + W closes the selected window (I'm using BSPWM) according to the config :
super + {_,shift + }w
bspc node -{c,k}
W being at the place of the T in fr-ergol : pressing Super + T closes the window just as Super + W does to.
This works for each of the keys configured in sxhkdrc.
Does anyone has any clue? And thank you for your time!
Last edited by mactemporal (2024-10-08 19:59:01)
Offline
Does super+w also work in the ergol layout (so the key that produces a "w" there)
Generally https://tronche.com/gui/x/xlib/input/XGrabKey.html grabs a keycode, not a symbol and the keycode won't change w/ the layout.
sxhkd would have to react to the layout change and reload itself w/ the new keymap.
Offline
Thank you for your answer.
super+w indeed also works in the ergol layout.
Offline
https://github.com/baskerville/sxhkd/issues/291
https://github.com/baskerville/sxhkd/bl … hkd.c#L273
Maybe the cleanup doesn't work properly (eg. because it's operating along the already changed keymap for the grab release)
Offline
If the solution is just to set one keyboard layout, so be it. This is so strange that it's doing that...
Thank you very much nonetheless!
(and sorry to the poor fellow with the same problem as me...)
Offline
An alternative would be https://archlinux.org/packages/extra/x86_64/xbindkeys/ ?
Offline