mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
greeter: simplify start-hyprland check
This commit is contained in:
@@ -186,13 +186,11 @@ exec = sh -c "$QS_CMD; hyprctl dispatch exit"
|
|||||||
HYPRLAND_EOF
|
HYPRLAND_EOF
|
||||||
COMPOSITOR_CONFIG="$TEMP_CONFIG"
|
COMPOSITOR_CONFIG="$TEMP_CONFIG"
|
||||||
fi
|
fi
|
||||||
CURRENT_VERSION=$(hyprland --version | grep "Tag:" | awk '{print $2}' | tr -d 'v,')
|
if command -v start-hyprland >/dev/null 2>&1; then
|
||||||
MINIMUM_VERSION="0.53.0"
|
exec start-hyprland -- --config "$COMPOSITOR_CONFIG"
|
||||||
if [ "$(printf '%s\n%s' "$MINIMUM_VERSION" "$CURRENT_VERSION" | sort -V | head -n1)" = "$MINIMUM_VERSION" ]; then
|
else
|
||||||
exec start-hyprland -- --config "$COMPOSITOR_CONFIG"
|
exec Hyprland -c "$COMPOSITOR_CONFIG"
|
||||||
else
|
fi
|
||||||
exec Hyprland -c "$COMPOSITOR_CONFIG"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
sway)
|
sway)
|
||||||
|
|||||||
@@ -4,11 +4,7 @@ export XDG_SESSION_TYPE=wayland
|
|||||||
export QT_QPA_PLATFORM=wayland
|
export QT_QPA_PLATFORM=wayland
|
||||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||||
export EGL_PLATFORM=gbm
|
export EGL_PLATFORM=gbm
|
||||||
CURRENT_VERSION=$(hyprland --version | grep "Tag:" | awk '{print $2}' | tr -d 'v,')
|
if command -v start-hyprland >/dev/null 2>&1; then
|
||||||
|
|
||||||
MINIMUM_VERSION="0.53.0"
|
|
||||||
|
|
||||||
if [ "$(printf '%s\n%s' "$MINIMUM_VERSION" "$CURRENT_VERSION" | sort -V | head -n1)" = "$MINIMUM_VERSION" ]; then
|
|
||||||
exec start-hyprland -- -c /etc/greetd/dms-hypr.conf
|
exec start-hyprland -- -c /etc/greetd/dms-hypr.conf
|
||||||
else
|
else
|
||||||
exec Hyprland -c /etc/greetd/dms-hypr.conf
|
exec Hyprland -c /etc/greetd/dms-hypr.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user