aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/desktop/sway/sway-idle.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-18 09:28:07 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-18 09:28:07 -0800
commit4faeeea237461c9b64d9c7b07de3667e6d61a93a (patch)
tree31aa439a9be1c6c0a984f7656586c393eae9a30d /users/fcuny/desktop/sway/sway-idle.nix
parentwaybar: first round of customizations (diff)
downloadinfra-4faeeea237461c9b64d9c7b07de3667e6d61a93a.tar.gz
swaylock: unsure if I'm doing the right thing here
Diffstat (limited to 'users/fcuny/desktop/sway/sway-idle.nix')
-rw-r--r--users/fcuny/desktop/sway/sway-idle.nix9
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";
};