Crates.io | megalock |
lib.rs | megalock |
version | 0.1.0 |
source | src |
created_at | 2023-12-29 06:48:35.766665 |
updated_at | 2023-12-29 06:48:35.766665 |
description | X11 xlock replacement |
homepage | https://github.com/erikh/megalock |
repository | https://github.com/erikh/megalock |
max_upload_size | |
id | 1083012 |
size | 82,478 |
This currently is a substrate for a minimal xlock replacement in Rust. It is only functional with X11, but performs the following functions:
TRACE=1
: Enable Trace (lowest) level debuggingDEBUG=1
: Enable Debug level logging -- most status changes, but no raw dataEXIT_TRAP=n
: Forcefully terminate the program after n
secondsIt performs no indication of events while displaying the lock screen. This is being worked on now.
Events are all synthetic, which are then translated to X11 calls in a dedicated thread. This should allow for easy porting to wayland later without breaking the X11 contract, allowing megalock
to work with both systems natively.
Optimized binary size is about 730k, which was a nice discovery. We'll see if that sticks.
If you use megalock
, be sure to put contrib/megalock in /etc/pam.d
so that megalock can use the PAM subsystem effectively. megalock
may not work on OpenBSD.
Special thanks to Michael Stapelberg, who wrote i3lock
, I spent a lot of time reading it while learning how to write this program.
Erik Hollensbe git@hollensbe.org
MIT