Use hyprland with UWSM instead of systemd
This commit is contained in:
parent
8f871e8f58
commit
dbeda86281
|
|
@ -11,6 +11,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -11,17 +11,10 @@ let
|
||||||
cfg = osConfig.modules.hyprland;
|
cfg = osConfig.modules.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.user.targets.hyprland-session.Unit.Wants = [
|
|
||||||
"xdg-desktop-autostart.target"
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = cfg.enable;
|
enable = cfg.enable;
|
||||||
package = pkgs.hyprland;
|
package = pkgs.hyprland;
|
||||||
systemd = {
|
systemd.enable = false;
|
||||||
enable = true;
|
|
||||||
enableXdgAutostart = true;
|
|
||||||
};
|
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
monitor = cfg.monitor;
|
monitor = cfg.monitor;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue