Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in sway-lock #12

Open
owittek opened this issue Apr 25, 2024 · 7 comments
Open

Stuck in sway-lock #12

owittek opened this issue Apr 25, 2024 · 7 comments

Comments

@owittek
Copy link
Contributor

owittek commented Apr 25, 2024

Hey, I really like the config and I have taken it as a base for my own configuration! A problem I have is that I'm stuck in sway-lock and don't know what to do. I have auto-login enabled so I'm not sure why it appears on startup and all I get is WRONG, CLEARED or a light going up on the circle.

I have not modified anything related to Hyprland yet so I'm not even sure what could cause it. My current "solution" is to disable it all together. Thanks a lot for any help you can provide!

@Frost-Phoenix
Copy link
Owner

Hi,

So the fact that you choose auto login during the install has no effect on the config itself (because the config also define auto login as true in modules/core/xserver.nix) and swaylock is started by the hyprland config (line 14 in modules/home/hyprland/config.nix).
Now when you see the swaylock screen you have to input your password (the one that you choose during the nixos install) and press enter at the end.
And if you want the disable the login screen you can just remove the line 14 in modules/home/hyprland/config.nix.

I Hope this can help you.

@owittek
Copy link
Contributor Author

owittek commented Apr 26, 2024

Hey! Just reactivated swaylock by uncommenting line 14 but I'm still having the same issue. I enter my password and hit enter but it says Wrong even though I'm pretty sure I'm able to enter 123 properly

@Frost-Phoenix
Copy link
Owner

I'm sorry but I really don't see what it can be. Maybe you need to use the root psw? idk. If it is not that I don't think I can really help you 😞

@sleeyax
Copy link
Contributor

sleeyax commented May 19, 2024

Swaylock works a bit differently compared to what you might be used to. Just type your password to unlock it. No need to press enter, space or anything before or afterwards. If that doesn't work, your password is likely wrong. If you haven't lost your root password you can open a TTY session (CTRL + ALT + F4) to reset the user password.

@owittek
Copy link
Contributor Author

owittek commented May 21, 2024

It's really strange since my root pwd is the same as my user pwd, being 123. So I don't get why it wouldn't work. And if any characters are already typed in, how do I clear the input if it has no key to confirm my input?

@sleeyax
Copy link
Contributor

sleeyax commented May 21, 2024

To clear the input you can hit backspace until it says 'cleared'. Maybe there's a shortcut to clear all in one go, I'm new to swaylock as well so I don't know.

Perhaps the issue you're having is because of the keyboard layout? It defaults to "us".

@owittek
Copy link
Contributor Author

owittek commented May 21, 2024

Oh yeah I remember spamming backspace to clear the input. I am also using the en-us keyboard so that should be fine as well. Just to be sure I've also tried holding shift. Not sure if there's a CAPSLOCK indicator but I used keyd to remap it to ctrl/esc anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants