1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

greeter: lua for hypr fallback

This commit is contained in:
bbedward
2026-07-30 14:31:39 -04:00
parent b1b7aa7aa2
commit e771e3b675
+12 -8
View File
@@ -386,16 +386,20 @@ end)
HYPRLAND_LUA_EOF HYPRLAND_LUA_EOF
COMPOSITOR_CONFIG="$TEMP_CONFIG" COMPOSITOR_CONFIG="$TEMP_CONFIG"
elif [[ -z "$COMPOSITOR_CONFIG" ]]; then elif [[ -z "$COMPOSITOR_CONFIG" ]]; then
TEMP_CONFIG=$(mktemp) TEMP_CONFIG=$(mktemp --suffix=.lua)
cat > "$TEMP_CONFIG" << HYPRLAND_EOF cat > "$TEMP_CONFIG" << HYPRLAND_LUA_EOF
env = DMS_RUN_GREETER,1 hl.env("DMS_RUN_GREETER", "1")
misc { hl.config({
disable_hyprland_logo = true misc = {
} disable_hyprland_logo = true,
},
})
exec-once = sh -c "$QS_CMD; hyprctl dispatch exit" hl.on("hyprland.start", function()
HYPRLAND_EOF hl.exec_cmd('sh -c "$QS_CMD; hyprctl dispatch exit"')
end)
HYPRLAND_LUA_EOF
COMPOSITOR_CONFIG="$TEMP_CONFIG" COMPOSITOR_CONFIG="$TEMP_CONFIG"
else else
TEMP_CONFIG=$(mktemp) TEMP_CONFIG=$(mktemp)