Autox

From Void Linux Wiki
Jump to: navigation, search

Related articles

autox is a utility that sets up a specified user's environment and then launches the xinit application. This greatly simplifies the process of booting to X11.

Installation

Install the autox package.

Create a conf file in /etc/sv/autox and supply the necessary variables:

 USER=your_x11_user
 # tty7 is the default
 TTY=tty7

Before enabling the service, make sure the user you specified has a .xinitrc that execs an application. For example:

 #!/bin/sh
 xset -dpms s off
 xsetroot -solid black
 xhost local:+
 export QT_XFT=1
 exec kodi

Finally, enable the runit service:

 ln -s /etc/sv/autox /var/service/