瀏覽代碼

autostart x.org on tty1

Fabian Peter Hammerle 5 年之前
父節點
當前提交
897804bd3a
共有 1 個文件被更改,包括 3 次插入0 次删除
  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