{"id":13438851,"url":"https://github.com/baskerville/sxhkd","last_synced_at":"2025-03-20T06:31:35.929Z","repository":{"id":6156908,"uuid":"7386389","full_name":"baskerville/sxhkd","owner":"baskerville","description":"Simple X hotkey daemon","archived":false,"fork":false,"pushed_at":"2023-09-12T14:56:46.000Z","size":434,"stargazers_count":2824,"open_issues_count":137,"forks_count":139,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-02-22T00:19:50.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baskerville.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2012-12-31T11:20:37.000Z","updated_at":"2025-02-21T22:36:53.000Z","dependencies_parsed_at":"2024-06-12T00:00:44.276Z","dependency_job_id":"76932a18-3e54-4787-acc4-184f402eb350","html_url":"https://github.com/baskerville/sxhkd","commit_stats":{"total_commits":185,"total_committers":15,"mean_commits":"12.333333333333334","dds":0.08108108108108103,"last_synced_commit":"b0923b6b3d5d85b1ff80a5bb286934b8721a7c08"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskerville%2Fsxhkd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskerville%2Fsxhkd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskerville%2Fsxhkd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskerville%2Fsxhkd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baskerville","download_url":"https://codeload.github.com/baskerville/sxhkd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244565544,"owners_count":20473290,"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-07-31T03:01:08.970Z","updated_at":"2025-03-20T06:31:30.920Z","avatar_url":"https://github.com/baskerville.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## Description\n\n*sxhkd* is an X daemon that reacts to input events by executing commands.\n\nIts configuration file is a series of bindings that define the associations between the input events and the commands.\n\nThe format of the configuration file supports a simple notation for mapping multiple shortcuts to multiple commands in parallel.\n\n## Example Bindings\n\n\tXF86Audio{Prev,Next}\n\t\tmpc -q {prev,next}\n\n\t@XF86LaunchA\n\t\tscrot -s -e 'image_viewer $f'\n\n\tsuper + shift + equal\n\t\tsxiv -rt \"$HOME/image\"\n\n\tXF86LaunchB\n\t\txdotool selectwindow | xsel -bi\n\n\tsuper + {h,j,k,l}\n\t\tbspc node -f {west,south,north,east}\n\n\tsuper + alt + {0-9}\n\t\tmpc -q seek {0-9}0%\n\n\tsuper + {alt,ctrl,alt + ctrl} + XF86Eject\n\t\tsudo systemctl {suspend,reboot,poweroff}\n\n\tsuper + {_,shift + }{h,j,k,l}\n\t\tbspc node -{f,s} {west,south,north,east}\n\n\t{_,shift + ,super + }XF86MonBrightness{Down,Up}\n\t\tbright {-1,-10,min,+1,+10,max}\n\n\tsuper + o ; {e,w,m}\n\t\t{gvim,firefox,thunderbird}\n\n\tsuper + alt + control + {h,j,k,l} ; {0-9}\n\t\tbspc node @{west,south,north,east} -r 0.{0-9}\n\n\tsuper + alt + p\n\t\tbspc config focus_follows_pointer {true,false}\n\n\t# Smart resize, will grow or shrink depending on location.\n\t# Will always grow for floating nodes.\n\tsuper + ctrl + alt + {Left,Down,Up,Right}\n\t  n=10; \\\n\t  { d1=left;   d2=right;  dx=-$n; dy=0;   \\\n\t  , d1=bottom; d2=top;    dx=0;   dy=$n;  \\\n\t  , d1=top;    d2=bottom; dx=0;   dy=-$n; \\\n\t  , d1=right;  d2=left;   dx=$n;  dy=0;   \\\n\t  } \\\n\t  bspc node --resize $d1 $dx $dy || bspc node --resize $d2 $dx $dy\n\n## Editor Plugins\n\n### Vim\n- [vim-sxhkdrc](https://github.com/baskerville/vim-sxhkdrc).\n- [sxhkd-vim](https://github.com/kovetskiy/sxhkd-vim).\n\n### VS Code\n- [sxhkdrc-syntax](https://github.com/mosbasik/sxhkdrc-syntax).\n\n### Emacs\n- [sxhkd-mode](https://github.com/xFA25E/sxhkd-mode)\n\n----\n\nFor further information, check the `man` pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskerville%2Fsxhkd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaskerville%2Fsxhkd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskerville%2Fsxhkd/lists"}