From a241d3b7f7f09376e09a669e5dbbdcae26ad1ee8 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 31 Jul 2024 00:23:27 -0400 Subject: [PATCH] sway: autostart wayland-pipewire-idle-inhibit --- homeManagerModules/desktop/hyprland/settings.nix | 6 +++--- homeManagerModules/desktop/sway/settings.nix | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/homeManagerModules/desktop/hyprland/settings.nix b/homeManagerModules/desktop/hyprland/settings.nix index 5921e167..ec7a722f 100644 --- a/homeManagerModules/desktop/hyprland/settings.nix +++ b/homeManagerModules/desktop/hyprland/settings.nix @@ -125,13 +125,13 @@ in { exec-once = [ + "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1" + (lib.getExe pkgs.mako) (lib.getExe pkgs.waybar) - scripts.idleD (lib.getExe pkgs.wayland-pipewire-idle-inhibit) (lib.getExe' pkgs.playerctl "playerctld") (lib.getExe' pkgs.swayosd "swayosd-server") - (lib.getExe pkgs.mako) - "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1" + scripts.idleD ] ++ lib.lists.optional (cfg.desktop.redShift) "${lib.getExe pkgs.gammastep} -l 33.74:-84.38" diff --git a/homeManagerModules/desktop/sway/settings.nix b/homeManagerModules/desktop/sway/settings.nix index 9a98572c..888c9655 100644 --- a/homeManagerModules/desktop/sway/settings.nix +++ b/homeManagerModules/desktop/sway/settings.nix @@ -161,9 +161,10 @@ in { {command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";} {command = "${scripts.idleD}";} {command = lib.getExe pkgs.autotiling;} + {command = lib.getExe pkgs.mako;} + {command = lib.getExe pkgs.wayland-pipewire-idle-inhibit;} {command = lib.getExe' pkgs.playerctl "playerctld";} {command = lib.getExe' pkgs.swayosd "swayosd-server";} - {command = lib.getExe pkgs.mako;} ] ++ lib.optional cfg.desktop.redShift {command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}