From b9f1cc0e52189614fb862b2a74da3d4f088fd4a8 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 15 Jul 2025 18:01:25 +0200 Subject: [PATCH] Start hyprlock in background --- hypr/hyprscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hypr/hyprscript b/hypr/hyprscript index 35213a6..29a0455 100755 --- a/hypr/hyprscript +++ b/hypr/hyprscript @@ -240,9 +240,10 @@ def monitor_stats(): def start_hyprlock(): - proc = subprocess.run(['pidof', 'hyprloc']) + proc = subprocess.run(['pidof', 'hyprlock']) if proc.returncode != 0: - subprocess.run(['hyprlock']) + # We need to start this in the background so that the screen turns off afterwards + subprocess.Popen(['hyprlock'], start_new_session=True) def lock_session():