summaryrefslogtreecommitdiff
path: root/home/xyz/.config/nsxiv
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-03-07 18:20:56 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-03-07 18:20:56 -0800
commitf8e57ea1ece40684022a0f68d6f5a8ff83ae4568 (patch)
treec048af220e92a4f8a590613d6eded957131b3efd /home/xyz/.config/nsxiv
parent5683535547aa1db7f285342ad3e8b9a7a8993b2e (diff)
nsxiv no wallpaper related shortcuts
Diffstat (limited to 'home/xyz/.config/nsxiv')
-rwxr-xr-xhome/xyz/.config/nsxiv/exec/key-handler14
1 files changed, 0 insertions, 14 deletions
diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler
index 6e998654..795acca1 100755
--- a/home/xyz/.config/nsxiv/exec/key-handler
+++ b/home/xyz/.config/nsxiv/exec/key-handler
@@ -46,18 +46,6 @@ flip() {
done
}
-linkwall() {
- tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do
- walldir="$XDG_PICTURES_DIR/wallpapers/"
- name=$(basename "$file")
- if [ ! -e "$walldir$name" ]; then
- convwall "$file" "$walldir$name" || ln -s "$file" "$walldir"
- else
- notify-send 'error' "$name exist"
- fi
- done
-}
-
# I choose not to put case nested in while read file loop
# because it can pipe multiple files to one command?
case "$1" in
@@ -66,9 +54,7 @@ case "$1" in
"f") flip vertical ;;
"F") flip horizontal ;;
"g") tr '\n' '\0' | xargs -0 setsid -f gimp ;;
- "l") linkwall ;;
"p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time.uuid).pdf' shell ;;
- "w") tr '\n' '\0' | xargs -0 shufwall ;;
# alternative using `xclip -in -selection clipboard`
"y") tr '\n' '\0' | xargs -0 realpath | tr '\n' '\0' | xargs -0 printf '%q ' | xsel -ib ;;
"comma") rotate 270 ;;