{"id":15007453,"url":"https://github.com/idlesign/keybind","last_synced_at":"2025-10-05T20:26:14.997Z","repository":{"id":62574031,"uuid":"157716906","full_name":"idlesign/keybind","owner":"idlesign","description":"Global key binding made easy","archived":false,"fork":false,"pushed_at":"2020-04-17T11:42:56.000Z","size":20,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T08:42:01.328Z","etag":null,"topics":["hotkeys","keybindings","linux","python","unix","x11"],"latest_commit_sha":null,"homepage":"https://github.com/idlesign/keybind","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idlesign.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T13:35:07.000Z","updated_at":"2024-10-31T14:55:15.000Z","dependencies_parsed_at":"2022-11-03T18:36:52.522Z","dependency_job_id":null,"html_url":"https://github.com/idlesign/keybind","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fkeybind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fkeybind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fkeybind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fkeybind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idlesign","download_url":"https://codeload.github.com/idlesign/keybind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238930129,"owners_count":19554127,"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":["hotkeys","keybindings","linux","python","unix","x11"],"created_at":"2024-09-24T19:10:02.891Z","updated_at":"2025-10-05T20:26:14.874Z","avatar_url":"https://github.com/idlesign.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"keybind\n=======\nhttps://github.com/idlesign/keybind\n\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n   :target: https://idlesign.github.io/lbc/\n   :alt: LBC Python 2\n\n\n|release| |lic| |ci| |coverage|\n\n.. |release| image:: https://img.shields.io/pypi/v/keybind.svg\n    :target: https://pypi.python.org/pypi/keybind\n\n.. |lic| image:: https://img.shields.io/pypi/l/keybind.svg\n    :target: https://pypi.python.org/pypi/keybind\n\n.. |ci| image:: https://img.shields.io/travis/idlesign/keybind/master.svg\n    :target: https://travis-ci.org/idlesign/keybind\n\n.. |coverage| image:: https://img.shields.io/coveralls/idlesign/keybind/master.svg\n    :target: https://coveralls.io/r/idlesign/keybind\n\n\nDescription\n-----------\n\n*Global key binding made easy*\n\n**Requires X11 (X Window System). For UNIX-like systems, e.g. Linux.**\n\nCan be used both as a Python package and from CLI.\n\nFeatures:\n\n* Create some global key bindings to your functions.\n* Use them in your GUI or CLI application.\n* Bind arbitrary program run to a key using CLI.\n\n\nFrom Python\n~~~~~~~~~~~\n\n.. code-block:: python\n\n    from keybind import KeyBinder\n\n\n    def do():\n        print('done')\n\n    # The following will start key listening loop in a thread\n    # (useful if you don't want to block your main program).\n    KeyBinder.activate({\n\n        'Ctrl-K': do,\n        'Shift-R': None,  # Do not run anything, just intercept.\n\n    }, run_thread=True)\n\n\n\nFrom CLI\n~~~~~~~~\n\n.. code-block:: bash\n\n    ; Listen to Ctrl-K, Ctrl-R and D (keycode 40).\n    ; Provide as many -k as you want.\n    $ keybind -k \"Ctrl-K=ls -lah\" -k \"Ctrl-R=python run.py somearg --someopt\" -k \"40=date\"\n\n    ; All keys interception mode. Show keycodes.\n    ; Use wisely, keep your mouse ready.\n    $ keybind --sniff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fkeybind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidlesign%2Fkeybind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fkeybind/lists"}