{"id":13451438,"url":"https://github.com/r00tman/corrupter","last_synced_at":"2025-04-06T16:12:08.286Z","repository":{"id":34322353,"uuid":"177294370","full_name":"r00tman/corrupter","owner":"r00tman","description":"Simple image glitcher suitable for producing nice looking lockscreens","archived":false,"fork":false,"pushed_at":"2023-01-11T09:46:29.000Z","size":15248,"stargazers_count":359,"open_issues_count":4,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T14:10:32.980Z","etag":null,"topics":["golang","i3","i3lock","image-processing","linux","sway"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/r00tman.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}},"created_at":"2019-03-23T13:47:33.000Z","updated_at":"2025-03-01T04:52:02.000Z","dependencies_parsed_at":"2023-01-15T06:30:22.830Z","dependency_job_id":null,"html_url":"https://github.com/r00tman/corrupter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r00tman%2Fcorrupter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r00tman%2Fcorrupter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r00tman%2Fcorrupter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r00tman%2Fcorrupter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r00tman","download_url":"https://codeload.github.com/r00tman/corrupter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509224,"owners_count":20950232,"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":["golang","i3","i3lock","image-processing","linux","sway"],"created_at":"2024-07-31T07:00:53.809Z","updated_at":"2025-04-06T16:12:08.267Z","avatar_url":"https://github.com/r00tman.png","language":"Go","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# corrupter\nSimple image glitcher suitable for producing nice looking i3lock backgrounds\n\n## Getting Started\n\n```shell\n$ git clone https://github.com/r00tman/corrupter\n$ cd corrupter \u0026\u0026 go build\n$ ./corrupter -h\n$ ./corrupter shots/example.png out.png \u0026\u0026 xdg-open out.png\n```\n\nAlternatively, you can use `go get -u github.com/r00tman/corrupter` to install. Then, the binary will be at `~/go/bin/corrupter` (`$GOPATH/bin/corrupter` if `$GOPATH` is set).\n\nIf you're using an Arch-based distro, you can use one of the two AUR packages!\n - [corrupter-git](https://aur.archlinux.org/packages/corrupter-git/) maintained by [alrayyes](https://github.com/alrayyes), for an automated build, and\n - [corrupter-bin](https://aur.archlinux.org/packages/corrupter-bin/) maintained by [marcospb19](https://github.com/marcospb19), for the pre-built binary.\n - [swaylock-corrupter](https://aur.archlinux.org/packages/swaylock-corrupter) maintained by [slithery0](https://github.com/slithery0), for corrupter pre-build binary along with swaylock intregation.\n\nAt the moment, you can only pass and output `.png` images. But that's enough to work well with `scrot` and `i3lock`.\n\n### Using with i3lock+scrot / swaylock+grim\nAs `corrupter` only glitches the image for a cool background, you'd have to set up a lock script.\n\nExample screenshot lock script:\n```bash\n#!/usr/bin/env bash\ntmpbg=\"/tmp/screen.png\"\nscrot \"$tmpbg\"; corrupter \"$tmpbg\" \"$tmpbg\"\ni3lock -i \"$tmpbg\"; rm \"$tmpbg\"\n```\n\nThe script above takes a screenshot with `scrot`, distorts it with `corrupter`, and then locks the screen using `i3lock`.\n\nIf you're using `i3`, you can create the script at `~/.lock`, and then add a lock `bindsym`.\n```\nbindsym $mod+Control+l exec --no-startup-id bash ./.lock\n```\n\n### Using pre-corrupted images\nAlternatively, you can pre-corrupt an image and always use it (which is faster):\n```shell\n$ ./corrupter shots/example.png ~/.wallpaper.png\n```\n\nand then, in your `~/.config/i3/config`:\n```\nbindsym $mod+Control+l exec --no-startup-id i3lock -i ./.wallpaper.png\n```\n\nThis method is slightly faster since the image processing has been done beforehand.\n\n\n### Less distorted image\n\nDefault config is pretty heavy-handed. To get less disrupted images you may want to reduce blur and distortion:\n```shell\n$ ./corrupter -mag 1 -boffset 2 shots/example.png out.png \u0026\u0026 xdg-open out.png\n```\n\n## Examples\n\nImages using the default parameters:\n![demo1](https://raw.githubusercontent.com/r00tman/corrupter/master/shots/example-after.png)\n![demo2](https://raw.githubusercontent.com/r00tman/corrupter/master/shots/light-theme-example.png)\n![demo3](https://raw.githubusercontent.com/r00tman/corrupter/master/shots/dark-theme-example.png)\n\nWith custom parameters: \\\nBefore:\n![demo4](https://raw.githubusercontent.com/r00tman/corrupter/master/shots/ps2-example-before.png)\n\nAfter (custom parameters and ImageMagick dim):\n![demo5](https://raw.githubusercontent.com/r00tman/corrupter/master/shots/ps2-example-after.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr00tman%2Fcorrupter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr00tman%2Fcorrupter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr00tman%2Fcorrupter/lists"}