{"id":16164806,"url":"https://github.com/ltratt/hk","last_synced_at":"2025-03-16T10:30:43.734Z","repository":{"id":55908554,"uuid":"437390963","full_name":"ltratt/hk","owner":"ltratt","description":"hk: Set temporary X11 hotkeys","archived":false,"fork":false,"pushed_at":"2024-09-07T07:34:52.000Z","size":47,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T07:30:57.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tratt.net/laurie/src/hk/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ltratt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2021-12-11T21:18:58.000Z","updated_at":"2024-11-04T06:15:56.000Z","dependencies_parsed_at":"2024-09-07T08:41:14.278Z","dependency_job_id":"c97425b1-dc2a-4fdf-afb9-5a7709444831","html_url":"https://github.com/ltratt/hk","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/ltratt%2Fhk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltratt%2Fhk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltratt%2Fhk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltratt%2Fhk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltratt","download_url":"https://codeload.github.com/ltratt/hk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809886,"owners_count":20351407,"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":[],"created_at":"2024-10-10T02:47:55.819Z","updated_at":"2025-03-16T10:30:43.464Z","avatar_url":"https://github.com/ltratt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hk: Set temporary X11 hotkeys\n\n## Overview\n\n`hk` allows temporary X11 hotkeys to be set. Its usage is:\n\n```sh\nhk [-w] \u003chotkey\u003e \u003ccommand\u003e [\u003cargument\u003e ...]\n```\n\nwhere `\u003chotkey\u003e` is of the form `[Modifier1[+Modifier2[+...]]+]\u003cKey\u003e`. For example:\n\n```sh\nhk Ctrl+Shift+F6 notify-send \"Hello\"\n```\n\nwill execute the command `notify-send \"Hello`\" when `Ctrl+Shift+F6` is pressed.\n`hk` exits as soon as the command has executed.\n\n`hk` passes through stdin unchanged so you can pipe input to commands e.g.:\n\n```sh\nuname | hk Ctrl+F8 xargs notify-send\n```\n\nBy default, `hk` executes the command as soon as the hotkey sequence is\npressed. The `-w` option makes `hk` wait until all keys (not just the hotkeys)\nhave been released. This can be useful if the action of the command can be\neffected by key presses. For example if you use `xdotool type` to enter text on\na hotkey, then having the `Ctrl` key held down can have surprising effects\nwhich `-w` can alleviate:\n\n```sh\nuname | hk -w Ctrl+F8 xdotool type --file -\n```\n\n\n## Install\n\n```sh\n$ autoconf\n$ ./configure\n$ make install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltratt%2Fhk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltratt%2Fhk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltratt%2Fhk/lists"}