From 0a6d43755baac9b35b34112b1ceb28433f5bcea1 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sat, 18 Aug 2018 22:32:21 +0200 Subject: [PATCH] [polybar] Add throttle settings Should be easier on my battery --- polybar/config.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/polybar/config.ini b/polybar/config.ini index 949bbf7..3a1d8cc 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -466,6 +466,17 @@ interval = 600 label-font = 6 [settings] +; The throttle settings lets the eventloop swallow up til X events +; if they happen within Y millisecond after first event was received. +; This is done to prevent flood of update event. +; +; For example if 5 modules emit an update event at the same time, we really +; just care about the last one. But if we wait too long for events to swallow +; the bar would appear sluggish so we continue if timeout +; expires or limit is reached. +throttle-output = 5 +throttle-output-for = 10 + ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events screenchange-reload = false