diff --git a/man/feh.pre b/man/feh.pre index c60e15a1949a6906b1b5698acabc02ae7304a1ac..701e399e0fcd0913a5aa51a04b8a2fe75ad64768 100644 --- a/man/feh.pre +++ b/man/feh.pre @@ -873,6 +873,10 @@ Image width .Nm version . +.It %V +. +Process ID +. .It %z . current image zoom diff --git a/src/slideshow.c b/src/slideshow.c index 60bd99c4f6eaf6420f54d47e09031cb38aaafd27..7dcf7917b6d085c00b9b0e6c92fc038c40e6998b 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -508,6 +508,10 @@ char *feh_printf(char *str, feh_file * file, winwidget winwid) case 'v': strcat(ret, VERSION); break; + case 'V': + snprintf(buf, sizeof(buf), "%d", getpid()); + strcat(ret, buf); + break; case 'w': if (file && (file->info || !feh_file_info_load(file, NULL))) { snprintf(buf, sizeof(buf), "%d", file->info->width);