mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 18:04:34 +00:00
Run hyprland from profile (without wrapper script)
This commit is contained in:
parent
deee4df653
commit
54f1c40d61
|
@ -12,7 +12,7 @@ fi
|
||||||
# Start graphical session automatically on tty1 if Hyprland or startx is available
|
# Start graphical session automatically on tty1 if Hyprland or startx is available
|
||||||
if [ "$(tty)" = "/dev/tty1" ] && [ "$UID" != 0 ]; then
|
if [ "$(tty)" = "/dev/tty1" ] && [ "$UID" != 0 ]; then
|
||||||
if command -v Hyprland >/dev/null; then
|
if command -v Hyprland >/dev/null; then
|
||||||
! pidof -s Hyprland >/dev/null 2>&1 && launch-hypr
|
! pidof -s Hyprland >/dev/null 2>&1 && Hyprland
|
||||||
elif command -v startx >/dev/null; then
|
elif command -v startx >/dev/null; then
|
||||||
! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue