{"id":16177593,"url":"https://github.com/raphaelm/facelock","last_synced_at":"2026-02-15T09:04:01.851Z","repository":{"id":15910106,"uuid":"18651733","full_name":"raphaelm/facelock","owner":"raphaelm","description":"This is how I lock my laptop screen whenever I'm around security people.","archived":false,"fork":false,"pushed_at":"2015-12-31T13:11:45.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T20:04:35.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphaelm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-10T21:02:37.000Z","updated_at":"2022-10-04T07:04:51.000Z","dependencies_parsed_at":"2022-07-23T00:16:13.280Z","dependency_job_id":null,"html_url":"https://github.com/raphaelm/facelock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raphaelm/facelock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Ffacelock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Ffacelock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Ffacelock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Ffacelock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelm","download_url":"https://codeload.github.com/raphaelm/facelock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Ffacelock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266189674,"owners_count":23890064,"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-10T05:09:38.017Z","updated_at":"2025-10-09T19:09:43.937Z","avatar_url":"https://github.com/raphaelm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is how I lock my laptop screen whenever I'm around security people.\nIt shows the current image of the webcam and marks detected faces by anyone,\nemulating a face-recognition lockscreen (which it is not, it is unlocked with\na password). When someone is staring into the webcam longer than X, the script\ntakes a photo.\n\nThis is a very dirty hack. The `facelock` shell script does a bunch things:\n* Startup a python script which displays the webcam image and draws a red\n  border around faces.\n* Ask the window manager (for me, with `i3-msg`) to make the window fullscreen\n* Start a transparent lockscreen (`alock`) in front of it.\n* As soon as `alock` terminates (screen is unlocked), the python script is killed\n\nTo run it on your system, you might need to:\n* Adjust some variables in the first lines of the python script\n* Adjust the fullscreen mechanism to your window manager\n* Replace the lockscreen, I tried `alock` and `xtrlock`\n\n\nDependencies\n============\n* alock (you can replace it by xtrlock)\n* opencv with Python bindings\n* i3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Ffacelock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelm%2Ffacelock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Ffacelock/lists"}