hyprland improve systemd integration
This commit is contained in:
parent
6ad0d3685e
commit
f3ef679499
|
@ -35,7 +35,10 @@ in
|
||||||
greetd_main_script = pkgs.writeShellScriptBin "main" ''
|
greetd_main_script = pkgs.writeShellScriptBin "main" ''
|
||||||
${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
|
${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
|
||||||
export XDG_CURRENT_DESKTOP=sway GTK_THEME="${theme.gtk_theme}" XCURSOR_THEME="${theme.cursor_theme}"
|
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
|
swaymsg exit
|
||||||
'';
|
'';
|
||||||
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = false;
|
enable = false;
|
||||||
extraConfig = lib.readFile ./hyprland.conf;
|
extraConfig = lib.readFile ./hyprland.conf;
|
||||||
# systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
# home.file.".config/eww".source = ./eww;
|
# home.file.".config/eww".source = ./eww;
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,6 @@ in
|
||||||
ExecStart = "${pkgs.mako}/bin/mako";
|
ExecStart = "${pkgs.mako}/bin/mako";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
Install = { WantedBy = [ "sway-session.target" ]; };
|
Install = { WantedBy = [ "sway-session.target" "hyprland-sessions.target" ]; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue