-
Notifications
You must be signed in to change notification settings - Fork 23
Powerline Separator Module
The powerline separator module offers no functionality other than visual aesthetics.
The module is controlled by these kind of entries in the barrules
array in
config.h.
{ 0, 0, 0, 0, 0, PwrlForwardSlash, BAR_ALIGN_LEFT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
There is a second optional size_pwrl_ifhidfloat
size function that only draws a powerline
separator if the current workspace has both floating and hidden selections. This is demonstrated in
the default configuration where the second bar shows either floating window titles, hidden window
titles or both floating and hidden window titles separated by a powerline separator in the center
of the bar.
There are a few different powerline options that can be used in the value field of the bar rules and they are as follows:
Powerline option | Look and feel | Notes |
---|---|---|
PwrlNone | Essentially disables drawing of powerline | |
PwrlRightArrow | ||
PwrlLeftArrow | ||
PwrlForwardSlash | ||
PwrlBackslash | ||
PwrlSolid | Special case, used when the powerline is at the far left of the bar | |
PwrlSolidRev | Special case, used when the powerline is at the far right of the bar |
Technically powerline separators are handled differently to normal bar modules in that:
- they are drawn after the normal bar modules have been drawn and
- consecutive powerlines reduce to one and
- they take the colour(s) of adjacent bar modules and
- powerlines that end up on the far right become solid and take the colour from the bar module on the left and
- powerlines that end up on the far left become solid and take the colour from the bar module on the right
If powerlines are not used then it is recommended to use the lpad
and rpad
to add some padding
/ distance between bar modules.
There is no click handling for the powerline separator module.
When using powerline separators it is generally recommended to avoid specifying the lpad
and
rpad
values for other bar rules to avoid gaps between the powerline separator and other modules.
The exception to this is padding for the status modules due to how the padding is handled there.
Back to Bar > Bar Modules.
Concepts | Configuration | Features | Flags | Functionality | Functions