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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user