- `window_gap` — Value of the gap that separates windows.
+- `split_ratio` — Default split ratio.
+
- `{top,right,bottom,left}_padding` — Padding space added at the sides of the current monitor.
- `wm_name` — The value that shall be used for the `_NET_WM_NAME` property of the root window.
sscanf(value, "%u", &border_width);
} else if (strcmp(name, "window_gap") == 0) {
sscanf(value, "%i", &window_gap);
+ } else if (strcmp(name, "split_ratio") == 0) {
+ sscanf(value, "%lf", &split_ratio);
} else if (strcmp(name, "left_padding") == 0) {
sscanf(value, "%i", &mon->left_padding);
} else if (strcmp(name, "right_padding") == 0) {
snprintf(rsp, BUFSIZ, "%u", border_width);
else if (strcmp(name, "window_gap") == 0)
snprintf(rsp, BUFSIZ, "%i", window_gap);
+ else if (strcmp(name, "split_ratio") == 0)
+ snprintf(rsp, BUFSIZ, "%lf", split_ratio);
else if (strcmp(name, "left_padding") == 0)
snprintf(rsp, BUFSIZ, "%i", mon->left_padding);
else if (strcmp(name, "right_padding") == 0)
{
node_t *n = malloc(sizeof(node_t));
n->parent = n->first_child = n->second_child = NULL;
- n->split_ratio = SPLIT_RATIO;
+ n->split_ratio = split_ratio;
n->split_type = TYPE_VERTICAL;
n->client = NULL;
n->vacant = false;