mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 17:40:42 +00:00
Add greetd DM
This commit is contained in:
parent
70800ff0ab
commit
6bbebb3cd2
5 changed files with 104 additions and 8 deletions
|
@ -9,12 +9,12 @@ if [ -d "$HOME/.local/bin" ]; then
|
|||
PATH+=":${$(find -L ~/.local/bin -type d | tr '\n' ':')%%:}"
|
||||
fi
|
||||
|
||||
# I'm using a greeter now, so the below is disabled.
|
||||
# Start graphical session automatically on tty1 if Hyprland or startx is available
|
||||
if [ "$(tty)" = "/dev/tty1" ] && [ "$UID" != 0 ]; then
|
||||
if command -v Hyprland >/dev/null; then
|
||||
! pidof -s Hyprland >/dev/null 2>&1 && Hyprland
|
||||
elif command -v startx >/dev/null; then
|
||||
! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
||||
fi
|
||||
fi
|
||||
|
||||
#if [ "$(tty)" = "/dev/tty1" ] && [ "$UID" != 0 ]; then
|
||||
# if command -v Hyprland >/dev/null; then
|
||||
# ! pidof -s Hyprland >/dev/null 2>&1 && Hyprland
|
||||
# elif command -v startx >/dev/null; then
|
||||
# ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
||||
# fi
|
||||
#fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue