百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

corrupter

> 编程语言
开源

简单的图像闪烁器,适合生成漂亮的锁屏

368 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

简单的图像闪烁器,适合生成漂亮的锁屏

corrupter

Simple image glitcher suitable for producing nice looking i3lock backgrounds

Getting Started

bash
$ git clone https://github.com/r00tman/corrupter
$ cd corrupter && go build
$ ./corrupter -h
$ ./corrupter shots/example.png out.png && xdg-open out.png

Alternatively, 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).

If you're using an Arch-based distro, you can use one of the two AUR packages!

  • corrupter-git maintained by alrayyes, for an automated build, and
  • corrupter-bin maintained by marcospb19, for the pre-built binary.
  • swaylock-corrupter maintained by slithery0, for corrupter pre-build binary along with swaylock intregation.

At the moment, you can only pass and output .png images. But that's enough to work well with scrot and i3lock.

Using with i3lock+scrot / swaylock+grim

As corrupter only glitches the image for a cool background, you'd have to set up a lock script.

Example screenshot lock script:

bash
#!/usr/bin/env bash
tmpbg="/tmp/screen.png"
scrot "$tmpbg"; corrupter "$tmpbg" "$tmpbg"
i3lock -i "$tmpbg"; rm "$tmpbg"

The script above takes a screenshot with scrot, distorts it with corrupter, and then locks the screen using i3lock.

If you're using i3, you can create the script at ~/.lock, and then add a lock bindsym.

bindsym $mod+Control+l exec --no-startup-id bash ./.lock

Using pre-corrupted images

Alternatively, you can pre-corrupt an image and always use it (which is faster):

bash
$ ./corrupter shots/example.png ~/.wallpaper.png

and then, in your ~/.config/i3/config:

bindsym $mod+Control+l exec --no-startup-id i3lock -i ./.wallpaper.png

This method is slightly faster since the image processing has been done beforehand.

Less distorted image

Default config is pretty heavy-handed. To get less disrupted images you may want to reduce blur and distortion:

bash
$ ./corrupter -mag 1 -boffset 2 shots/example.png out.png && xdg-open out.png

Examples

Images using the default parameters:

With custom parameters:
Before:

After (custom parameters and ImageMagick dim):

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gogolangi3i3lockimage-processing

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言