summaryrefslogtreecommitdiff
path: root/.config/sxiv/exec/key-handler
diff options
context:
space:
mode:
Diffstat (limited to '.config/sxiv/exec/key-handler')
-rwxr-xr-x.config/sxiv/exec/key-handler8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index 00f6fa23..bfad867f 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -38,12 +38,12 @@ flip() {
linkwall() {
tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do
- walldir="${HOME}/pictures/wallpapers/"
+ walldir="$HOME/pictures/wallpapers/"
name=$(basename "$file")
- if [ ! -e "${walldir}${name}" ]; then
- convwall "$file" "${walldir}${name}" || ln -s "$file" "${walldir}"
+ if [ ! -e "$walldir$name" ]; then
+ convwall "$file" "$walldir$name" || ln -s "$file" "$walldir"
else
- notify-send 'error' "${name} exist"
+ notify-send 'error' "$name exist"
fi
done
}