diff options
Diffstat (limited to 'home/xyz/.config/nsxiv/exec/key-handler')
-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 ;; |