mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -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
|
|
@ -119,6 +119,7 @@ static void free_config(struct sway_config *config) {
|
|||
list_free(config->output_configs);
|
||||
|
||||
list_free(config->active_bar_modifiers);
|
||||
free(config->font);
|
||||
free(config);
|
||||
}
|
||||
|
||||
|
|
@ -149,6 +150,8 @@ static void config_defaults(struct sway_config *config) {
|
|||
config->resizing_key = M_RIGHT_CLICK;
|
||||
config->default_layout = L_NONE;
|
||||
config->default_orientation = L_NONE;
|
||||
config->font = strdup("pango:monospace 10");
|
||||
|
||||
// Flags
|
||||
config->focus_follows_mouse = true;
|
||||
config->mouse_warping = true;
|
||||
|
|
@ -879,7 +882,7 @@ struct bar_config *default_bar_config(void) {
|
|||
bar->bindings = create_list();
|
||||
bar->status_command = strdup("while :; do date +'%Y-%m-%d %l:%M:%S %p' && sleep 1; done");
|
||||
bar->swaybar_command = NULL;
|
||||
bar->font = strdup("pango:monospace 10");
|
||||
bar->font = NULL;
|
||||
bar->height = -1;
|
||||
bar->workspace_buttons = true;
|
||||
bar->separator_symbol = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue