diff options
Diffstat (limited to 'users/fcuny/desktop')
-rw-r--r-- | users/fcuny/desktop/sway/sway-idle.nix | 9 |
1 files changed, 7 insertions, 2 deletions
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"; }; |