updates to swappy in screenshots
This commit is contained in:
@@ -20,9 +20,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user