add env var to debug battery blink
This commit is contained in:
parent
bff1a337f3
commit
da75999832
4 changed files with 5 additions and 3 deletions
|
@ -408,8 +408,8 @@ void update_battery_tick(void *arg)
|
|||
}
|
||||
|
||||
if (!battery_blink_timer.enabled_) {
|
||||
if (battery_state.percentage < battery_low_status &&
|
||||
battery_state.state == BATTERY_DISCHARGING) {
|
||||
if ((battery_state.percentage < battery_low_status &&
|
||||
battery_state.state == BATTERY_DISCHARGING) || debug_blink) {
|
||||
change_timer(&battery_blink_timer, true, 10, 1000, blink_battery, 0);
|
||||
battery_warn = TRUE;
|
||||
}
|
||||
|
|
|
@ -107,6 +107,7 @@ void handle_env_vars()
|
|||
debug_thumbnails = getenv("DEBUG_THUMBNAILS") != NULL;
|
||||
debug_timers = getenv("DEBUG_TIMERS") != NULL;
|
||||
debug_executors = getenv("DEBUG_EXECUTORS") != NULL;
|
||||
debug_blink = getenv("DEBUG_BLINK") != NULL;
|
||||
thumb_use_shm = getenv("TINT2_THUMBNAIL_SHM") != NULL;
|
||||
if (debug_fps) {
|
||||
init_fps_distribution();
|
||||
|
|
|
@ -60,7 +60,7 @@ gboolean debug_geometry;
|
|||
gboolean debug_gradients;
|
||||
gboolean startup_notifications;
|
||||
gboolean debug_thumbnails;
|
||||
|
||||
gboolean debug_blink;
|
||||
gboolean panel_autohide;
|
||||
int panel_autohide_show_timeout;
|
||||
int panel_autohide_hide_timeout;
|
||||
|
|
|
@ -99,6 +99,7 @@ extern gboolean debug_thumbnails;
|
|||
extern double ui_scale_dpi_ref;
|
||||
extern double ui_scale_monitor_size_ref;
|
||||
extern gboolean thumb_use_shm;
|
||||
extern gboolean debug_blink;
|
||||
|
||||
typedef struct Panel {
|
||||
Area area;
|
||||
|
|
Loading…
Reference in a new issue