Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't wanna poop on their parade, but haven't Wayland screenshotters been around for a while? https://github.com/emersion/grim

That one has at least been around for long enough, and has worked perfectly under Sway for long enough, that I had to look up its name because I had it bound to a hotkey and had forgotten what it was called.



grim (awesome together with slurp and wl-clipboard) only works on wlroots. Flameshot aims to be cross-desktop compatible and is a GUI tool.


Same. I have a tiny script with:

    #!/bin/bash
    FILENAME="screenshot-`date +%F-%H%M%S`"
    grim -g "$(slurp)" ~/screenshots/$FILENAME.png

Hit one key, select the region to screenshot and I have a file in that directory with a very predictable filename.


Reading grim’s README, it looks like a terminal tool, while flameshot is a GUI tool. You mean flameshot should just wrap grim on wayland?


grim can write the image to stdout. GUI like [1] can read images from stdin. You can make a script that pipes one to the other and bind that in your compositor.

[1]: https://github.com/jtheoof/swappy


You can also use "display" from imagemagick with a pipe. Lots of people probably have that installed already.


It’s amazing to know pipe, stdin and stdout work for image, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: