From ebaf54251a6e3a1b366531155ab59dbd286a4a3a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 26 Sep 2018 18:41:18 +0100 Subject: Add formats for when window is larger than client, and show offset in status-right by default when larger. --- options-table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'options-table.c') diff --git a/options-table.c b/options-table.c index 0776f0b7..4bc7982f 100644 --- a/options-table.c +++ b/options-table.c @@ -476,7 +476,9 @@ const struct options_table_entry options_table[] = { { .name = "status-right", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_SESSION, - .default_str = " \"#{=21:pane_title}\" %H:%M %d-%b-%y" + .default_str = "#{?window_bigger," + "[#{window_offset_x}#,#{window_offset_y}] ,}" + "\"#{=21:pane_title}\" %H:%M %d-%b-%y" }, { .name = "status-right-attr", -- cgit