diff --git a/config/programs/sway.nix b/config/programs/sway.nix index 1d53c3e0..aad5a823 100644 --- a/config/programs/sway.nix +++ b/config/programs/sway.nix @@ -53,12 +53,16 @@ { command = "${pkgs.mako}/bin/mako"; } + { + command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock' timeout 305 '${pkgs.sway}/bin/swaymsg \"output * dpms off\"' resume '${pkgs.sway}/bin/swaymsg \"output * dpms on\"' lock '${pkgs.swaylock}/bin/swaylock' unlock '${pkgs.procps}/bin/pkill swayidle'"; + } ]; }; wrapperFeatures.gtk = true; }; - home.file.".XCompose".source = ../../extra/.XCompose; + home.file.".XCompose ".source = ../../extra/.XCompose; } + diff --git a/config/services/sway.nix b/config/services/sway.nix index 653a84b1..dd5fc1e6 100644 --- a/config/services/sway.nix +++ b/config/services/sway.nix @@ -10,8 +10,6 @@ programs.sway = { enable = true; extraPackages = with pkgs; [ - swaylock - swayidle xwayland wl-clipboard (python38.withPackages (ps: with ps; [ i3pystatus keyring ]))