diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-07 18:20:56 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-07 18:20:56 -0800 |
commit | f8e57ea1ece40684022a0f68d6f5a8ff83ae4568 (patch) | |
tree | c048af220e92a4f8a590613d6eded957131b3efd /home/xyz/.config/nsxiv | |
parent | 5683535547aa1db7f285342ad3e8b9a7a8993b2e (diff) |
nsxiv no wallpaper related shortcuts
Diffstat (limited to 'home/xyz/.config/nsxiv')
-rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 14 |
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 ;; |