hyprland lua dispatch

This commit is contained in:
2026-07-21 20:07:19 +09:00
parent 5ea08b009d
commit 4c8e9f809a
7 changed files with 109 additions and 26 deletions
+5 -5
View File
@@ -15,6 +15,8 @@ let
hl.env("HYPRCURSOR_THEME", "rose-pine-hyprcursor")
hl.env("HYPRCURSOR_SIZE", "24")
hl.env("XCURSOR_SIZE", "24")
hl.env("GTK_USE_PORTAL", "0")
hl.env("GDK_DEBUG", "no-portals")
hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
hl.env("XDG_SESSION_TYPE", "wayland")
@@ -31,13 +33,14 @@ let
force_default_wallpaper = false,
disable_hyprland_logo = true,
disable_splash_rendering = true,
disable_hyprland_guiutils_check = true,
},
})
hl.on("hyprland.start", function()
hl.exec_cmd("${
config.programs.regreet.package or pkgs.regreet
}/bin/regreet; hyprctl dispatch exit")
}/bin/regreet; ${pkgs.hyprland}/bin/hyprctl dispatch 'hl.dsp.exit()'")
end)
'';
in
@@ -51,7 +54,7 @@ in
config = {
services.greetd.enable = true;
services.greetd.settings.default_session = {
command = "${pkgs.hyprland}/bin/start-hyprland -- -c ${hyprGreetConf}";
command = "${pkgs.dbus}/bin/dbus-run-session ${pkgs.hyprland}/bin/start-hyprland -- -c ${hyprGreetConf}";
user = "greeter";
};
@@ -80,9 +83,6 @@ in
GTK = {
application_prefer_dark_theme = true;
};
background = {
path = "/usr/share/wallpaper/arknights-image-01.png";
};
};
};
};
+1
View File
@@ -5,6 +5,7 @@
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
extraConfig.pipewire."92-low-latency" = {
context.properties = {
default.clock.rate = 48000;