start background and nm-applet with niri
This commit is contained in:
parent
79ee4941ea
commit
65eb8039dc
|
@ -160,6 +160,7 @@ in rec {
|
||||||
{ command = [ "${pkgs.xwayland-satellite}/bin/xwayland-satellite" XWAYLAND_DISPLAY ]; }
|
{ command = [ "${pkgs.xwayland-satellite}/bin/xwayland-satellite" XWAYLAND_DISPLAY ]; }
|
||||||
{ command = [ "${x-wayland-clipboard-daemon}" ]; }
|
{ 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 = [ "${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;
|
environment.DISPLAY = XWAYLAND_DISPLAY;
|
||||||
|
|
||||||
|
@ -476,20 +477,20 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# started by niri
|
||||||
systemd.user.services.nm-applet = {
|
systemd.user.services.nm-applet = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Network manager applet";
|
Description = "Network manager applet";
|
||||||
After = [ "waybar.service" ];
|
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator";
|
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# started by niri
|
||||||
systemd.user.services.background = {
|
systemd.user.services.background = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Desktop background";
|
Description = "Desktop background";
|
||||||
After = [ "niri.service" ];
|
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = pkgs.lib.escapeShellArgs [ "${pkgs.swaybg}/bin/swaybg" "--image" "${../backgrounds/eta-tak.jpg}" ];
|
ExecStart = pkgs.lib.escapeShellArgs [ "${pkgs.swaybg}/bin/swaybg" "--image" "${../backgrounds/eta-tak.jpg}" ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user