-
Notifications
You must be signed in to change notification settings - Fork 70
Description
I was looking for a way to "freeze" the screen before selecting a region via slurp and taking a screenshot via grim (similar to what's wanted in #170, #104 and #100, for example). It's understandable that it's out-of-scope for slurp.
I saw that some people use hyprpicker to achieve that, but it requires keeping track of a pid to kill afterwards and things like that, which can be tricky and breaks far too easily. So I wrote a little tool that does just the "freezing" part and integrates nicely with slurp and grim. It works like this:
still -c 'slurp | grim -g- -' # -p can be added to also overlay a cursor on topIt will take a screenshot of every output (in reality I only have one monitor, so I wasn't able to test it with multiple) and overlay it on top via a layer-shell protocol. It exits when slurp | grim -g- - exits. It's just what I needed. Maybe other people will find it useful.
Just to be clear, at the moment it's age is less than 24 hours, it's only present in AUR and requires a pretty recent version of . Also I don't really write C very much and just finished reading the wayland book to understand how it all fits together.meson and C23
Given all that would it make sense to recommend this tool in slurp's README?