This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

sway: move swayidle to systemd unit

+18 -4
+18 -4
2configs/desktops/sway/default.nix
··· 32 32 } 33 33 ]; 34 34 35 + systemd.user.services.swayidle = { 36 + description = "Idle manager for Wayland"; 37 + documentation = [ "man:swayidle(1)" ]; 38 + partOf = [ "sway-session.target" ]; 39 + wantedBy = [ "sway-session.target" ]; 40 + serviceConfig = { 41 + Type = "simple"; 42 + ExecStart = '' 43 + ${pkgs.swayidle}/bin/swayidle -w \ 44 + timeout 120 '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' \ 45 + timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \ 46 + before-sleep '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' 47 + ''; 48 + Restart = "on-failure"; 49 + RestartSec = 1; 50 + }; 51 + }; 52 + 35 53 systemd.user.services.sway-urgent-rumble = { 36 54 description = "Trigger rumble on urgent windows"; 37 55 partOf = [ "sway-session.target" ]; ··· 338 356 exec ${pkgs.copyq}/bin/copyq --start-server 339 357 exec ydotoold 340 358 exec_always pkill kanshi; exec ${pkgs.kanshi}/bin/kanshi 341 - exec_always pkill swayidle; exec ${pkgs.swayidle}/bin/swayidle -w \ 342 - timeout 120 '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' \ 343 - timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \ 344 - before-sleep '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' 345 359 exec_always pkill sway-audio-idle-inhibit; exec ${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit 346 360 347 361 # theme and env specific stuff