diff options
Diffstat (limited to '')
| -rwxr-xr-x | src/Watcher/afk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Watcher/afk.py b/src/Watcher/afk.py index 2c54888..e309231 100755 --- a/src/Watcher/afk.py +++ b/src/Watcher/afk.py @@ -1,7 +1,7 @@ import os def IsAFK(): time_since_last_input = int(os.popen("xprintidle").read()) - if time_since_last_input >= 3000: + if time_since_last_input >= 300000: # 3min no input == AFK video_playback = os.popen("""pacmd list-sink-inputs | grep -w state | grep -i 'CORKED'""").read() # if playback is not running as well as user is AFK if "CORKED" in video_playback: |
