{"id":15722855,"url":"https://github.com/bkbilly/xlib_hotkeys","last_synced_at":"2026-02-12T13:03:48.727Z","repository":{"id":229646173,"uuid":"777296194","full_name":"bkbilly/xlib_hotkeys","owner":"bkbilly","description":"Register Keyboard Hotkeys to a callback function","archived":false,"fork":false,"pushed_at":"2024-03-25T15:41:45.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T16:57:07.361Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkbilly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"bkbilly","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/bkbillybk"]}},"created_at":"2024-03-25T15:26:56.000Z","updated_at":"2025-10-04T14:26:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0dd00ab-02e4-4d94-9b2a-d3347b3404ce","html_url":"https://github.com/bkbilly/xlib_hotkeys","commit_stats":null,"previous_names":["bkbilly/xlib_hotkeys"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bkbilly/xlib_hotkeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fxlib_hotkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fxlib_hotkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fxlib_hotkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fxlib_hotkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkbilly","download_url":"https://codeload.github.com/bkbilly/xlib_hotkeys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fxlib_hotkeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29366570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-03T22:09:30.688Z","updated_at":"2026-02-12T13:03:48.694Z","avatar_url":"https://github.com/bkbilly.png","language":"Python","funding_links":["https://github.com/sponsors/bkbilly","https://www.paypal.me/bkbillybk"],"categories":[],"sub_categories":[],"readme":"# xlib-hotkeys\n\n[![pypi](https://img.shields.io/pypi/v/xlib-hotkeys.svg)](https://pypi.python.org/pypi/xlib-hotkeys)\n![python version](https://img.shields.io/pypi/pyversions/xlib-hotkeys.svg)\n![license](https://img.shields.io/pypi/l/xlib-hotkeys.svg)\n\nPython library for Linux to register keyboard combinations to a callback function.\n\n\n## Requirements\n* Python 3.7 or later\n\n\n## Installation\nInstall using:\n```\npip install xlib-hotkeys\n```\n\n\n## Usage\nYou can use this module from the command line\n```bash\nxlib-hotkeys -h\nxlib-hotkeys -d :0 -k ctrl+return shift+f2\n```\n\n```python\nfrom xlib_hotkeys import HotKeysManager\n\n\ndef KeyDown(key, keyspressed):\n    print(f\"Keys Pressed: {keyspressed}\")\n\n\ndef Hotkey1():\n    print(f\" Hotkey1 detected\")\n\n\ndef Hotkey2():\n    print(f\" Hotkey2 detected\")\n\n\nhk = HotKeysManager(display_str=\":0\")\nhk.KeyDown = KeyDown\nhk.hotkeys[\"ctrl+return\"] = Hotkey1()\nhk.hotkeys[\"shift+f2\"] = Hotkey2()\n\nhk.start()\ntime.sleep(50)\nhk.stop()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fxlib_hotkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkbilly%2Fxlib_hotkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fxlib_hotkeys/lists"}