mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
font: Allow adding font to the config. In prep for border titles
v2: Give default font and make bar use it if no bar font
This commit is contained in:
parent
baa958eaf2
commit
0ee5547406
4 changed files with 28 additions and 2 deletions
|
|
@ -551,7 +551,7 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
|
|||
break;
|
||||
}
|
||||
json_object_object_add(json, "status_command", json_object_new_string(bar->status_command));
|
||||
json_object_object_add(json, "font", json_object_new_string(bar->font));
|
||||
json_object_object_add(json, "font", json_object_new_string(bar->font ? bar->font : config->font));
|
||||
if (bar->separator_symbol) {
|
||||
json_object_object_add(json, "separator_symbol", json_object_new_string(bar->separator_symbol));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue