diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-06-17 19:18:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 19:18:44 +0200 |
commit | 5c59089f12b7b07d46626ecdccf0cfcd4e875e26 (patch) | |
tree | bf0a3a4a4521d2389c7bdbafc6286e41214a9aee /src/slideshow.c | |
parent | 9df1b5b04923340aca69ce3ed4565fceeb042c01 (diff) | |
parent | f0361c5ea6fcdc181863286dbe4de36003eccb9d (diff) |
Merge pull request #500 from reiseb/master
add option 'a' to show play/paused information in slideshow mode
Diffstat (limited to 'src/slideshow.c')
-rw-r--r-- | src/slideshow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index 00425d1..03e8e06 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, "paused", sizeof(ret) - strlen(ret) - 1); + } + else { + strncat(ret, "playing", sizeof(ret) - strlen(ret) - 1); + } + break; case 'f': if (file) strncat(ret, file->filename, sizeof(ret) - strlen(ret) - 1); |