commit 2dfc500d8ec5adfeb9b7aa65fd59a3b0aa90f619
parent 08df2fa806fbcb3fc542cfa4e37ef9403c2e3433
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 7 Dec 2019 08:29:16 +0100
Add "open"-with shortcut
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
@@ -28,6 +28,9 @@ while read -r file; do
cp "$file" "$destdir"
notify-send -i "$fullpath" "$file moved to $destdir." &
;;
+ "o")
+ opener=$(echo | dmenu -p "Open with:")
+ nohup $opener "$file" >/dev/null 2>/dev/null &;;
"r")
convert -rotate 90 "$file" "$file"
;;