all repos — tint2 @ da7599983227facf8538932c86d2df986a3765e0

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

add env var to debug battery blink
Chris Lee @klee93
commit

da7599983227facf8538932c86d2df986a3765e0

parent

bff1a337f3f24c6572a5892455dfddf46c62c1f8

4 files changed, 5 insertions(+), 3 deletions(-)

jump to
M src/battery/battery.csrc/battery/battery.c

@@ -408,8 +408,8 @@ battery_full_cmd_sent = FALSE;

} 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; }
M src/init.csrc/init.c

@@ -107,6 +107,7 @@ debug_dnd = getenv("DEBUG_DND") != NULL;

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();
M src/panel.csrc/panel.c

@@ -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;
M src/panel.hsrc/panel.h

@@ -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;