{"id":13438975,"url":"https://github.com/emersion/slurp","last_synced_at":"2025-05-16T02:07:22.656Z","repository":{"id":39987223,"uuid":"134167267","full_name":"emersion/slurp","owner":"emersion","description":"Select a region in a Wayland compositor","archived":false,"fork":false,"pushed_at":"2024-08-24T07:03:35.000Z","size":139,"stargazers_count":1025,"open_issues_count":44,"forks_count":59,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-10T15:09:45.236Z","etag":null,"topics":["cli","screenshot","wayland"],"latest_commit_sha":null,"homepage":"https://wayland.emersion.fr/slurp","language":"C","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/emersion.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":"2018-05-20T16:27:09.000Z","updated_at":"2025-05-10T14:00:06.000Z","dependencies_parsed_at":"2022-09-06T01:30:41.820Z","dependency_job_id":"dfefbc87-5ff3-4f0d-9cab-910c9eb36b03","html_url":"https://github.com/emersion/slurp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fslurp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fslurp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fslurp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fslurp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emersion","download_url":"https://codeload.github.com/emersion/slurp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453652,"owners_count":22073617,"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":["cli","screenshot","wayland"],"created_at":"2024-07-31T03:01:10.127Z","updated_at":"2025-05-16T02:07:22.638Z","avatar_url":"https://github.com/emersion.png","language":"C","readme":"# slurp\n\nSelect a region in a Wayland compositor and print it to the standard output.\nWorks well with [grim].\n\nJoin the IRC channel: [#emersion on Libera Chat][IRC].\n\n## Building\n\nInstall dependencies:\n\n* meson\n* wayland\n* cairo\n* libxkbcommon\n* scdoc (optional: man pages)\n\nThen run:\n\n```sh\ngit clone https://github.com/emersion/slurp\ncd slurp\nmeson setup build\nninja -C build\nbuild/slurp\n```\n\n## Example usage\n\nSelect a region and print it to stdout:\n\n```sh\nslurp\n```\n\nSelect a single point instead of a region:\n\n```sh\nslurp -p\n```\n\nSelect an output and print its name:\n\n```sh\nslurp -o -f \"%o\"\n```\n\nSelect a window under Sway, using `swaymsg` and `jq`:\n\n```sh\nswaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | \"\\(.x),\\(.y) \\(.width)x\\(.height)\"' | slurp\n```\n\nSelect a window without border under Sway, using `swaymsg` and `jq`:\n\n```sh\nswaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | \"\\(.rect.x+.window_rect.x),\\(.rect.y+.window_rect.y) \\(.window_rect.width)x\\(.window_rect.height)\"' | slurp\n```\n## Contributing\n\nEither [send GitHub pull requests][GitHub] or [send patches on the mailing list][ML].\n\n## License\n\nMIT\n\n[grim]: https://sr.ht/~emersion/grim/\n[IRC]: https://web.libera.chat/gamja/#emersion\n[GitHub]: https://github.com/emersion/slurp\n[ML]: https://lists.sr.ht/%7Eemersion/public-inbox\n","funding_links":[],"categories":["C","Tools","Screenshots"],"sub_categories":["Screenshotting"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fslurp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femersion%2Fslurp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fslurp/lists"}