From d451db8d833c97f8bcc3ca83351952911e7b3a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 23 Feb 2024 12:01:24 -0300 Subject: [PATCH] sway: fix suspend scripts --- user/sway/sway-binds.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/sway/sway-binds.nix b/user/sway/sway-binds.nix index bb5488b..360ccdc 100644 --- a/user/sway/sway-binds.nix +++ b/user/sway/sway-binds.nix @@ -14,7 +14,8 @@ let systemctl --user start swayidle.service ''; _suspend = pkgs.writeShellScriptBin "_suspend" '' - ${_lock}/bin/_lock + ${pkgs.sway}/bin/swaymsg mode default + systemctl --user start swayidle.service systemctl suspend '';