From cea144bc517f8d390cd074720d1c0a1b35ba5b5a Mon Sep 17 00:00:00 2001 From: Jon Kinney Date: Mon, 11 May 2026 03:00:20 -0500 Subject: [PATCH] Trash imv deletes; add Ctrl+E to edit in Satty (#5721) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Trash imv deletes; add Ctrl+E to edit in Satty Ctrl+X / Ctrl+Shift+X now move the image to the freedesktop trash via `gio trash` instead of unconditional `rm`, so accidental presses are recoverable from the file manager's Trash. Adds Ctrl+E to open the current image in Satty (already in omarchy-base.packages) and quit imv, mirroring the typical screenshot → annotate workflow. * Add -- separator to gio trash invocations Prevents filenames starting with - from being parsed as options. --- config/imv/config | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/imv/config b/config/imv/config index 46493240..e515d966 100644 --- a/config/imv/config +++ b/config/imv/config @@ -3,11 +3,14 @@ # Print the current image file = exec lp "$imv_current_file" -# Delete the current image and quit the viewer - = exec rm "$imv_current_file"; quit +# Trash the current image and quit the viewer (recoverable from Trash) + = exec gio trash -- "$imv_current_file"; quit -# Delete the current image and move to the next one - = exec rm "$imv_current_file"; close +# Trash the current image and move to the next one + = exec gio trash -- "$imv_current_file"; close # Rotate the currently open image by 90 degrees = exec mogrify -rotate 90 "$imv_current_file" + +# Edit the current image in Satty and quit the viewer + = exec satty --filename "$imv_current_file" & ; quit