hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.96k stars 851 forks source link

Can't change layout when hyprlock is active #7494

Open ilyamiro opened 1 month ago

ilyamiro commented 1 month ago

Regression?

No

System Info and Version

System/Version info ```sh ```

Description

I have a shortcut for changing my keyboard layout on hyprland that works fine, as intended, but i have 2 different keyboard layouts, and my password is in english. If i lock the screen using hyprlock and my selected layout was not english at the moment, i can't change it with my shortcut as i did before. What can i do?

How to reproduce

Lock the screen with hyprlock with a different layout

Crash reports, logs, images, videos

No response

arminius-smh commented 1 month ago

If you're using hypridle you could do something like on-timeout = hyprctl switchxkblayout [your-keyboard] [id-english-layout] && hyprlock to reset your keyboard layout to english before you lock your screen, see here for more explanation of the cmd: https://wiki.hyprland.org/Configuring/Using-hyprctl/#switchxkblayout