{"id":16567586,"url":"https://github.com/daboynb/linux_bluetooth_unlock","last_synced_at":"2026-05-08T02:05:20.452Z","repository":{"id":200208356,"uuid":"705038996","full_name":"daboynb/linux_bluetooth_unlock","owner":"daboynb","description":"A script that monitors whether a Bluetooth device is connected or not. If the device is connected, all is okay; otherwise, the screen gets locked immediately until the device reconnects.","archived":false,"fork":false,"pushed_at":"2024-03-15T10:57:10.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T10:43:27.361Z","etag":null,"topics":["bash","bluetooth","linux","lock","unlock"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daboynb.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-14T21:19:31.000Z","updated_at":"2023-11-29T00:41:36.000Z","dependencies_parsed_at":"2023-10-16T04:24:51.156Z","dependency_job_id":"d8853a70-4452-4e98-b4f6-60350348d575","html_url":"https://github.com/daboynb/linux_bluetooth_unlock","commit_stats":null,"previous_names":["daboynb/linux_bluetooth_unlock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daboynb/linux_bluetooth_unlock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Flinux_bluetooth_unlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Flinux_bluetooth_unlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Flinux_bluetooth_unlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Flinux_bluetooth_unlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daboynb","download_url":"https://codeload.github.com/daboynb/linux_bluetooth_unlock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Flinux_bluetooth_unlock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27291184,"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","status":"online","status_checked_at":"2025-11-28T02:00:06.623Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","bluetooth","linux","lock","unlock"],"created_at":"2024-10-11T21:06:59.669Z","updated_at":"2025-11-28T02:08:53.808Z","avatar_url":"https://github.com/daboynb.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/daboynb"],"categories":[],"sub_categories":[],"readme":"If you wanna help me\n\n\u003ca href=\"https://www.buymeacoffee.com/daboynb\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\nA script that monitors whether a Bluetooth device is connected or not. If the device is connected, all is okay; otherwise, the screen gets locked immediately until the device reconnects.\n\nTested only on Debian 12 gnome.\n\n\n    wget https://raw.githubusercontent.com/daboynb/linux_bluetooth_unlock/main/Btmanager.sh \u0026\u0026 chmod +x Btmanager.sh \u0026\u0026 ./Btmanager.sh\n\n# Images\n\n# Before\n\n- The program started with the Bluetooth device connected.\n\n   \n![before](https://github.com/daboynb/linux_bluetooth_unlock/assets/106079917/9c0992bc-2686-422c-a270-07204468a94c)\n\n# After\n\n- The program detected that the Bluetooth device got disconnected and locked the session.\n- The program detected that the Bluetooth device got reconnected and unlocked the session.\n\n   \n![after](https://github.com/daboynb/linux_bluetooth_unlock/assets/106079917/1568bbd5-1e1e-4018-8126-104c38d105ef)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboynb%2Flinux_bluetooth_unlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaboynb%2Flinux_bluetooth_unlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboynb%2Flinux_bluetooth_unlock/lists"}