feat: greeter support hyprland lua

This commit is contained in:
2026-07-03 15:52:27 +02:00
parent cdf66bff23
commit 69774e7759
4 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -9,5 +9,5 @@ export EGL_PLATFORM=gbm
if command -v start-hyprland >/dev/null 2>&1; then
exec start-hyprland -- -c /etc/zshell-greeter/zshell-hyprland.conf
else
exec Hyprland -c /etc/zshell-greeter/zshell-hyprland.conf
exec Hyprland -c /etc/zshell-greeter/zshell-hyprland.lua
fi
-12
View File
@@ -1,12 +0,0 @@
monitor = ,preferred,auto,1
env = XDG_SESSION_TYPE,wayland
env = QT_QPA_PLATFORM,wayland
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
}
exec = sh -lc 'qs -c zshell-greeter; hyprctl dispatch exit'
+14
View File
@@ -0,0 +1,14 @@
hl.env("XDG_SESSION_TYPE", "wayland")
hl.env("QT_QPA_PLATFORM", "wayland")
hl.env("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1")
hl.config({
misc = {
disable_hyprland_logo = true,
disable_splash_rendering = true,
},
})
hl.on("hyprland.start", function()
hl.exec_cmd("sh -lc 'qs -c zshell-greeter; hyprctl dispatch exit'")
end)
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
BINARY="../Greeter/scripts/start-zshell-greeter"
CONFIG="../Greeter/scripts/zshell-hyprland.conf"
CONFIG="../Greeter/scripts/zshell-hyprland.lua"
GREETD_CONFIG="../Greeter/scripts/greeter-config.toml"
WALLPAPER="$HOME/.local/state/zshell/lockscreen_bg.png"