Explorar o código

autostart x.org on tty1

Fabian Peter Hammerle %!s(int64=6) %!d(string=hai) anos
pai
achega
897804bd3a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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