Fix x11 autostart, fucking borked tmux.

This commit is contained in:
CronyAkatsuki 2024-01-08 16:14:44 +01:00
parent c2251eab55
commit 5d5c97b993

View File

@ -7,8 +7,9 @@ export PATH
export SXHKD_SHELL='/bin/sh' export SXHKD_SHELL='/bin/sh'
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx $HOME/.config/X11/xinitrc &> /dev/null
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-dwl &> /dev/null
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-hyprland &> /dev/null
eval "$(ssh-agent -s)" &> /dev/null eval "$(ssh-agent -s)" &> /dev/null
if [[ -z $DISPLAY ]] && (( $EUID != 0 )) {
[[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} == 1 )) &&
exec startx $HOME/.config/X11/xinitrc 1> ~/.local/share/logs/xsession-errors 2>&1
}