From dbf80bf782b60db15e964b42bbe0d800fdad7626 Mon Sep 17 00:00:00 2001 From: Waishnav Date: Mon, 18 Jul 2022 18:15:09 +0530 Subject: adding AFK condition if there is any video playback running in background (for pulseaudio) | changing value for more accuracy --- src/Watcher/get_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Watcher/get_windows.py') diff --git a/src/Watcher/get_windows.py b/src/Watcher/get_windows.py index 2831833..8f30932 100755 --- a/src/Watcher/get_windows.py +++ b/src/Watcher/get_windows.py @@ -42,7 +42,7 @@ def active_window(): def is_window_changed(a, afk, timeout): result = False while not(result): - time.sleep(1) + time.sleep(0.5) b = active_window() if a != b : result = True -- cgit v1.2.3