blob: 6e17c5af6929585f3e968919d11e3c00b7f2d642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
while read file; do
case "$1" in
"C-a")
setbg "$file"
exit ;;
"C-s")
setbglblur "$file"
exit ;;
"C-d")
setbglsimple "$file"
exit ;;
"C-c")
wl-copy < "$file"
exit ;;
"C-f")
wl-copy "$file"
exit ;;
"C-r")
# Move file to 'trash' directory, if the current directory's name is
# JPEG, remove the NEF file as well
dir="$(dirname "$file")"
name="$(basename "$file")"
base="${name%.*}"
mv "$file" ~/etc/temp/trash/
if [ "JPEG" = "$(basename $dir)" ]; then
mv $(dirname "$dir")/"$base".NEF ~/etc/temp/trash/
fi
exit ;;
esac
done
|