{"id":16573687,"url":"https://github.com/dkarter/ukey","last_synced_at":"2025-10-29T04:30:45.230Z","repository":{"id":54416913,"uuid":"101325302","full_name":"dkarter/ukey","owner":"dkarter","description":"🔐 Automatically lock macOS when a USB device is removed","archived":false,"fork":false,"pushed_at":"2024-01-09T04:13:12.000Z","size":20,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-10T16:03:32.904Z","etag":null,"topics":["bitbar-plugin","macos","rubber-ducky","security-tools","usb"],"latest_commit_sha":null,"homepage":"https://doriankarter.com","language":"Ruby","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/dkarter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-24T18:23:44.000Z","updated_at":"2023-05-05T22:24:44.000Z","dependencies_parsed_at":"2022-08-13T15:00:49.800Z","dependency_job_id":null,"html_url":"https://github.com/dkarter/ukey","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fukey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fukey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fukey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fukey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkarter","download_url":"https://codeload.github.com/dkarter/ukey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219858495,"owners_count":16556043,"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":["bitbar-plugin","macos","rubber-ducky","security-tools","usb"],"created_at":"2024-10-11T21:42:49.378Z","updated_at":"2025-10-29T04:30:39.076Z","avatar_url":"https://github.com/dkarter.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## UKey\n\nAutomatically lock mac when a USB device is removed\n\n## Installation\n\nInstall the gem globally:\n\n```bash\ngem install ukey\n```\n\n## Usage\n\nSelect the device by plugging it in and running:\n\n```bash\nukey select-device\n```\n\nI use a YubiKey, which I prefer because you do not have to eject it, \nbut this script will work with almost any USB device.\n\nThen to run the program\n\n```bash\nukey watch\n```\n\n## Menubar App\n\nukey works with BitBar - it will show you the status of the ukey watcher and allow you to start and stop the watcher right from your macOS menubar.\n\n### Installation\n\n1. Install the ukey gem globally (instructions above)\n2. Install BitBar from [this fork by @oleander](https://github.com/oleander/bitbar/releases) \n3. Copy the bitbar/ukey.rb file from the ukey repo into your BitBar \"enabled plugins\" folder.\n4. Run BitBar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fukey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkarter%2Fukey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fukey/lists"}