feat: greeter support hyprland lua
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
@@ -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,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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user