diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-18 09:28:07 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-18 09:28:07 -0800 |
commit | 4faeeea237461c9b64d9c7b07de3667e6d61a93a (patch) | |
tree | 31aa439a9be1c6c0a984f7656586c393eae9a30d /users/fcuny/desktop | |
parent | waybar: first round of customizations (diff) | |
download | world-4faeeea237461c9b64d9c7b07de3667e6d61a93a.tar.gz |
swaylock: unsure if I'm doing the right thing here
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"; }; |