commit ee79addce8c0db8f3e24b5ea32318c5f2f7c9d6c
parent 0d332f9bf9274b144e797efa0e0e45530851cb7b
Author: awy <awy@awy.one>
Date: Tue, 6 Jan 2026 21:08:09 +0300
w
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.config/swayimg/key-handler b/.config/swayimg/key-handler
@@ -14,7 +14,7 @@ case "$action" in
awk '{ $1=""; sub(/^ +/, ""); print }'
)"
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
- cp "$file" "$destdir" && notify-send "$file copied to $destdir." &
+ cp "$file" "$destdir" && notify-send -i "$file" "$file copied to $destdir." &
;;
"m")
[ -z "$destdir" ] && destdir="$(
@@ -25,7 +25,7 @@ case "$action" in
awk '{ $1=""; sub(/^ +/, ""); print }'
)"
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
- mv "$file" "$destdir" && notify-send "$file moved to $destdir." &
+ mv "$file" "$destdir" && notify-send -i "$file" "$file moved to $destdir." &
;;
"r")
magick "$file" -rotate 90 "$file"
@@ -49,5 +49,5 @@ case "$action" in
;;
"g") ifinstalled gimp && setsid -f gimp "$file" ;;
"i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | rg "<b>")" ;;
-*) notify-send "No keybind for that key" ;;
+*) ;;
esac