Browse Source

autostart x.org on tty1

Fabian Peter Hammerle 5 years ago
parent
commit
897804bd3a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rc.xsh

+ 3 - 0
rc.xsh

@@ -119,4 +119,7 @@ aliases['g'] = ['git']
 aliases['ll'] = ['ls', '-l', '--all', '--indicator-style=slash',
                  '--human-readable', '--time-style=long-iso', '--color=auto']
 
+if shutil.which('startx') and $(tty).rstrip() == '/dev/tty1':
+    startx
+
 # vim: filetype=python