You are not logged in.

#1 Today 21:10:59

Limones
Member
Registered: 2024-02-13
Posts: 1

Unable to type "ç" or "Ç" using ' + c on Wayland (Hyprland)

Hi! smile

My keyboard has the US layout, and I have been using Xorg (bspwm) with the "US intl. with dead key" layout happily and perfectly. I could type normally in portuguese, including all the accents (eg. café, avô, àqueles, feijão) and the cedilla (eg. linguiça) composing the letters with ", ', ` and ~ plus the base letter (a, e, c...).
However, I recently moved to Wayland (Hyprland) due to the progress between Wayland and NVidia, and I'm facing some issues with composing. I can type the normal accents (á, ã, â, à) composing like I said before, but I can't use the cedilla (ç / Ç) the way I did before (' + c or C). I know I can use the AltGr (right alt) + , to insert the cedilla, and it would be ok if portuguese didn't use the cedilla often, but it does, and using the AltGr method is terrible for typing.
When searching for solutions, every single one I found was for X11, using ~/.XComposite or adding "GTK_IM_MODULE=cedilla" and "QT_IM_MODULE=cedilla" to /etc/environment, but nothing worked on my compositor.
The workaround I found for Chromium was to use it under XWayland by setting the ozone-platform-hint flag to X11 (that's how I've been typing the cedilla on this topic tongue). I think this indicates there is a problem on the Wayland side of things, as a X11 app composes the cedilla just fine. The same behaviour appears on Discord (X11) and Vesktop (Wayland), with the cedilla working on the former and not on the latter.

Is there a way to fix this?

System info:
- Arch Linux with 6.11.9-arch1-1 kernel

$ uname -r
6.11.9-arch1-1

- LANG=pt_BR.UTF-8

$ cat /etc/locale.conf
LANG=pt_BR.UTF-8

- Keyboard segment of ~/.config/hypr/hyprland.conf

input {
    #...
    
    kb_layout = us,us
    kb_variant = ,intl
    kb_model =
    kb_options =
    kb_rules =

    numlock_by_default = true

    #...
}

- Hyprland started from the TTY with no display manager using

$ Hyprland

- Switching to us-intl keyboard with

$ hyprctl switchxkbmap current 1

- Optimus laptop managed by envycontrol with an Intel CPU and NVidia GPU (idk why this would be important, but it caused me enough problems to make me include this information lol).

Thanks in advance for anything! smile

Offline

Board footer

Powered by FluxBB