X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fconfig.c;h=10fd1aae0065baf90c8e7e8432b11f16754f75a3;hb=8e711d63bec43974aa45f698302bb1016433dba0;hp=f1b4655b50ae53a197435b020a1fd5b4c59e9b83;hpb=a36e39c7c2fedd87847514d561dc7d7bded2a3fa;p=chaz%2Ftint2 diff --git a/src/config.c b/src/config.c index f1b4655..10fd1aa 100644 --- a/src/config.c +++ b/src/config.c @@ -48,6 +48,9 @@ #include "battery.h" #endif +// global path +char *config_path = 0; +char *thumbnail_path = 0; // -------------------------------------------------- // backward compatibility @@ -228,6 +231,10 @@ void get_action (char *event, int *action) *action = TOGGLE_ICONIFY; else if (strcmp (event, "maximize_restore") == 0) *action = MAXIMIZE_RESTORE; + else if (strcmp (event, "desktop_left") == 0) + *action = DESKTOP_LEFT; + else if (strcmp (event, "desktop_right") == 0) + *action = DESKTOP_RIGHT; } @@ -511,6 +518,18 @@ void add_entry (char *key, char *value) if (value2) panel_config->g_task.font_active.alpha = (atoi (value2) / 100.0); else panel_config->g_task.font_active.alpha = 0.1; } + else if (strcmp (key, "task_icon_hsb") == 0) { + extract_values(value, &value1, &value2, &value3); + panel_config->g_task.hue = atoi(value1); + panel_config->g_task.saturation = atoi(value2); + panel_config->g_task.brightness = atoi(value3); + } + else if (strcmp (key, "task_active_icon_hsb") == 0) { + extract_values(value, &value1, &value2, &value3); + panel_config->g_task.hue_active = atoi(value1); + panel_config->g_task.saturation_active = atoi(value2); + panel_config->g_task.brightness_active = atoi(value3); + } else if (strcmp (key, "task_background_id") == 0) { int id = atoi (value); Area *a = g_slist_nth_data(list_back, id); @@ -723,6 +742,7 @@ deb: path1 = g_build_filename (g_get_user_config_dir(), "tint2", "tint2rc", NULL); if (g_file_test (path1, G_FILE_TEST_EXISTS)) { i = config_read_file (path1); + config_path = strdup(path1); g_free(path1); return i; } @@ -765,6 +785,7 @@ deb: g_free(path2); i = config_read_file (path1); + config_path = strdup(path1); g_free(path1); return i; }