Start hyprlock in background
This commit is contained in:
+3
-2
@@ -240,9 +240,10 @@ def monitor_stats():
|
|||||||
|
|
||||||
|
|
||||||
def start_hyprlock():
|
def start_hyprlock():
|
||||||
proc = subprocess.run(['pidof', 'hyprloc'])
|
proc = subprocess.run(['pidof', 'hyprlock'])
|
||||||
if proc.returncode != 0:
|
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():
|
def lock_session():
|
||||||
|
|||||||
Reference in New Issue
Block a user