summaryrefslogtreecommitdiff
path: root/config/sxiv/exec
diff options
context:
space:
mode:
Diffstat (limited to 'config/sxiv/exec')
-rwxr-xr-xconfig/sxiv/exec/key-handler6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/sxiv/exec/key-handler b/config/sxiv/exec/key-handler
index 6e1fa71..b92c9db 100755
--- a/config/sxiv/exec/key-handler
+++ b/config/sxiv/exec/key-handler
@@ -42,8 +42,10 @@ while read -r file; do
nsend -s "Failed to copy ${file} to ${destdir}" &
fi
;;
- "w") swall -d "$file" ;;
-
+ "w")
+ swall -d "$file" && nsend -s "Wallpaper Set" \
+ || nsend -s "Couldn't set wallpaper"
+ ;;
"d")
mkdir -p ~/.trash