updates to swappy in screenshots

This commit is contained in:
Your Name
2026-08-14 12:33:25 +00:00
parent 512e3285dd
commit da16f88ec3
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -21,9 +21,11 @@ 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)
# Open the editor if swappy is available (blocks until it is closed).
# swappy never overwrites the opened file on Ctrl+s (it saves a new
# timestamped copy to save_dir), so -o writes the final surface back here.
if command -v swappy >/dev/null 2>&1; then
swappy -f "$dir/$file"
swappy -f "$dir/$file" -o "$dir/$file"
wl-copy -t image/png < "$dir/$file"
fi