From 156a53780c7b27aeb7b4de7de56450f26c55a192 Mon Sep 17 00:00:00 2001 From: qsmodo <75080827+qsmodo@users.noreply.github.com> Date: Sun, 12 Sep 2021 15:26:07 -0300 Subject: set title based on prefix and suffix (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK Co-authored-by: Berke Kocaoğlu --- config.def.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'config.def.h') 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 '+': -- cgit v1.2.3