Hyprland: try Hyperland before sx
This commit is contained in:
parent
7a4e0e7e61
commit
6181681134
@ -27,5 +27,11 @@ done
|
|||||||
|
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
# start X at login
|
# start X or Hyprland at login
|
||||||
[[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && which /bin/sx > /dev/null && exec sx ~/.xsession
|
if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then
|
||||||
|
if which /usr/bin/Hyprland > /dev/null; then
|
||||||
|
exec /usr/bin/Hyprland
|
||||||
|
elif which /usr/bin/sx > /dev/null; then
|
||||||
|
exec /usr/bin/sx ~/.xsession
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
@ -1,6 +1 @@
|
|||||||
# start X at login on first console or otherwise source ~/.profile
|
source ~/.profile
|
||||||
if [[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && which /bin/sx > /dev/null; then
|
|
||||||
exec sx ~/.xsession
|
|
||||||
else
|
|
||||||
source ~/.profile
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user