Browse Source

Merge pull request #153 from KKV9/development

Fix: Area screenshot saving empty files
pull/159/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
af8626d4ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      config/hypr/scripts/ScreenShot.sh

8
config/hypr/scripts/ScreenShot.sh

@ -75,7 +75,13 @@ shotwin() {
}
shotarea() {
cd ${dir} && grim -g "$(slurp)" - | tee "$file" | wl-copy
tmpfile=$(mktemp)
grim -g "$(slurp)" - >"$tmpfile"
if [[ -s "$tmpfile" ]]; then
wl-copy <"$tmpfile"
mv "$tmpfile" "$dir/$file"
fi
rm "$tmpfile"
notify_view
}

Loading…
Cancel
Save