config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit c12944480b8b10ff31ad7db50532567f00c04f45
parent d5618705fdb06e4af6c1d2ad90a4a20172a4c76f
Author: Jacob R. Edwards <n/a>
Date:   Sat,  3 Sep 2022 10:39:18 -0700

Use $image as an alias to $images in sxiv key handler

Diffstat:
Mlocal/sxiv/config/sxiv/exec/key-handler | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/local/sxiv/config/sxiv/exec/key-handler b/local/sxiv/config/sxiv/exec/key-handler @@ -5,6 +5,7 @@ # key-handler -- sxiv(1) key handling script images=__LINES__ +image=$images args() { tr '\n' '\0' | xargs -0J "$images" "$@"; } ask() test "$(printf 'n\ny\n' | dmenu -p "$1?")" = 'y' @@ -12,7 +13,7 @@ die() { echo "$@" 1>&2; exit 1; } read() dmenu -p "$1" < /dev/null case "$1" in -(C-c) eval args "$(read command)";; # use $images to access images +(C-c) eval args "$(read command)";; # use $image or $images to access images (C-m) args mv lines "$(read dir)";; (C-w) setbg "$(tail -1)";; (C-x) ask remove && args rm $images;;