summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorreiseb <48870100+reiseb@users.noreply.github.com>2020-01-12 15:48:57 +0100
committerreiseb <48870100+reiseb@users.noreply.github.com>2020-06-16 19:41:43 +0200
commit918edfaa6254fcd7d328ced434f361b19a636576 (patch)
treef445c5a234420eb704c55bbad0ae797ead464786 /src/slideshow.c
parenta624883d92ea54886b739f1000e39ccf1afc5577 (diff)
add option 'a' to show play/paused information in slideshow mode
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 00425d1..2cc8c4f 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -397,6 +397,14 @@ char *feh_printf(char *str, feh_file * file, winwidget winwid)
if ((*c == '%') && (*(c+1) != '\0')) {
c++;
switch (*c) {
+ case 'a':
+ if (opt.paused == 1) {
+ strncat(ret, "pause", sizeof(ret) - strlen(ret) - 1);
+ }
+ else {
+ strncat(ret, "play", sizeof(ret) - strlen(ret) - 1);
+ }
+ break;
case 'f':
if (file)
strncat(ret, file->filename, sizeof(ret) - strlen(ret) - 1);