X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fconfig.c;h=814bc5d2ff3fcba5f03d24d43a8f9da737edeee7;hb=ad50533aef71e9697fe78bb636e64079f198f985;hp=62a8c585e6aaab32fbb350dec0cbe242be5d8664;hpb=0063d936c925d1be1eac389f710dfc65460f5520;p=chaz%2Ftint2 diff --git a/src/config.c b/src/config.c index 62a8c58..814bc5d 100644 --- a/src/config.c +++ b/src/config.c @@ -607,6 +607,22 @@ void add_entry (char *key, char *value) else if (strcmp (key, "mouse_scroll_down") == 0) get_action (value, &mouse_scroll_down); + /* autohide options */ + else if (strcmp(key, "autohide") == 0) + panel_autohide = atoi(value); + else if (strcmp(key, "autohide_show_timeout") == 0) + panel_autohide_show_timeout = 1000*atof(value); + else if (strcmp(key, "autohide_hide_timeout") == 0) + panel_autohide_hide_timeout = 1000*atof(value); + else if (strcmp(key, "strut_policy") == 0) { + if (strcmp(value, "follow_size") == 0) + panel_strut_policy = STRUT_FOLLOW_SIZE; + else + panel_strut_policy = STRUT_MINIMUM; + } + else if (strcmp(key, "autohide_height") == 0) + panel_autohide_height = atoi(value); + /* Read tint-0.6 config for backward compatibility */ else if (strcmp (key, "panel_mode") == 0) {