summaryrefslogtreecommitdiff
path: root/nsxiv/examples/thumb-info
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-06-20 19:54:29 +0000
committerstkhan <personal@slickd.xyz>2022-06-20 19:54:29 +0000
commit4c40a4dc245f7715f4891ed02d71475628e7a959 (patch)
treefa52419490b5a0d89d746f6e3a0b0c1e675b7726 /nsxiv/examples/thumb-info
parent513b0e238b98f72a01d740a0bd99a3739918645c (diff)
new directory structure
Diffstat (limited to 'nsxiv/examples/thumb-info')
-rwxr-xr-xnsxiv/examples/thumb-info20
1 files changed, 0 insertions, 20 deletions
diff --git a/nsxiv/examples/thumb-info b/nsxiv/examples/thumb-info
deleted file mode 100755
index b422f9c..0000000
--- a/nsxiv/examples/thumb-info
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# Example for $XDG_CONFIG_HOME/nsxiv/exec/thumb-info
-# Called by nsxiv(1) whenever the selected thumbnail changes.
-# The output is displayed in nsxiv's status bar.
-# Arguments:
-# $1: path to image file (as provided by the user)
-# $2: empty
-# $3: empty
-# $4: fully resolved path to the image file
-
-s=" " # field separator
-
-exec 2>/dev/null
-
-filename=$(basename -- "$4")
-filesize=$(du -Hh -- "$4" | cut -f 1)
-
-echo "${filesize}${s}${filename}"
-