{"id":18560780,"url":"https://github.com/eepp/ss","last_synced_at":"2025-04-10T02:31:09.392Z","repository":{"id":11346616,"uuid":"13776172","full_name":"eepp/ss","owner":"eepp","description":"easy screenshot sharing for X","archived":false,"fork":false,"pushed_at":"2014-08-04T21:44:27.000Z","size":205,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T15:41:56.640Z","etag":null,"topics":["clipboard","imgur","screenshot","xorg"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eepp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-22T14:40:45.000Z","updated_at":"2024-10-30T17:53:23.000Z","dependencies_parsed_at":"2022-09-01T23:20:29.970Z","dependency_job_id":null,"html_url":"https://github.com/eepp/ss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eepp%2Fss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eepp%2Fss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eepp%2Fss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eepp%2Fss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eepp","download_url":"https://codeload.github.com/eepp/ss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144186,"owners_count":21054881,"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":["clipboard","imgur","screenshot","xorg"],"created_at":"2024-11-06T22:04:34.296Z","updated_at":"2025-04-10T02:31:09.119Z","avatar_url":"https://github.com/eepp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"ss - easy screenshot sharing for X\n==================================\n\nThis simple script does the following when executed:\n\n  1. executes `scrot` to draw a rectangle on the screen and save a PNG image\n  2. uploads this image to a custom server or to imgur.com\n  3. copies the image URL on the server to the clipboard\n  4. notifies the user that everything is done\n\nIf a keyboard shortcut is used to call this script, I call this easy\nscreenshot sharing for X.\n\n\ndependencies\n------------\n\nYou need all the following:\n\n  * [eepp's version of `scrot`](https://github.com/eepp/scrot)\n     if you want to support the `-r` option, which\n     makes it possible to resize/move the drawn rectangle; otherwise,\n     the upstream version is fine, just remove the `-r` option in the\n     script\n  * `curl` package\n  * `libnotify` package (for `notify-send`)\n  * `xsel` package (for copying to clipboard)\n\n\nusing ss with a custom server\n------------------------------------------\n\n`ss` sources `~/.ssrc`. This file must define two variables:\n\n  * `url`: the endpoint `curl` will access\n  * `password`: your password for uploading images\n\nHere's an example:\n\n```\nurl=\"http://example.com/ss/up\"\npassword=\"peanut-butter\"\n```\n\nThe endpoint must accept a POST request with the following variables:\n\n  * `img`: PNG image data\n  * `passwd`: plain text password\n\nThe response body must be the full URL of the stored image.\n\n\nusing ss with imgur\n-------------------\n\n`ss` sources `~/.ssrc`. This file must define the API key variable:\n\n  * `imgur_api_key`: a valid imgur API key\n\nHere's an example:\n\n```\nimgur_api_key=b3625162d3418ac51a9ee805b1840452\n```\n\nWhen calling `ss`, use the `--imgur` option.\n\n\nwindow manager integration\n--------------------------\n\n### Fluxbox\n\nAdd this to your `~/.fluxbox/keys`:\n\n```\n180 :exec /path/to/ss\n```\n\nReplace `180` by the keycode or key combination of your choice.\n\n### i3\n\nAdd this to your `~/.i3/config`:\n\n```\nbindsym $mod+c exec sleep 0.2 \u0026\u0026 bash /path/to/ss\n```\n\nReplace `$mod+c` by the key combination of your choice.\n\n(It seems that sleeping is necessary here in order to use `scrot` with\nrectangle selection from an i3 key binding. Any fix is welcome.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feepp%2Fss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feepp%2Fss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feepp%2Fss/lists"}