This repository has no description
0

Configure Feed

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

sway: move sway-audio-idle-inhibit to systemd user service

+13 -1
+13 -1
2configs/desktops/sway/default.nix
··· 67 67 }; 68 68 }; 69 69 70 + # Inhibit idle when audio is playing (prevents suspend during calls/music) 71 + systemd.user.services.sway-audio-idle-inhibit = { 72 + description = "Inhibit idle when audio is playing"; 73 + partOf = [ "sway-session.target" ]; 74 + wantedBy = [ "sway-session.target" ]; 75 + serviceConfig = { 76 + Type = "simple"; 77 + ExecStart = "${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit"; 78 + Restart = "on-failure"; 79 + RestartSec = 1; 80 + }; 81 + }; 82 + 70 83 systemd.user.services.sway-urgent-rumble = { 71 84 description = "Trigger rumble on urgent windows"; 72 85 partOf = [ "sway-session.target" ]; ··· 381 394 exec ${pkgs.copyq}/bin/copyq --start-server 382 395 exec ydotoold 383 396 exec_always pkill kanshi; exec ${pkgs.kanshi}/bin/kanshi 384 - exec_always pkill sway-audio-idle-inhibit; exec ${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit 385 397 386 398 # theme and env specific stuff 387 399 exec_always ${pkgs.writers.writeDash "dbus-sway-environment" ''