first push to GitPUSH
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user