commit 5a4c4b11910507db3680a99bdd6384bcd538aa59 Author: adrian Date: Wed Jul 30 19:30:44 2025 +0200 first commit diff --git a/suspend.py b/suspend.py new file mode 100755 index 0000000..b89471d --- /dev/null +++ b/suspend.py @@ -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'])