config

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

commit 47ca9689c1c669eb9d87ef82efe4c1e070fcd624
parent 051387342a57c7da6759e6951af51e9b84a92f68
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri,  3 Mar 2023 11:34:44 -0800

Use notify instead of herbe in sxiv key handler

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

diff --git a/local/sxiv/sys/config/sxiv/exec/key-handler b/local/sxiv/sys/config/sxiv/exec/key-handler @@ -14,7 +14,7 @@ ask() { } read() xinput "sxiv $1" info() exiftool -f -d '%F' "$@" -print() herbe "${*:-$(cat)}" +print() notify Sxiv "${*:-$(cat)}" last() { echo $images | tail -1; } infofmt='${filename} @@ -38,6 +38,7 @@ case "$1" in (C-w) setbg $(last) & ;; (C-s) sxiv -t $images & ;; (C-r) darktable $images & ;; +(C-p) for cover in $images; do find ${cover%/cover.jpg} -type f; done | root | apc truncate ^ ;; (*) die "Key '$1' not defined. Try one of the following:" \ ' C-c Run command' \