updated screenshot tools to add editor

This commit is contained in:
Your Name
2026-08-14 12:30:10 +00:00
parent 6a2a3ce6dd
commit 512e3285dd
4 changed files with 38 additions and 1 deletions
+11
View File
@@ -19,3 +19,14 @@ wl-copy -t image/png < "$dir/$file"
if command -v notify-send >/dev/null 2>&1; then
notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file"
fi
# Open the editor if swappy is available (blocks until it is closed)
if command -v swappy >/dev/null 2>&1; then
swappy -f "$dir/$file"
wl-copy -t image/png < "$dir/$file"
fi
# Compress the resulting image in the background if oxipng is available
if command -v oxipng >/dev/null 2>&1; then
oxipng --strip safe -o 4 "$dir/$file" &
fi