enable xwayland-satellite again

This commit is contained in:
Noa Aarts 2024-11-22 22:06:19 +01:00
parent d9506ad634
commit 04f231a675
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -205,21 +205,28 @@ in
services = lib.mkMerge [ services = lib.mkMerge [
{ {
spotify = { spotify =
Install = { let
WantedBy = [ "niri.service" ]; spotify = (
}; pkgs.writeShellScriptBin "spotify" ''${pkgs.spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland''
);
in
{
Install = {
WantedBy = [ "niri.service" ];
};
Unit = { Unit = {
PartOf = "graphical-session.target"; PartOf = "graphical-session.target";
After = "graphical-session.target"; After = "graphical-session.target";
Requisite = "graphical-session.target"; Requisite = "graphical-session.target";
}; };
Service = { Service = {
ExecStart = "spotify"; ExecStart = "${spotify}/bin/spotify";
Type = "exec";
};
}; };
};
mako = { mako = {
Install = { Install = {
@ -234,6 +241,26 @@ in
Service = { Service = {
ExecStart = "${pkgs.mako}/bin/mako"; ExecStart = "${pkgs.mako}/bin/mako";
Type = "exec";
Restart = "on-failure";
};
};
xwayland = {
Install = {
WantedBy = [ "niri.service" ];
};
Unit = {
PartOf = "graphical-session.target";
After = "graphical-session.target";
Requisite = "graphical-session.target";
};
Service = {
ExecStart = "${pkgs.xwayland-satellite}/bin/xwayland-satellite";
Type = "exec";
Restart = "on-failure";
}; };
}; };
} }
@ -431,7 +458,7 @@ in
backgroundColor = "#000000AA"; backgroundColor = "#000000AA";
# make notifications time out after 30 sec by default # make notifications time out after 30 sec by default
defaultTimeout = 30000; defaultTimeout = 30000;
borderColor = config.colorScheme.palette.base00; borderColor = "#${config.colorScheme.palette.base00}FF";
}; };
playerctld.enable = true; playerctld.enable = true;
# sync my password store and homework # sync my password store and homework