I wanted to be able to leave my uConsole on while it was compiling some software without worrying about my kids’ tiny hands pushing buttons. It didn’t seem a lock screen and keyboard shortcut came by default with the Bookworm image so I went hunting. In the end I installed swaylock and set up a keyboard shortcut in wayfire.ini.
sudo apt install swaylock
And then add the following to ~/.config.wayfire.ini
Actually figured out FN+ESC locks the keyboard and mouse buttons from input. (Similar to a phone button lock.) Same combo unlocks it.
Doesn’t put the system to sleep or prompt with a password to unlock, it just spares unintended presses. (Combined with setting the power switch to prompt what to do before shutdown, covers 90% of accidental contact.)
I just got some time to try this out. Do you know if you can display a login field on the lock screen? The man page doesn’t have anything for that but I think that is should be something that’s a option.
afaik swaylock, like i3lock, only has the keypress indicator dial. There’s also swaylock-effects that can add some visual enhancements but no password field.
From my quick searching, swaylock was the only wayland screen locker present in the apt repo. hyprlock and gtklock are not and both have login fields.
Thank you I’ll look into them tomorrow and I might have to compile one of them into a package for my repo. I can think of a few reasons for a lock screen (my kids) but I want a password field. I think it just looks better for a lockscreen.