{"id":17956338,"url":"https://github.com/b0o/snag","last_synced_at":"2025-06-15T01:39:13.404Z","repository":{"id":88329403,"uuid":"339528397","full_name":"b0o/snag","owner":"b0o","description":"📸 snag screenshots and screencasts in Sway","archived":false,"fork":false,"pushed_at":"2025-01-30T22:25:32.000Z","size":2309,"stargazers_count":31,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T01:03:03.572Z","etag":null,"topics":["rofi","screencast","screencasts","screenshot","snag","snag-screenshots","sway","swaywm","wayland"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/b0o.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":"2021-02-16T20:53:52.000Z","updated_at":"2025-01-30T22:25:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"1037f9c0-6776-4c57-ab8a-46e2c02253a2","html_url":"https://github.com/b0o/snag","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/b0o/snag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fsnag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fsnag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fsnag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fsnag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b0o","download_url":"https://codeload.github.com/b0o/snag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fsnag/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259910015,"owners_count":22930669,"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":["rofi","screencast","screencasts","screenshot","snag","snag-screenshots","sway","swaywm","wayland"],"created_at":"2024-10-29T10:37:24.021Z","updated_at":"2025-06-15T01:39:13.377Z","avatar_url":"https://github.com/b0o.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snag [![version](https://img.shields.io/github/v/tag/b0o/snag?style=flat\u0026color=yellow\u0026label=version\u0026sort=semver)](https://github.com/b0o/snag/releases) [![license: MIT](https://img.shields.io/github/license/b0o/snag?style=flat\u0026color=green)](https://opensource.org/licenses/MIT)\n\n\u003e snag screenshots and screencasts in sway\n\n## Demo\n\n![demonstration screencast](./assets/demo-01.gif)\n\n## Install\n\nTODO\n\n## Usage\n\n\u003c!-- USAGE --\u003e\n```\nsnag v0.1.2 (github.com/b0o/snag)\n\nUsage: snag [opts] [-- [pass-thru opts ..]]\n\nOptions:\n  General:\n  -h           --help   Print this help message.\n  -v        --version   Print program version.\n\n  -x      --copy-path   After snagging a screenshot, copy the output file path\n                        to the clipboard using wl-copy.\n\n  -N         --notify   Send a notification with the snag result on exit.\n\n  -U \u003cservice\u003e --upload Upload the output file.\n                        \u003cservice\u003e may be one of: drop, imgur (image only)\n\n  -R           --rofi   Use rofi as an interactive snag UI.\n\n  -D \u003cms\u003e      --delay  Delay capture for \u003cms\u003e milliseconds.\n\n  Capture Mode:\n  -I [format] --image   Capture a still image using grim.\n                        This is the default mode.\n                        [format] may be one of: png (default), jpeg, ppm.\n\n  -V [format] --video   Capture a video using wf-recorder.\n                        [format] may be one of: mp4 (default), gif, webm.\n\n  Capture Quality:\n\n  --grim-quality        Set the grim JPEG filetype quality 0-100. Defaults to 80.\n\n  --grim-level          Set the grim PNG filetype compression level 0-9. Defaults to 6.\n\n  Capture Region:\n  If none of the following options are specified, the focused output will be\n  captured by default.\n\n  -r [region] --region  Capture a rectangular region.\n                        [region] is of the form \"\u003cx\u003e,\u003cy\u003e \u003cwidth\u003ex\u003cheight\u003e\"\n                        If [region] is not specified, the user will be able to\n                        select it graphically with the mouse via the slurp\n                        utility.\n\n  -c [id]   --container Capture a container.\n                        [id] is a sway container ID.\n                        If [id] is not specified, the user will be able to\n                        select the target container graphically with the mouse.\n                        If [id] is a the string 'foc' or 'focused', the\n                        focused container will be used.\n\n  -w [name] --workspace Capture a workspace.\n                        [name] is a sway workspace name.\n                        If [name] is not specified, the user will be able to\n                        select the target workspace graphically with the mouse.\n                        If [name] is a the string 'foc' or 'focused', the\n                        focused workspace will be used.\n\n  -o [output] --output  Capture an output.\n                        [output] is a wayland output name.\n                        If [output] is not specified, the user will be able to\n                        select the target output graphically with the mouse.\n                        If [output] is a the string 'foc' or 'focused', the\n                        focused output will be used.\n\n  -a            --all   Capture all outputs.\n\n  Output File:\n\n  -d \u003cdir\u003e --dir        Save the screenshot in \u003cdir\u003e.\n                        Default: current working directory.\n\n  -n \u003cname\u003e    --name   Use \u003cname\u003e as the literal output file name.\n                        The default file name will be generated by the -f\n                        format of \"%Y-%m-%d_%H-%M-%S_{desc}.{ext}\"\n\n  -f \u003cformat\u003e --namef   Use \u003cformat\u003e to construct the output filename.\n\n                        Sequences recognised by date(1) or the following will\n                        be interpolated:\n\n                        {ext}     the file extension as set in the -I / -V opts\n                                  (without a leading .).\n\n                        {desc}    a description of what was selected:\n                                    - if a region was selected: \"region\"\n                                    - if a container was selected:\n                                      - wayland apps: container's app_id\n                                      - xwayland apps: container's class\n                                    - if an output was selected: its name\n                                    - if all outputs were selected: \"all\"\n\n                        {region}  the captured region's coordinates, of the\n                                  form \"\u003cx\u003e,\u003cy\u003e_\u003cwidth\u003ex\u003cheight\u003e\".\n\nTo pass on arguments to the capture command (grim or wf-recorder), a -- can be\npassed after the final snag argument and any remaining arguments will be passed\nthrough to the capture command.\n\n(c) 2020-2022 Maddison Hellstrom \u003cgithub.com/b0o\u003e\n\nLicense: MIT (https://mit-license.org/)\n```\n\u003c!-- /USAGE --\u003e\n\n## License\n\n\u003c!-- LICENSE --\u003e\n\u0026copy; 2020-2022 Maddison Hellstrom\n\nReleased under the MIT License.\n\u003c!-- /LICENSE --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fsnag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0o%2Fsnag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fsnag/lists"}