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

deadkeys not working on sway #1025

Open
cfsmp3 opened this issue Jun 27, 2024 · 6 comments
Open

deadkeys not working on sway #1025

cfsmp3 opened this issue Jun 27, 2024 · 6 comments
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor

Comments

@cfsmp3
Copy link

cfsmp3 commented Jun 27, 2024

I've been troubleshooting this with @SoumyaRanjanPatnaik but wanted to leave it here as well.

For some reason, after upgrading from Ubuntu 23.10 to 24.04 and regolith from 3.1 to 3.2 beta, I can't type accented letters on my Spanish keyboard. This only happens on sway. GNOME and i3 are OK.

I played a lot with the different kbd config files, but was unable to figure it out.

What I know for sure is that this file
/usr/share/X11/xkb/symbols/es

is loaded. I could trivially verify it by replacing this line:

key { [dead_acute, dead_diaeresis, braceleft, dead_caron ] };

with

key { [J, dead_diaeresis, braceleft, dead_caron ] };

That of course types a J when I press the key that should instead issue dead_acute.

So that part works.

Then this file:
locale/en_US.UTF-8/Compose

<dead_acute> : "á" aacute # LATIN SMALL LETTER A WITH ACUTE
<dead_acute> : "é" eacute # LATIN SMALL LETTER E WITH ACUTE
<dead_acute> : "í" iacute # LATIN SMALL LETTER I WITH ACUTE

Contains the next step, but I'm not sure it's loaded at all.

I've also tried reinstalling the packages that provide those files, just in case ( libx11-data and xkb-data).

More info:

✦ ❯ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: (unset)
X11 Layout: es
X11 Model: pc105

✦ ❯ swaymsg -t get_inputs
Input device: Dell Dell Wired Multimedia Keyboard System Control
Type: Keyboard
Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_System_Control
Product ID: 8464
Vendor ID: 16700
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: Dell Dell Wired Multimedia Keyboard
Type: Keyboard
Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard
Product ID: 8464
Vendor ID: 16700
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: Dell Dell Wired Multimedia Keyboard Consumer Control
Type: Keyboard
Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_Consumer_Control
Product ID: 8464
Vendor ID: 16700
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: Dell Dell Wired Multimedia Keyboard Mouse
Type: Mouse
Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_Mouse
Product ID: 8464
Vendor ID: 16700
Libinput Send Events: enabled

Input device: HID 0c45:7403
Type: Mouse
Identifier: 3141:29699:HID_0c45:7403
Product ID: 29699
Vendor ID: 3141
Libinput Send Events: enabled

Input device: HID 0c45:7403
Type: Keyboard
Identifier: 3141:29699:HID_0c45:7403
Product ID: 29699
Vendor ID: 3141
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: AT Translated Set 2 keyboard
Type: Keyboard
Identifier: 1:1:AT_Translated_Set_2_keyboard
Product ID: 1
Vendor ID: 1
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: PIXA3854:00 093A:0274 Touchpad
Type: Touchpad
Identifier: 2362:628:PIXA3854:00_093A:0274_Touchpad
Product ID: 628
Vendor ID: 2362
Libinput Send Events: enabled

Input device: PIXA3854:00 093A:0274 Mouse
Type: Mouse
Identifier: 2362:628:PIXA3854:00_093A:0274_Mouse
Product ID: 628
Vendor ID: 2362
Libinput Send Events: enabled

Input device: FRMW0004:00 32AC:0006 Consumer Control
Type: Mouse
Identifier: 12972:6:FRMW0004:00_32AC:0006_Consumer_Control
Product ID: 6
Vendor ID: 12972
Libinput Send Events: enabled

Input device: FRMW0004:00 32AC:0006 Consumer Control
Type: Keyboard
Identifier: 12972:6:FRMW0004:00_32AC:0006_Consumer_Control
Product ID: 6
Vendor ID: 12972
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: FRMW0004:00 32AC:0006 Wireless Radio Control
Type: Keyboard
Identifier: 12972:6:FRMW0004:00_32AC:0006_Wireless_Radio_Control
Product ID: 6
Vendor ID: 12972
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: DP-2
Type: Mouse
Identifier: 0:0:DP-2
Product ID: 0
Vendor ID: 0
Libinput Send Events: enabled

Input device: DP-2
Type: Keyboard
Identifier: 0:0:DP-2
Product ID: 0
Vendor ID: 0
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: Power Button
Type: Keyboard
Identifier: 0:1:Power_Button
Product ID: 1
Vendor ID: 0
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

Input device: Lid Switch
Type: Switch
Identifier: 0:5:Lid_Switch
Product ID: 5
Vendor ID: 0
Libinput Send Events: enabled

Input device: Video Bus
Type: Keyboard
Identifier: 0:6:Video_Bus
Product ID: 6
Vendor ID: 0
Active Keyboard Layout: Spanish
Libinput Send Events: enabled

@cfsmp3 cfsmp3 added bug Something isn't working needs-triage Any bug that requires classification by a contributor labels Jun 27, 2024
@fhchl
Copy link

fhchl commented Oct 16, 2024

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

@cfsmp3
Copy link
Author

cfsmp3 commented Oct 16, 2024

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I troubleshooted all I could without success. I'm hoping the next sway version (current rc3 I believe) will fix it, assuming it's a sway bug.

@cfsmp3
Copy link
Author

cfsmp3 commented Oct 16, 2024

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I troubleshooted all I could without success. I'm hoping the next sway version (currently rc3 I believe) will fix it, assuming it's a sway bug.

@khannurien
Copy link

khannurien commented Oct 31, 2024

I'm having the same issue with a fresh Ubuntu 24.04 + Regolith 3.2 install. Dead keys work as expected under GNOME/Wayland; they do not work at all under Regolith/Wayland (sway).

They do work with the same keyboard layout under Regolith/X11 (but then there are other issues, such as the touchpad's pinch to zoom not working).

@karlsebal
Copy link

karlsebal commented Nov 3, 2024

Same here. Neither dead keys are working with sway nor compose key. The latter is clearly caught, though, for when using the menu key as compose key the menu is no longer displayed when the key has been pressed. This is a fresh install and in ubuntu/gnome compose key and dead keys are working as well as in the i3/xorg session of regolith. I remember all running well with sway in the former install.

I can‘t say for sure if this is an upstream bug. Apparently it is, though.

@karlsebal
Copy link

karlsebal commented Nov 3, 2024

@fhchl

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I always have to swaymsg 'input * xkb_options compose:menu' as described here, for me gnome settings never took any effect in sway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor
Projects
None yet
Development

No branches or pull requests

4 participants