nlock is a customisable, minimalist screen locker for Wayland compositors.
nlock uses the ext-session-lock-v1 protocol, and should be compatible with
any compositor that correctly implements it.
See the documentation.
nlock is written in Rust, and uses Cargo as it's build system. It should compile with the latest stable Rust, I haven't tested older versions.
In addition, you'll need development libraries for the following, which can probably be installed via your system package manager:
- Clang
- GLib
- GDK-Pixbuf
- PAM
- Cairo
- xkbcommon
With all of that, you should just be able to clone this repository, and run:
$ cargo build --releaseThe generated binary should then be located at target/release/nlock.
Several other projects have been very helpful during development of nlock:
- swaylock - rendering with Cairo, and general architecture.
- where-is-my-sddm-theme - the SDDM theme that nlock is based on.
nlock is licensed under the GNU General Public License Version 3, or later. See LICENSE for details.