first commit
This commit is contained in:
13
suspend.py
Executable file
13
suspend.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import time
|
||||
import subprocess
|
||||
|
||||
print("läuft")
|
||||
# 30 Minuten warten
|
||||
time.sleep(30 * 60)
|
||||
|
||||
subprocess.run(['playerctl', 'pause'])
|
||||
|
||||
time.sleep(1)
|
||||
# System in den Suspend-Modus versetzen
|
||||
subprocess.run(['systemctl', 'suspend'])
|
||||
Reference in New Issue
Block a user