aboutsummaryrefslogtreecommitdiff
path: root/.config/nsxiv/exec/key-handler
blob: 491b894aed41d77da045ec2d50d455e41a3b4a37 (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") setwall -p $file;;
  "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";;
  esac
done