swaybar: move ipc stuff to ipc.{h,c}

This commit is contained in:
Mikkel Oscar Lyderik 2016-01-24 00:23:09 +01:00
parent a6349a2444
commit fcc47cb3bd
11 changed files with 359 additions and 301 deletions

View file

@ -45,19 +45,15 @@ struct swaybar_config *init_config() {
struct swaybar_config *config = calloc(1, sizeof(struct swaybar_config));
config->status_command = NULL;
config->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM;
config->font = NULL;
config->font = strdup("monospace 10");
config->mode = NULL;
config->sep_symbol = NULL;
config->strip_workspace_numbers = false;
config->binding_mode_indicator = true;
config->workspace_buttons = true;
/* layout */
config->margin = 3;
config->ws_horizontal_padding = 5;
config->ws_vertical_padding = 1.5;
config->ws_spacing = 1;
config->text_height = 30;
/* height */
config->height = 0;
/* colors */
config->colors.background = 0x000000FF;