mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
Tweak the urgency indicator default padding for urgent_collapse = 1.
e.g. * 1 3* -> *1 3* Add clarification for urgent_collapse in the man page. closes #96
This commit is contained in:
parent
ee4e60a8d4
commit
4e5c9bd680
2 changed files with 4 additions and 3 deletions
|
@ -445,8 +445,9 @@ Set this to the opposite of
|
|||
to collapse the border between tiles.
|
||||
Disable by setting to 0.
|
||||
.It Ic urgent_collapse
|
||||
Enables hiding of placeholders in the urgency hint indicator for workspaces that
|
||||
do not have any urgent windows.
|
||||
Minimizes the space consumed by the urgency hint indicator by removing the
|
||||
placeholders for non-urgent workspaces, the trailing space when there are
|
||||
urgent windows and the default leading space.
|
||||
Enable by setting to 1.
|
||||
.It Ic urgent_enabled
|
||||
Enable or disable the urgency hint indicator in the status bar.
|
||||
|
|
|
@ -2280,7 +2280,7 @@ bar_fmt(const char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz)
|
|||
|
||||
/* bar_urgent already adds the space before the last asterisk */
|
||||
if (urgent_enabled)
|
||||
strlcat(fmtnew, "* +U*+4<", sz);
|
||||
strlcat(fmtnew, (urgent_collapse ? "*+U*+4<" : "* +U*+4<"), sz);
|
||||
|
||||
if (window_class_enabled) {
|
||||
strlcat(fmtnew, "+C", sz);
|
||||
|
|
Loading…
Add table
Reference in a new issue