{"id":15902825,"url":"https://github.com/erikh/megalock","last_synced_at":"2025-03-22T03:23:54.107Z","repository":{"id":214583132,"uuid":"736434708","full_name":"erikh/megalock","owner":"erikh","description":"Locks your screen and requires a password to enter","archived":false,"fork":false,"pushed_at":"2024-01-03T03:14:55.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T16:00:48.661Z","etag":null,"topics":["i3lock","lock","x11","xlock"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erikh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-27T22:40:55.000Z","updated_at":"2024-01-30T11:11:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"446e5675-325f-40ef-9b22-923589357e52","html_url":"https://github.com/erikh/megalock","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"ee06db9e67a4c84a9a9efad1f2908d067cdf9bbc"},"previous_names":["erikh/megalock"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fmegalock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fmegalock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fmegalock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fmegalock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikh","download_url":"https://codeload.github.com/erikh/megalock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244900810,"owners_count":20528802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["i3lock","lock","x11","xlock"],"created_at":"2024-10-06T12:00:20.860Z","updated_at":"2025-03-22T03:23:54.090Z","avatar_url":"https://github.com/erikh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# megalock: X11 xlock replacement\n\nThis currently is a substrate for a minimal xlock replacement in Rust. It is only functional with X11, but performs the following functions:\n\n-   Blanks the entire screen regardless of monitor configuration\n-   Grabs the keyboard and pointing devices\n-   Buffers all input into a password\n    -   Backspace removes the previously entered characters, walking back to the beginning of the buffer\n-   Upon pressing enter, verifies that password\n    -   On success, the program exits\n    -   On failure, the program clears the password field and continues\n-   Performs all password checking through PAM\n-   Additionally, the following environment variables are respected:\n    -   `TRACE=1`: Enable Trace (lowest) level debugging; includes passwords in plain text\n    -   `DEBUG=1`: Enable Debug level logging -- most status changes, but no raw data\n    -   `EXIT_TRAP=n`: Forcefully terminate the program after `n` seconds\n\nIt performs no indication of events while displaying the lock screen. This is\nbeing worked on now.\n\nEvents 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.\n\nOptimized binary size is about 730k, which was a nice discovery. We'll see if that sticks.\n\n## Installation\n\n```\ncargo install megalock\n```\n\nDebian and RedHat packages will come soon!\n\n### PAM configuration\n\nIf you use `megalock`, be sure to put [contrib/megalock](contrib/megalock) in `/etc/pam.d` so that megalock can use the PAM subsystem effectively. `megalock` may not work on OpenBSD.\n\n## Thanks\n\nSpecial thanks to Michael Stapelberg, who wrote `i3lock`, I spent a lot of time reading it while learning how to write this program.\n\n## Author\n\nErik Hollensbe \u003cgit@hollensbe.org\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fmegalock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikh%2Fmegalock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fmegalock/lists"}