3 ms·
I don't wanna poop on their parade, but haven't Wayland screenshotters been around for a while? https://github.com/emersion/grim https://github.com/emersion/gri
by gspr 6y ago
I don't wanna poop on their parade, but haven't Wayland screenshotters been around for a while? https://github.com/emersion/grim 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.
- jhvkjhk 6y agoReading grim’s README, it looks like a terminal tool, while flameshot is a GUI tool. You mean flameshot should just wrap grim on wayland?
- Arnavion 6y agogrim 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 https://github.com/jtheoof/swappy
- ficklepickle 6y agoYou can also use "display" from imagemagick with a pipe. Lots of people probably have that installed already.
- jhvkjhk 6y agoIt’s amazing to know pipe, stdin and stdout work for image, thanks!
- solarkraft 6y agogrim (awesome together with slurp and wl-clipboard) only works on wlroots. Flameshot aims to be cross-desktop compatible and is a GUI tool.
- thraxil 6y agoSame. 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.