Browse Source

autostart x.org on tty1

Fabian Peter Hammerle 5 năm trước cách đây
mục cha
commit
897804bd3a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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