]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
*add* autohide
[chaz/tint2] / src / config.c
index 62a8c585e6aaab32fbb350dec0cbe242be5d8664..814bc5d2ff3fcba5f03d24d43a8f9da737edeee7 100644 (file)
@@ -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) {
This page took 0.02286 seconds and 4 git commands to generate.