summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-12-06 21:09:01 +0100
committerPatrick Simianer <p@simianer.de>2016-12-06 21:09:01 +0100
commitee0d022f828dbc61b2f5a484d0e0ba5e6330488e (patch)
treebf702b9197bf8e9d5c54927d540e82e889384905
parentca395cd6c0cfd58dddf8e368e5f0ec78807f5029 (diff)
zsh: start X
-rw-r--r--zsh/.zlogin5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/.zlogin b/zsh/.zlogin
new file mode 100644
index 0000000..a6fa972
--- /dev/null
+++ b/zsh/.zlogin
@@ -0,0 +1,5 @@
+if [[ -z $DISPLAY ]] && (( $EUID != 0 )) {
+ [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) &&
+ startx 1>/tmp/xsession-errors 2>&1 &
+}
+