start background and nm-applet with niri

This commit is contained in:
xenia 2025-05-29 19:09:58 +02:00
parent 79ee4941ea
commit 65eb8039dc

View File

@ -160,6 +160,7 @@ in rec {
{ command = [ "${pkgs.xwayland-satellite}/bin/xwayland-satellite" XWAYLAND_DISPLAY ]; }
{ command = [ "${x-wayland-clipboard-daemon}" ]; }
{ command = [ "${pkgs.dbus}/bin/dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP" ]; } # needed for screen-sharing to work
{ command = [ "systemctl" "--user" "start" "background" "nm-applet" ]; }
];
environment.DISPLAY = XWAYLAND_DISPLAY;
@ -476,20 +477,20 @@ in rec {
};
};
# started by niri
systemd.user.services.nm-applet = {
Unit = {
Description = "Network manager applet";
After = [ "waybar.service" ];
};
Service = {
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator";
};
};
# started by niri
systemd.user.services.background = {
Unit = {
Description = "Desktop background";
After = [ "niri.service" ];
};
Service = {
ExecStart = pkgs.lib.escapeShellArgs [ "${pkgs.swaybg}/bin/swaybg" "--image" "${../backgrounds/eta-tak.jpg}" ];