1
1
Fork 0

screenshot: disable rounding and freezing

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-09 17:26:24 -05:00
parent 672b4de105
commit 9a4377d6a8
Signed by: myned
GPG key ID: C7224454F7881A34

View file

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