mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
Invoke swaybar when an output matches a bar config
This commit is contained in:
parent
f6da4dda4b
commit
60c204a09b
2 changed files with 49 additions and 1 deletions
|
|
@ -1785,6 +1785,10 @@ static struct cmd_results *bar_cmd_output(int argc, char **argv) {
|
|||
|
||||
const char *output = argv[0];
|
||||
list_t *outputs = config->current_bar->outputs;
|
||||
if (!outputs) {
|
||||
outputs = create_list();
|
||||
config->current_bar->outputs = outputs;
|
||||
}
|
||||
|
||||
int i;
|
||||
int add_output = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue