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():