aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-11 03:36:15 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-11 03:36:15 +0100
commit8fc7cb73b37cb00f164425bcced0afbc949a3429 (patch)
treee0f44918c73cd817e348fc08182569214adad5eb
parentef0ed3226428c00507e76bdda77c522729ed6809 (diff)
Nicer window title
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 4e7e227..55483ca 100644
--- a/main.c
+++ b/main.c
@@ -223,7 +223,7 @@ void update_title(void) {
const char *size_unit;
if (mode == MODE_THUMB) {
- n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] %s",
+ n = snprintf(win_title, TITLE_LEN, "sxiv: %d/%d %s",
tns.cnt ? tns.sel + 1 : 0, tns.cnt,
tns.cnt ? files[tns.sel].name : "");
} else {
@@ -231,16 +231,16 @@ void update_title(void) {
size_readable(&size, &size_unit);
if (img.multi.cnt > 0)
- snprintf(frame_info, sizeof(frame_info), "{%d/%d} ",
+ snprintf(frame_info, sizeof(frame_info), " (%d/%d)",
img.multi.sel + 1, img.multi.cnt);
else
frame_info[0] = '\0';
n = snprintf(win_title, TITLE_LEN,
- "sxiv: [%d/%d] <%dx%d:%d%%> (%.2f%s) %s%s",
- fileidx + 1, filecnt, img.w, img.h,
+ "sxiv: %d/%d%s %dx%d %d%% %.2f%s %s",
+ fileidx + 1, filecnt, frame_info, img.w, img.h,
(int) (img.zoom * 100.0), size, size_unit,
- frame_info, files[fileidx].name);
+ files[fileidx].name);
}
if (n >= TITLE_LEN) {