hyprland improve systemd integration

This commit is contained in:
Leonardo Eugênio 2024-01-21 00:23:36 -03:00
parent 6ad0d3685e
commit f3ef679499
3 changed files with 6 additions and 3 deletions

View file

@ -35,7 +35,10 @@ in
greetd_main_script = pkgs.writeShellScriptBin "main" ''
${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
export XDG_CURRENT_DESKTOP=sway GTK_THEME="${theme.gtk_theme}" XCURSOR_THEME="${theme.cursor_theme}"
${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c ${desktop}
${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c ${{
sway = "sway";
hyprland = "Hyprland";
}.${desktop}}
swaymsg exit
'';
swayConfig = pkgs.writeText "greetd-sway-config" ''

View file

@ -14,7 +14,7 @@
wayland.windowManager.hyprland = {
enable = false;
extraConfig = lib.readFile ./hyprland.conf;
# systemd.enable = true;
systemd.enable = true;
};
# home.file.".config/eww".source = ./eww;

View file

@ -48,6 +48,6 @@ in
ExecStart = "${pkgs.mako}/bin/mako";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
Install = { WantedBy = [ "sway-session.target" "hyprland-sessions.target" ]; };
};
}