Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
e179d72
Branches
master
Refs →
aurora
/
.config
/
nsxiv
/
exec
/
key-handler
11 lines · 293 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
3
while
read
file
4
do
5
case
"$1"
in
6
"d"
)
7
[
"$(
printf
"No\\nYes" | dmenu -i -p "Really delete $file?")"
=
"Yes"
]
&&
rm
"$file"
&&
notify-send
"$file deleted."
;;
8
"w"
)
setwall
-
p
$
file
;;
9
"c"
)
cat
"$file"
|
xclip
-
sel c
-
t image/png
&&
notify-send
"$file Copied ";;
10
esac
11
done