summaryrefslogtreecommitdiff
path: root/.config/sxiv/exec/key-handler
blob: 303ea63c4a0cd42735723d1a3b4a79beb2d8d75e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

while read file
do
  case "$1" in
  "d")
	[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
  "w")
    genwall $file
  esac 
done