mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 11:47:09 -04:00
fix tty check
This commit is contained in:
parent
710b820ed2
commit
e67910c4f4
|
@ -33,4 +33,4 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
|
||||||
[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && [ -x "$(command -v shortcuts)" ] && shortcuts
|
[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && [ -x "$(command -v shortcuts)" ] && shortcuts
|
||||||
|
|
||||||
# Automatically start X session inside tty1
|
# Automatically start X session inside tty1
|
||||||
[ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ] && exec startx
|
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx
|
||||||
|
|
Loading…
Reference in a new issue