fix: anti-idle click+shift every 60s
This commit is contained in:
@@ -111,6 +111,10 @@ def _anti_idle_loop():
|
|||||||
["xdotool", "click", "--window", win_id, "1"],
|
["xdotool", "click", "--window", win_id, "1"],
|
||||||
env=env, capture_output=True, timeout=5,
|
env=env, capture_output=True, timeout=5,
|
||||||
)
|
)
|
||||||
|
subprocess.run(
|
||||||
|
["xdotool", "key", "--window", win_id, "--clearmodifiers", "shift"],
|
||||||
|
env=env, capture_output=True, timeout=5,
|
||||||
|
)
|
||||||
toggle = not toggle
|
toggle = not toggle
|
||||||
log.debug("anti_idle click window=%s pos=%s,%s", win_id, x, y)
|
log.debug("anti_idle click window=%s pos=%s,%s", win_id, x, y)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user