aboutsummaryrefslogtreecommitdiffstats
path: root/examples/win-title
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-06-01 10:59:16 +0200
committerN-R-K <nrk@disroot.org>2022-06-02 10:09:51 +0200
commit810a9651a362992383081619ca63122f41f1cd0a (patch)
treebea298b12676f642a4801a5d6385a781f918a639 /examples/win-title
parent364c3d6f019a26e68f2bfb9594d6bc599a947be2 (diff)
downloadnsxiv-810a9651a362992383081619ca63122f41f1cd0a.tar.zst
reduce calls to win-title
rather than calling the script unconditionally per redraw, we now have a `title_dirty` flag and keep track of when any of the relavent information changes. Co-authored-by: Arthur Williams <taaparthur@gmail.com> Partially fixes: https://github.com/nsxiv/nsxiv/issues/258
Diffstat (limited to 'examples/win-title')
-rwxr-xr-xexamples/win-title2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/win-title b/examples/win-title
index ac7b982..31994ef 100755
--- a/examples/win-title
+++ b/examples/win-title
@@ -1,7 +1,7 @@
#!/bin/sh
# Example for $XDG_CONFIG_HOME/nsxiv/exec/win-title
-# Called by nsxiv(1) on each redraw.
+# Called by nsxiv(1) whenever any of the relevant information changes.
# The output is set as nsxiv's window title.
#
# Arguments, "Optional" arguments might be empty: