AltGr key switch for diacritics
letkan opened this issue · comments
Hi, I wasn't able to configure the AltGr key (or any other key) to enabe diacritics while I type as I do in Xorg with setxkbmap ro
, what I'm getting now is a menu eventually. Is something like that even possible in labwc? If so I'd appreciate some help, thanks.
Adding XKB_DEFAULT_LAYOUT=ro
in .config/labwc/environment
may fix the issue.
EDIT:
what I'm getting now is a menu eventually
I wonder what causes this though. Are you using the default config where A-Space
is bound to ShowMenu
action?
Adding
XKB_DEFAULT_LAYOUT=ro
in.config/labwc/environment
may fix the issue.
Right now I have XKB_DEFAULT_LAYOUT=us,ro
in environment. The thing is, my real default keyboard is the English one but when I need to type some Romanian words that have diacritics I'm using the AltGr key for those, I don't want to change the entire layout to Romanian.
EDIT:
what I'm getting now is a menu eventually
I wonder what causes this though. Are you using the default config where
A-Space
is bound toShowMenu
action?
I'm using the default US keyboard, I changed nothing since I installed Arch.
Ah, I got what you mean. Looks like you want to update keyboard layout from inside session, like sway's swaymsg input '*' xkb_layout ro
does.
Unfortunately, labwc doesn't offer rich IPC mechanisms like swaymsg
or hyprctl
.
Alternatives are:
- Use options like
XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
- Replace
XKB_DEFAULT_LAYOUT=us
in~/.config/labwc/environment
withXKB_DEFAULT_LAYOUT=ro
and runlabwc --reconfigure
Unfortunately with those changes nothing changed, the behavior is the same as before after labwc --reconfigure
.
But... uncommenting dbus-update-activation-environment --all
in autostart (why didn't I do that before?) and a reboot did the trick meaning that AltGr + a = ă exactly like setxkbmap ro
from X while alt-shift + a did nothing. Good to know. I will try also with XKB_DEFAULT_LAYOUT=us
see if changes anything.
Thanks a lot for your patience, problem solved.
Unfortunately with those changes nothing changed, the behavior is the same as before after labwc --reconfigure
.
But... uncommenting dbus-update-activation-environment --all
in autostart (why didn't I do that before?) and a reboot did the trick meaning that AltGr + a = ă exactly like setxkbmap ro
from X while alt-shift + a did nothing.
Thanks a lot for your help, problem solved.