summaryrefslogtreecommitdiff
path: root/home/xyz/.config/nsxiv
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-03-18 23:39:19 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-03-18 23:39:19 -0700
commit3488406f8ec2fcbd741ad1b065e60de04236461a (patch)
treef4f32297ed59aa5f5b38e25a6b304c597ddd2f79 /home/xyz/.config/nsxiv
parentc9fd3653973b4a1531915786e8cdfe404b0ddfe2 (diff)
more notes
Diffstat (limited to 'home/xyz/.config/nsxiv')
-rwxr-xr-xhome/xyz/.config/nsxiv/exec/key-handler1
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 ;;