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
No related merge requests found
......@@ -873,6 +873,10 @@ Image width
.Nm
version
.
.It %V
.
Process ID
.
.It %z
.
current image zoom
......
......@@ -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);
......
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