From f8e57ea1ece40684022a0f68d6f5a8ff83ae4568 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 7 Mar 2023 18:20:56 -0800 Subject: nsxiv no wallpaper related shortcuts --- home/xyz/.config/nsxiv/exec/key-handler | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'home/xyz/.config/nsxiv') 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 ;; -- cgit v1.2.3-70-g09d2