allow dynamic timeout setting
Signed-off-by: Marcin Fabrykowski <git@fabrykowski.pl>
This commit is contained in:
@@ -17,14 +17,21 @@ class IdleInhibitor : public ALabel {
|
||||
auto update() -> void override;
|
||||
static std::list<waybar::AModule*> modules;
|
||||
static bool status;
|
||||
static long deactivationTime;
|
||||
|
||||
private:
|
||||
bool handleToggle(GdkEventButton* const& e) override;
|
||||
void toggleStatus();
|
||||
bool handleScroll(GdkEventScroll* e) override;
|
||||
|
||||
void toggleStatus(int force_status = -1);
|
||||
|
||||
const Bar& bar_;
|
||||
struct zwp_idle_inhibitor_v1* idle_inhibitor_;
|
||||
int pid_;
|
||||
|
||||
bool dynamicTimeout;
|
||||
short timeout;
|
||||
short timeout_step;
|
||||
};
|
||||
|
||||
} // namespace waybar::modules
|
||||
|
||||
Reference in New Issue
Block a user