A Wayland native snapshot editing tool, inspired by Snappy on macOS
Go to file
2019-12-27 19:56:05 -05:00
.vscode vscode: use clang 2019-12-16 01:21:37 -05:00
include fix(meson): able to build on standard platforms 2019-12-27 19:55:34 -05:00
protocol screencopy is done 2019-11-24 23:31:03 -05:00
res feat(ui): add keybindings for color change 2019-12-27 16:21:13 -05:00
src fix(meson): able to build on standard platforms 2019-12-27 19:55:34 -05:00
.clang-format works, next is screencopy 2019-11-24 23:07:44 -05:00
.gitignore git: ignore glade backup file 2019-12-17 22:26:35 -05:00
LICENSE Initial commit 2019-11-19 00:21:06 -05:00
meson_options.txt feat: init project 2019-11-19 00:23:34 -05:00
meson.build fix(meson): able to build on standard platforms 2019-12-27 19:55:34 -05:00
README.md docs(swappy): add man and readme 2019-12-27 19:56:05 -05:00
swappy.1.scd docs(swappy): add man and readme 2019-12-27 19:56:05 -05:00

swappy

A Wayland native snapshot tool, inspired by Snappy on macOS. Works great with slurp and sway.

Code was largely inspired by grim.

Example usage

Swappshot a region:

swappy -g "100,100 200x200"

Select a region and swappshot it:

swappy -g "$(slurp)"

Grab a swappshot from a specific window under Sway, using swaymsg and jq:

swappy -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)"

Package manager installation

Arch Linux User Repository

Assuming yay as your AUR package manager.

  • stable version: yay -S swappy
  • git version: yay -S swappy-git

Building from source

Install dependencies:

  • meson
  • wayland
  • cairo
  • gtk

Optional dependencies:

  • libnotify

Then run:

meson build
ninja -C build

To run directly, use build/swappy, or if you would like to do a system installation (in /usr/local by default), run ninja -C build install.

Contributing

Pull requests are welcome.

License

MIT