{"id":31059853,"url":"https://github.com/danielrosehill/which-usb","last_synced_at":"2026-05-14T23:09:32.465Z","repository":{"id":314132780,"uuid":"1054230335","full_name":"danielrosehill/Which-USB","owner":"danielrosehill","description":"GUI for identifying USB devices with lsusb","archived":false,"fork":false,"pushed_at":"2025-09-10T16:58:05.000Z","size":11237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T20:44:08.814Z","etag":null,"topics":["desktop-utilities","linux","linux-desktop","lsusb","usb"],"latest_commit_sha":null,"homepage":"","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/danielrosehill.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-10T14:43:48.000Z","updated_at":"2025-09-10T16:58:08.000Z","dependencies_parsed_at":"2025-09-10T20:44:13.565Z","dependency_job_id":"ae64be88-2a56-4559-b131-a7be7b4559a5","html_url":"https://github.com/danielrosehill/Which-USB","commit_stats":null,"previous_names":["danielrosehill/which-usb-"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danielrosehill/Which-USB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrosehill%2FWhich-USB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrosehill%2FWhich-USB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrosehill%2FWhich-USB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrosehill%2FWhich-USB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrosehill","download_url":"https://codeload.github.com/danielrosehill/Which-USB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrosehill%2FWhich-USB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275238711,"owners_count":25429484,"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-09-15T02:00:09.272Z","response_time":75,"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":["desktop-utilities","linux","linux-desktop","lsusb","usb"],"created_at":"2025-09-15T09:47:33.391Z","updated_at":"2026-05-14T23:09:32.405Z","avatar_url":"https://github.com/danielrosehill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Which USB?\n\n![alt text](images/repo/header.png)\n\n## Features\n\n- Identify newly connected or disconnected USB devices\n- Works with any USB device (keyboards, mice, storage, etc.)\n- Simple interactive interface\n- No installation required (just Python 3 and lsusb)\n\n## Requirements\n\n- Linux (uses `lsusb` command)\n- Python 3.6+\n- Root access (recommended for complete device visibility)\n\n## Installation\n\n1. Clone this repository or download the `which-usb` script\n2. Make it executable:\n   ```bash\n   chmod +x which-usb\n   ```\n3. (Optional) Move it to your PATH for easy access:\n   ```bash\n   sudo mv which-usb /usr/local/bin/\n   ```\n\n## Usage\n\nRun the script:\n```bash\n./which-usb\n```\n\nOr with root privileges (recommended for best results):\n```bash\nsudo ./which-usb\n```\n\n### How It Works\n\n1. Choose your workflow:\n   - **Option 1**: Start with the device disconnected, then connect it when prompted\n   - **Option 2**: Start with the device connected, then disconnect it when prompted\n\n2. Follow the on-screen instructions to capture the USB device states\n\n3. The tool will compare the before and after states and display the differences\n\n![alt text](screenshots/1.png)\n\n![alt text](screenshots/2.png)\n\n![alt text](screenshots/3.png)\n\n## CLI vs. GUI Comparison Table\n\n![alt text](images/repo/versions.png)\n\n\n## Example Output\n\n```\n=== Which USB Device? ===\nThis tool helps identify USB devices by comparing connection states.\n\nChoose a workflow:\n1. Start with device disconnected (I'll connect it when prompted)\n2. Start with device connected (I'll disconnect it when prompted)\n3. Exit\n\nEnter your choice (1-3): 1\n\nPlease make sure the device is disconnected.\nPress Enter when ready to capture the first state...\nCaptured 12 devices.\n\nNow please connect the device and press Enter when done...\n\nCaptured 13 devices.\n\nNewly connected device(s):\n  1. Logitech, Inc. Unifying Receiver (Vendor: 046d, Product: c52b)\n```\n\n---\n\n![alt text](images/repo/ai_gen_footer.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrosehill%2Fwhich-usb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrosehill%2Fwhich-usb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrosehill%2Fwhich-usb/lists"}