Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Can't change layout when hyprlock is active

Open ilyamiro opened this issue 1 year ago • 1 comments

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

ilyamiro avatar Aug 24 '24 12:08 ilyamiro

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

arminius-smh avatar Aug 24 '24 20:08 arminius-smh

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!

vaxerski avatar Apr 05 '25 19:04 vaxerski

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
}

amirsarfar avatar Oct 18 '25 14:10 amirsarfar