1
0
Fork
You've already forked wlock
0
forked from sewn/wlock
Itsy-bitsy sessionlocker
C 87.2%
Makefile 12.8%
Find a file
2024年09月13日 10:37:01 +03:00
.gitignore Makefile: cleanup, add config.h 2024年09月12日 20:44:24 +03:00
config.def.h Makefile: cleanup, add config.h 2024年09月12日 20:44:24 +03:00
LICENSE initial commit 2024年05月04日 22:16:05 +03:00
Makefile Makefile: make clean strict 2024年09月12日 22:30:27 +03:00
README.md README: change desc 2024年09月13日 10:37:01 +03:00
wlock.c reorder globals 2024年09月12日 22:20:52 +03:00

wlock

wlock is a itsy-bitsy sessionlocker for Wayland compositors that support the ext-session-lock-v1 protocol; an effective port of slock to Wayland, merging the alternate color patch to give a sense of feedback.

Excerpt from the protocol specifying the behavior:

The client is responsible for performing authentication and informing the compositor when the session should be unlocked. If the client dies while the session is locked the session remains locked, possibly permanently depending on compositor policy.

Building

To build wlock first ensure that you have the following dependencies:

  • pkg-config
  • wayland
  • wayland-protocols
  • xkbcommon

After installing the dependencies, you may build and install wlock:

make
make install

Usage

Run wlock, to get out of it, enter your password.

See the wlock usage (wlock -h) for more details.

See swayidle or widle to use wlock as a screen locker for a Wayland desktop.

Comparison

  • waylock: waylock and wlock are very similar functionality wise, with the only change being security (PAM) and codebase (Zig), being nicer to work with, as it comes from the author of River.

Credits