dotfiles-x11/.config/sxiv/exec/key-handler

12 lines
293 B
Bash
Executable File

#!/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;;
"c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";;
esac
done