X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.1;h=cb119bdce1ed07c944662770d44cfe6823411f11;hb=bfbcbe5c62a1dedad9cd7b9a6c984cc330012a4e;hp=778ec69a2502f1fd37945fe7310684693cc44f32;hpb=a658878aea0a8ed61e2f6bd253338d15f425124e;p=spectrwm.git diff --git a/spectrwm.1 b/spectrwm.1 index 778ec69..cb119bd 100644 --- a/spectrwm.1 +++ b/spectrwm.1 @@ -103,6 +103,36 @@ Status bar font. .It Ic bar_font_color Ns Bq Ar x Color of the font in status bar in screen .Ar x . +.It Ic bar_format +Set the bar_format string and overrides +.Ic clock_format +and all of the +.Ic enabled +options. +The format is passed through +.Xr strftime 3 +before being used. +It may contain the following character sequences: +.Bl -column "Character sequence" "Replaced with" -offset indent +.It Sy "Character sequence" Ta Sy "Replaced with" +.It Li "+A" Ta "Output of the external script" +.It Li "+C" Ta "Window class" +.It Li "+D" Ta "Workspace name" +.It Li "+F" Ta "Floating indicator" +.It Li "+I" Ta "Workspace index" +.It Li "+N" Ta "Screen number" +.It Li "+P" Ta "Window class and title separated by a colon" +.It Li "+S" Ta "Stacking algorithm" +.It Li "+T" Ta "Window title" +.It Li "+U" Ta "Urgency hint" +.It Li "+V" Ta "Program version" +.It Li "+W" Ta "Window name" +.It Li "++" Ta "A literal" Ql + +.El +.Pp +All character sequences may limit its output to a specific length, for example ++64A. +Any characters that don't match the specification are copied as-is. .It Ic bar_justify Justify the status bar text. Possible values are .Pa left , @@ -277,6 +307,12 @@ Enable by setting to 1. .It Ic window_name_enabled Enable or disable displaying the window name in the status bar. Enable by setting to 1. +.Pp +To prevent excessively large window names from pushing the remaining text off +the screen, it's limited to 64 characters, by default. +See the +.Ic bar_format +option for more details. .It Ic workspace_limit Set the total number of workspaces available. Minimum is 1, maximum is 22. .El