diff options
author | pks <pks@pks.rocks> | 2020-11-10 10:42:53 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2020-11-10 10:42:53 +0100 |
commit | ec13252788ca52fbcd0855804b8c8c48634ae96f (patch) | |
tree | 7a12c5b7392795d3bba4e37f0aadaf7c8914a473 | |
parent | 22b9cb24c898080dc5ed60f639dc93b065123a64 (diff) |
zlogin: always use vlock and tty1
-rw-r--r-- | zsh/.zlogin | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/zsh/.zlogin b/zsh/.zlogin index c25f783..8970617 100644 --- a/zsh/.zlogin +++ b/zsh/.zlogin @@ -1,15 +1,14 @@ -if [[ $(uname) == "Linux" ]]; then # on linux - if [ -z $SSH_CLIENT ]; then # not via ssh - if [[ -z $DISPLAY ]]; then # not in X - if [[ $TTY == "/dev/tty1" ]]; then # tty1 - if [[ -z $(pidof X) ]]; then # no X running - startx 1>/tmp/xsession-errors 2>&1 & # startx - if [[ -x $(which vlock) ]]; then # if have vlock - vlock # run it +if [[ $(uname) == "Linux" ]]; then # on linux + if [ -z $SSH_CLIENT ]; then # not via ssh + if [[ -z $DISPLAY ]]; then # not in X + if [[ $TTY == "/dev/tty1" ]]; then # tty1 + if [[ -z $(pidof X) ]]; then # no X running + startx -- vt1 1>/var/log/Xsession.log 2>&1 & # startx (on tty1) + if [[ -x $(which vlock) ]]; then # if have vlock ... + vlock # ... run it fi fi fi fi fi fi - |