From 9b8ae4400bda7d48c8137b31e82156e6611e409d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 6 Dec 2022 00:34:46 -0300 Subject: [PATCH] fix swaylock --- user/sway.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/user/sway.nix b/user/sway.nix index 932a73e..fddfce9 100644 --- a/user/sway.nix +++ b/user/sway.nix @@ -10,7 +10,7 @@ let notify-send "$(wl-paste)" "Copied to clipboard" ''; _lock = pkgs.writeShellScriptBin "_lock" '' - swaylock -f + ${pkgs.swaylock}/bin/swaylock -f systemctl --user start swayidle.service ''; _suspend = pkgs.writeShellScriptBin "_suspend" '' @@ -307,19 +307,19 @@ in { timeouts = [ { timeout = 360; - command = "swaylock -f"; + command = "${pkgs.swaylock}/bin/swaylock -f"; } { timeout = 1800; command = '' - mpc status | grep "^[playing]" > /dev/null || swaymsg "output * dpms off"''; - resumeCommand = ''swaymsg "output * dpms on"''; + mpc status | grep "^[playing]" > /dev/null || ${pkgs.sway}/bin/swaymsg "output * dpms off"''; + resumeCommand = ''${pkgs.sway}/bin/swaymsg "output * dpms on"''; } ]; events = [ { event = "before-sleep"; - command = "swaylock -f"; + command = "${pkgs.swaylock}/bin/swaylock -f"; } { event = "after-resume";