Sfoglia il codice sorgente

autostart x.org on tty1

Fabian Peter Hammerle 6 anni fa
parent
commit
897804bd3a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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