{"id":16103608,"url":"https://github.com/lahwaacz/sxlock","last_synced_at":"2025-10-23T11:31:05.561Z","repository":{"id":7085705,"uuid":"8376037","full_name":"lahwaacz/sxlock","owner":"lahwaacz","description":null,"archived":true,"fork":false,"pushed_at":"2022-07-14T16:55:42.000Z","size":42,"stargazers_count":41,"open_issues_count":8,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-27T15:59:34.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/lahwaacz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-23T13:52:19.000Z","updated_at":"2024-07-11T20:56:34.000Z","dependencies_parsed_at":"2022-09-14T16:40:42.856Z","dependency_job_id":null,"html_url":"https://github.com/lahwaacz/sxlock","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahwaacz%2Fsxlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahwaacz%2Fsxlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahwaacz%2Fsxlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahwaacz%2Fsxlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lahwaacz","download_url":"https://codeload.github.com/lahwaacz/sxlock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237821357,"owners_count":19371738,"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":[],"created_at":"2024-10-09T18:58:14.723Z","updated_at":"2025-10-23T11:31:05.233Z","avatar_url":"https://github.com/lahwaacz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"sxlock - simple X screen locker\n===============================\n\nSimple screen locker utility for X, fork of sflock, which is based on slock. Main difference is that\nsxlock uses PAM authentication, so no suid is needed.\n\n\nFeatures\n--------\n\n - provides basic user feedback\n - uses PAM\n - sets DPMS timeout to 10 seconds, before exit restores original settings\n - basic RandR support (drawing centered on the primary output)\n\n\nRequirements\n------------\n\n - libX11 (Xlib headers)\n - libXext (X11 extensions library, for DPMS)\n - libXrandr (RandR support)\n - libXft\n - PAM\n\n\nInstallation\n------------\n\nArch Linux users can install this package from the [AUR](https://aur.archlinux.org/packages/sxlock-git/).\n\nFor manual installation just install dependencies, checkout and make:\n\n    git clone https://github.com/lahwaacz/sxlock.git\n    cd ./sxlock\n    make\n    ./sxlock\n\n\nHooking into systemd events\n---------------------------\n\nWhen using [systemd](http://freedesktop.org/wiki/Software/systemd/), you can use the following service (create `/etc/systemd/system/sxlock.service`) to let the system lock your X session on hibernation or suspend:\n\n```ini\n[Unit]\nDescription=Lock X session using sxlock\nBefore=sleep.target\n\n[Service]\nUser=\u003cusername\u003e\nEnvironment=DISPLAY=:0\nExecStart=/usr/bin/sxlock\n\n[Install]\nWantedBy=sleep.target\n```\n\nHowever, this approach is useful only for single-user systems, because there is no way to know which user is currently logged in. Use [xss-lock](https://bitbucket.org/raymonad/xss-lock) as an alternative for multi-user systems.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahwaacz%2Fsxlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahwaacz%2Fsxlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahwaacz%2Fsxlock/lists"}