aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorqsmodo <75080827+qsmodo@users.noreply.github.com>2021-09-12 20:26:07 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 21:55:31 +0200
commit156a53780c7b27aeb7b4de7de56450f26c55a192 (patch)
tree6d8820c2b8d862e7b878cb9cf9bf31d32e26eb56 /config.def.h
parent91d9b3128eb5502306f688e68c42e83b3020cb56 (diff)
downloadnsxiv-156a53780c7b27aeb7b4de7de56450f26c55a192.tar.zst
set title based on prefix and suffix (#23)
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index dd8d44d..449f43b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,6 +12,21 @@ enum {
*/
#endif
+
+#ifdef _TITLE_CONFIG
+
+/* default title prefix */
+static const char *TITLE_PREFIX = "sxiv - ";
+
+/* default title suffixmode, available options are:
+ * SUFFIX_EMPTY
+ * SUFFIX_BASENAME
+ * SUFFIX_FULLPATH
+ */
+static const suffixmode_t TITLE_SUFFIXMODE = SUFFIX_BASENAME;
+
+#endif
+
#ifdef _IMAGE_CONFIG
/* levels (in percent) to use when zooming via '-' and '+':