bar: Make module separator a label
Some people use text modules instead of the `separator` key in the bar section to better configure the separator (colors, fonts). Since we disallowed the same module being used multiple times in #1534, this will now print an error message. This should help with this a bit. Ref #1913
This commit is contained in:
parent
a77923ea96
commit
587dc6c84d
7 changed files with 14 additions and 16 deletions
include/components
|
@ -12,6 +12,12 @@ POLYBAR_NS
|
|||
// fwd {{{
|
||||
struct randr_output;
|
||||
using monitor_t = shared_ptr<randr_output>;
|
||||
|
||||
namespace drawtypes {
|
||||
class label;
|
||||
}
|
||||
|
||||
using label_t = shared_ptr<drawtypes::label>;
|
||||
// }}}
|
||||
|
||||
struct enum_hash {
|
||||
|
@ -159,7 +165,7 @@ struct bar_settings {
|
|||
|
||||
struct radius radius {};
|
||||
int spacing{0};
|
||||
string separator{};
|
||||
label_t separator{};
|
||||
|
||||
string wmname{};
|
||||
string locale{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue