From 591be8cecfaef143824e76c73f7c586261297c9c Mon Sep 17 00:00:00 2001 From: N-R-K Date: Tue, 3 May 2022 15:34:23 +0000 Subject: Add thumb-info (#265) Closes: https://github.com/nsxiv/nsxiv/issues/88 Closes: https://github.com/nsxiv/nsxiv/pull/253 --- nsxiv.1 | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'nsxiv.1') diff --git a/nsxiv.1 b/nsxiv.1 index 729d0ec..4488146 100644 --- a/nsxiv.1 +++ b/nsxiv.1 @@ -450,19 +450,36 @@ There is also an example script installed together with nsxiv as .IR EGPREFIX/win-title . .SH STATUS BAR The information displayed on the left side of the status bar can be replaced -with the output of a user-provided script, which is called by nsxiv whenever an -image gets loaded. The path of this script is +with the output of user-provided script. +.P +The script that is called by nsxiv whenever an image gets loaded is located at .I $XDG_CONFIG_HOME/nsxiv/exec/image-info and the arguments given to it are: .IP $1 4 -path to image file +path to image file (as provided by the user) .IP $2 4 image width .IP $3 4 image height +.IP $4 4 +fully resolved path to the image file .P -There is also an example script installed together with nsxiv as -.IR EGPREFIX/image-info . +In thumbnail mode, the script that is called is located at +.I $XDG_CONFIG_HOME/nsxiv/exec/thumb-info +and the arguments given to it are: +.IP $1 4 +path to image file (as provided by the user) +.IP $2 4 +empty +.IP $3 4 +empty +.IP $4 4 +fully resolved path to the image file +.P +There are also example scripts installed together with nsxiv as +.IR EGPREFIX/image-info +and +.IR EGPREFIX/thumb-info . .SH EXTERNAL KEY HANDLER Additional external keyboard commands can be defined using a handler program located in -- cgit v1.2.3