From b4b0f73f35654809facc04ac8a5f7f81431b2fc0 Mon Sep 17 00:00:00 2001 From: Jade Date: Tue, 21 Nov 2023 16:13:08 +0100 Subject: [PATCH] fix screen locking with desktopctl (and make it more universal) --- other/scripts/desktop/desktopctl.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/scripts/desktop/desktopctl.nix b/other/scripts/desktop/desktopctl.nix index 1161e38..4a5a38d 100644 --- a/other/scripts/desktop/desktopctl.nix +++ b/other/scripts/desktop/desktopctl.nix @@ -2,7 +2,7 @@ pkgs.writeShellScriptBin "desktopctl" '' case $@ in "Lock Screen") - nohup sh -c "i3lock-fancy" > /dev/null & + loginctl lock-session exit 0 ;; "Log Out")