diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-03-18 23:39:19 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-03-18 23:39:19 -0700 |
commit | 3488406f8ec2fcbd741ad1b065e60de04236461a (patch) | |
tree | f4f32297ed59aa5f5b38e25a6b304c597ddd2f79 /home/xyz/.config/nsxiv | |
parent | c9fd3653973b4a1531915786e8cdfe404b0ddfe2 (diff) |
more notes
Diffstat (limited to 'home/xyz/.config/nsxiv')
-rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler index ecab7e65..f5b41a6e 100755 --- a/home/xyz/.config/nsxiv/exec/key-handler +++ b/home/xyz/.config/nsxiv/exec/key-handler @@ -57,6 +57,7 @@ case "$1" in "k") tr '\n' '\0' | xargs -0 setsid -f krita ;; # `-resize "1920x1080>"` shrink large image but don't resize small iamge to larger # https://stackoverflow.com/q/6384729 + # https://legacy.imagemagick.org/script/command-line-processing.php#geometry "p") tr '\n' '\0' | xargs -0 sh -c 'convert -resize "1920x1080>" -auto-orient "$@" -compress jpeg "$(time-uuid).pdf"' shell ;; # alternative using `xclip -in -selection clipboard` "y") tr '\n' '\0' | xargs -0 realpath | tr '\n' '\0' | xargs -0 printf '%q ' | xsel -ib ;; |