Add battery tooltip support

This adds a new config option 'battery_tooltip' (enabled
by default), which can be used to enable a tooltip for
the battery widget providing details for all installed
batteries.
This commit is contained in:
Sebastian Reichel
2015-08-05 02:15:06 +02:00
parent ae375ae526
commit ffd659208a
4 changed files with 105 additions and 0 deletions

View File

@@ -434,6 +434,11 @@ void add_entry (char *key, char *value)
percentage_hide = 101;
#endif
}
else if (strcmp (key, "battery_tooltip") == 0) {
#ifdef ENABLE_BATTERY
battery_tooltip_enabled = atoi(value);
#endif
}
/* Clock */
else if (strcmp (key, "time1_format") == 0) {