From 69774e7759ad9d196011072c5a2a8ff4d29b7d1e Mon Sep 17 00:00:00 2001 From: zach Date: Fri, 3 Jul 2026 15:52:27 +0200 Subject: [PATCH] feat: greeter support hyprland lua --- Greeter/scripts/start-zshell-greeter | 2 +- Greeter/scripts/zshell-hyprland.conf | 12 ------------ Greeter/scripts/zshell-hyprland.lua | 14 ++++++++++++++ scripts/prepare-greeter.sh | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 Greeter/scripts/zshell-hyprland.conf create mode 100644 Greeter/scripts/zshell-hyprland.lua diff --git a/Greeter/scripts/start-zshell-greeter b/Greeter/scripts/start-zshell-greeter index 8fa9a59..0dd4f35 100755 --- a/Greeter/scripts/start-zshell-greeter +++ b/Greeter/scripts/start-zshell-greeter @@ -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 diff --git a/Greeter/scripts/zshell-hyprland.conf b/Greeter/scripts/zshell-hyprland.conf deleted file mode 100644 index f452209..0000000 --- a/Greeter/scripts/zshell-hyprland.conf +++ /dev/null @@ -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' diff --git a/Greeter/scripts/zshell-hyprland.lua b/Greeter/scripts/zshell-hyprland.lua new file mode 100644 index 0000000..ef94468 --- /dev/null +++ b/Greeter/scripts/zshell-hyprland.lua @@ -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) diff --git a/scripts/prepare-greeter.sh b/scripts/prepare-greeter.sh index 7b6fc72..ac339be 100755 --- a/scripts/prepare-greeter.sh +++ b/scripts/prepare-greeter.sh @@ -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"