{"id":20828696,"url":"https://github.com/folixg/yubikey-windows-lock","last_synced_at":"2025-08-31T11:35:52.224Z","repository":{"id":215196095,"uuid":"478563840","full_name":"folixg/yubikey-windows-lock","owner":"folixg","description":"Lock your Windows machine when Yubikey is removed","archived":false,"fork":false,"pushed_at":"2022-04-07T14:46:34.000Z","size":7,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T14:11:17.399Z","etag":null,"topics":["locking","screenlock","screenlocker","windows","windows-10","windows-desktop","yubico","yubikey"],"latest_commit_sha":null,"homepage":"","language":"Python","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/folixg.png","metadata":{"files":{"readme":"readme.rst","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-06T13:06:03.000Z","updated_at":"2024-06-11T22:22:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"1011dae9-e090-4a4c-8f17-cb7b0ba2a178","html_url":"https://github.com/folixg/yubikey-windows-lock","commit_stats":null,"previous_names":["folixg/yubikey-windows-lock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folixg%2Fyubikey-windows-lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folixg%2Fyubikey-windows-lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folixg%2Fyubikey-windows-lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folixg%2Fyubikey-windows-lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folixg","download_url":"https://codeload.github.com/folixg/yubikey-windows-lock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252955122,"owners_count":21831046,"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":["locking","screenlock","screenlocker","windows","windows-10","windows-desktop","yubico","yubikey"],"created_at":"2024-11-17T23:18:04.620Z","updated_at":"2025-05-07T21:21:37.284Z","avatar_url":"https://github.com/folixg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"####################\nYubikey Windows Lock\n####################\n\nA script to lock your Windows machine once a formerly connected Yubikey\nis removed.\n\nRequirements\n============\nNeeds a Python installation and yubikey-manager which can be installed with\n\n.. code-block:: shell\n\n    pip install --user yubikey-manager\n\nUsage\n=====\n\nCommand Line Options\n--------------------\n\n.. code-block::\n\n    usage: yubikey_windows_lock.py [-h] [-s SERIAL] [-w WAIT]\n\n    Lock Windows when Yubikey is removed\n\n    options:\n    -h, --help            show this help message and exit\n    -s SERIAL, --serial SERIAL\n                            Limit to yubikey with this serial number\n    -w WAIT, --wait WAIT  The time (in s) between two checks (default: 2)\n\nStart At Windows Login\n----------------------\nAn easy way to automatically launch the script on Windows login is to use Windows Task Scheduler.\nCreate a basic task that is executed on logon and as action starts a program.\nIn the ``Program/Script`` field provide the path to ``pythonw.exe`` of your Python installation.\nTypically that is\n\n.. code-block::\n\n    C:\\Users\\\u003cyour_username\u003e\\AppData\\Local\\Programs\\Python\\\u003cyour_python_version\u003e\\pythonw.exe\n\nIn the ``Add arguments`` field you provide the path to ``yubikey_windows_lock.py`` and optionally the\narguments you want to provide to the script.\nSo it should look something like\n\n.. code-block::\n\n    C:\\Users\\\u003cyour_username\u003e\\\u003cpath_to_this_repo\u003e\\yubikey_windows_lock.py -w 3 -s \u003cyour_yubikey_serial\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolixg%2Fyubikey-windows-lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolixg%2Fyubikey-windows-lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolixg%2Fyubikey-windows-lock/lists"}