Skip to content
Snippets Groups Projects
Commit f9609945 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add %V format specifier (returns feh PID) - patch by 0ion9, closse #109

parent 96d57781
No related branches found
No related tags found
Loading
...@@ -873,6 +873,10 @@ Image width ...@@ -873,6 +873,10 @@ Image width
.Nm .Nm
version version
. .
.It %V
.
Process ID
.
.It %z .It %z
. .
current image zoom current image zoom
......
...@@ -508,6 +508,10 @@ char *feh_printf(char *str, feh_file * file, winwidget winwid) ...@@ -508,6 +508,10 @@ char *feh_printf(char *str, feh_file * file, winwidget winwid)
case 'v': case 'v':
strcat(ret, VERSION); strcat(ret, VERSION);
break; break;
case 'V':
snprintf(buf, sizeof(buf), "%d", getpid());
strcat(ret, buf);
break;
case 'w': case 'w':
if (file && (file->info || !feh_file_info_load(file, NULL))) { if (file && (file->info || !feh_file_info_load(file, NULL))) {
snprintf(buf, sizeof(buf), "%d", file->info->width); snprintf(buf, sizeof(buf), "%d", file->info->width);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment