diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-05-18 11:53:52 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-05-18 11:56:03 +0200 |
commit | 28480f1134476baef7933c1c452bdd8fe60bca15 (patch) | |
tree | aaadadfe367ee885f3b470c1578d4472b8f52066 /.zprofile | |
parent | 1651bab9177c4dfaba7aa9f06347797a84ed60a7 (diff) | |
download | dotfiles-28480f1134476baef7933c1c452bdd8fe60bca15.tar.gz dotfiles-28480f1134476baef7933c1c452bdd8fe60bca15.tar.xz |
zprofile: Add Xorg support
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +if type startx &>/dev/null && ! pgrep X >/dev/null; then + [[ -z $TTY ]] && TTY=$(tty) + TTY=${TTY#/dev/} + + if [[ $TTY = tty1 ]]; then + startx | systemd-cat -t Xorg-session + exit + fi +fi + if tty -s && [[ -z $DISPLAY ]]; then if type tmux &>/dev/null; then if [[ -z "$TMUX" ]]; then |