fabi1cazenave / qwerty-lafayette

QWERTY keyboard layout for French-speaking users
https://qwerty-lafayette.org/
107 stars 65 forks source link

Could not get it to work on Fedora 34 (Gnome 40) #90

Closed taratatach closed 1 year ago

taratatach commented 3 years ago

Since I migrated to fedora 34, which includes Gnome 40, I can't find Lafayette in the Gnome keyboard selector and setxkbmap seems to work partially in Alacritty (no altgr layer).

JulioJu commented 3 years ago

Why do you use Gnome ? 😄 :trollface:

taratatach commented 3 years ago

So I got it to mostly work on some applications with the following command:

setxkbmap fr -variant lafayette -option 'lvl5:ralt_switch_lock'

or this command if you also want to swap Esc and Caps Lock:

setxkbmap fr -variant lafayette -option 'lvl5:ralt_switch_lock' -option 'caps:swapescape'

I wouldn't work on Firefox under Wayland until I started using either of the following env variabales (I changed both for different reasons and can't tell which one did the trick for Lafayette): MOZ_DBUS_REMOTE=1 and MOZ_ENABLE_WAYLAND=1.

It's still not perfect though as I have to start a terminal to run the setxkbmap command before I can use the layout and I still don't have access to accented capital letters.

taratatach commented 3 years ago

It's not working in firefox anymore today... I don't know how I got it to work yesterday then.

maggick commented 3 years ago

Have you tried something like 'xkbcomp -w9 ~/dotfiles/lafayette.xkb $DISPLAY?

taratatach commented 3 years ago

I hadn't tried but just did and the problem remains. From the command name I believe this relates to X11? I'm running Wayland now and the problem is present only in native Wayland applications so this seems logical.

maggick commented 3 years ago

I miss that part about Wayland. Never tried it sorry.

zloak commented 3 years ago

I think I got it working on Arch Gnome 40 with Wayland and that it might get it working for other users with Wayland/Gnome in other distribution too.

Edit: I also tried on Fedora 34 with Gnome 40 on Wayland and the following solution works

Solving keyboard layout not displayed after install

First I believe there is a bug with displaying other keyboard layout. When I followed the install described on the website it completely screwed up the list of available keyboards. I only saw English US (main keyboard at the time) and French was just empty.

I add to remove the type="lafayette" tag in both evdev.xml and base.xml (located in /usr/share/X11/xkb/rules/). In other words <variant type="lafayette"> became <variant> in both these files.

I have no idea why this completly breaks the layout lists in the Gnome setting center. I am not sure if this affects other distribution/desktop environment but maybe that is something that can be changed in the install script?

Making the Lafayette keyboard layout available in Gnome

After the previous change, keyboard layouts were available again. However, selecting Lafayette layout did not do anything. The solution as suggested here is to first put Lafayette layout as the only layout. Log out and Log In of the Gnome session. You can now add additional layouts and it works like a charm. THANK YOU <≤èéêûîôâœæà>≥

taratatach commented 3 years ago

Thank you so much!! You made my day and the days coming. I had to make a slight adjustment to your solution as the type value was kalamine in my case but otherwise everything worked.

fabi1cazenave commented 1 year ago

Thanks for the work, it should be fixed now with #100.