first push to GitPUSH

This commit is contained in:
Brandon4466
2023-06-04 22:14:08 -07:00
parent 1e40570d57
commit 2163e5120c
4 changed files with 11 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ from time import sleep
import subprocess
from pynput import mouse
from functools import partial
from os import name, path, remove
from os import name, path, remove, system
# while True:
@@ -58,6 +58,7 @@ while True:
except Exception as e:
if e.args[0] == 1:
print("Program has requested sleep mode.")
system("xset -display :0 s 30")
with mouse.Listener(on_move=bar, on_click=bar, on_scroll=bar) as listener:
listener.join()
else: