1
1
Fork 0

screenshot: enable freeze

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-11 18:26:30 -05:00
parent 23bf7c6b8d
commit 661ee80da0
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -15,9 +15,9 @@ function round() {
# TODO: Use proper flags
# TODO: Add clipboard support
if [[ "${1-}" == '-e' ]]; then
grimblast save area - | swappy --file -
grimblast --freeze save area - | swappy --file -
elif [[ "${1-}" == '-d' ]]; then
grimblast save output - > "$XDG_SCREENSHOTS_DIR/$(date +'%F %H-%M-%S').png"
grimblast --freeze save output - > "$XDG_SCREENSHOTS_DIR/$(date +'%F %H-%M-%S').png"
else
grimblast save area - > "$XDG_SCREENSHOTS_DIR/$(date +'%F %H-%M-%S').png"
grimblast --freeze save area - > "$XDG_SCREENSHOTS_DIR/$(date +'%F %H-%M-%S').png"
fi