From 4faeeea237461c9b64d9c7b07de3667e6d61a93a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 18 Feb 2022 09:28:07 -0800 Subject: swaylock: unsure if I'm doing the right thing here --- users/fcuny/desktop/sway/sway-idle.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'users/fcuny/desktop') diff --git a/users/fcuny/desktop/sway/sway-idle.nix b/users/fcuny/desktop/sway/sway-idle.nix index 8583a3b..24fde8c 100644 --- a/users/fcuny/desktop/sway/sway-idle.nix +++ b/users/fcuny/desktop/sway/sway-idle.nix @@ -1,6 +1,11 @@ { pkgs, config, ... }: { + + xdg.configFile."swaylock/config" = { + source = ../../configs/swaylock/config; + }; + # https://github.com/nix-community/home-manager/pull/2610 # won't be needed for ever systemd.user.services.swayidle = { @@ -11,10 +16,10 @@ Environment = "PATH=${pkgs.bash}/bin:${config.wayland.windowManager.sway.package}/bin"; ExecStart = '' ${pkgs.swayidle}/bin/swayidle -w \ - timeout 300 "${pkgs.swaylock}/bin/swaylock -f -c FFFFEA" \ + timeout 300 "${pkgs.swaylock}/bin/swaylock" \ timeout 300 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ - before-sleep "${pkgs.swaylock}/bin/swaylock -f -c FFFFEA" + before-sleep "${pkgs.swaylock}/bin/swaylock" ''; Restart = "on-failure"; }; -- cgit 1.4.1