ublue-os / bazzite

Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.92k stars 229 forks source link

Wrong language layout of physical keyboard in Game Mode #887

Closed Ganipotes closed 7 months ago

Ganipotes commented 7 months ago

Describe the bug

I prefer using azerty instead of qwerty.

In desktop mode I have the correct layout for my physical keyboard, in game mode I have the correct layout for the virtual keyboard.

But I don't have the correct layout in game mode for my physical keyboard.

What did you expect to happen?

I expected in game mode that my physical keyboard to have the azerty layout like the virtual keyboard and like the physical keyboard in desktop mode.

Output of rpm-ostree status

No response

Hardware

I'm using a home theater pc

Extra information or context

No response

lm209 commented 7 months ago

You can Change it in settings-keyboard

Ganipotes commented 7 months ago

lm209

It only modifies the virtual keyboard

lm209 commented 7 months ago

lm209

It only modifies the virtual keyboard

Sry i readed it wrong. You can try to Add your Keyboard Layout in the Desktop Mode under settings-keyboard. There is a Tab for Layouts. Make Sure that your Layout is selected.

HikariKnight commented 7 months ago

this is an upstream gamescope issue, gamescope defaults to US keyboard and no way to change it. you might have luck if you set the environment variable XKB_DEFAULT_LAYOUT=no replacing no with the correct layout for you. you can add this to /etc/environment but i would recommend testing this in desktop mode first before applying it to the whole system.

This works on desktop mode for things running in nested gamescope, but it has its own quirks (like altgr+2 to write @ on the norwegian layout will still not work, but the basic keyboard layout works as long as i do not need to use altgr which in normal typing you will not need it, at least for the norwegian layout) not sure if the same thing will work for gamescope-session though

Ganipotes commented 7 months ago

this is an upstream gamescope issue, gamescope defaults to US keyboard and no way to change it. you might have luck if you set the environment variable XKB_DEFAULT_LAYOUT=no replacing no with the correct layout for you. you can add this to /etc/environment but i would recommend testing this in desktop mode first before applying it to the whole system.

This works on desktop mode for things running in nested gamescope, but it has its own quirks (like altgr+2 to write @ on the norwegian layout will still not work, but the basic keyboard layout works as long as i do not need to use altgr which in normal typing you will not need it, at least for the norwegian layout) not sure if the same thing will work for gamescope-session though

THANK YOU A LOT!

It worked! In gamescope session !

And as a bonus, altgr works for the french layout

HikariKnight commented 7 months ago

And as a bonus, altgr works for the french layout

lucky, im jealous 😂