Can't change layout when hyprlock is active
Regression?
No
System Info and Version
System/Version info
<Paste the output of the command here>
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
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
Hello there!
This issue has been closed, as we are moving from issues to discussions. More about this can be found here and in #9854.
Firstly, please make sure this issue is still relevant in latest Hyprland. If so, we ask you to open a discussion (please read the discussion guidelines first, in the pinned post)
Thank you for your understanding!
you can use this to toggle between keyboard layouts in lock screen with click on layout label:
add to hyprlock.conf
label {
text = $LAYOUT
position = -50, 160
halign = right
valign = bottom
onclick = hyprctl switchxkblayout current next
}