1.Dd $Mdocdate: December 26 2017 $ 2.Dt RWX 1 3.Os 4.Sh NAME 5.Nm rwx 6.Nd run a command while X is running 7.Sh SYNOPSIS 8.Nm rwx 9.Ar command ...10.Sh DESCRIPTION11The12.Nm13utility opens a connection to the current Xorg14.Ev DISPLAY15and keeps it open, afterwards it invokes the specified16.Ar command17thereby binding it to the lifetime of a specific display/server.18If the server does a reset before the command terminates the command19receives a SIGHUP.20.Pp21The main purpose of22.Nm23is invoking commands from your24.Pa .xsession25or26.Pa .xinitrc27startup file and making sure that these commands terminate when your X28server does.29.Sh ENVIRONMENT30.Bl -tag -width DISPLAY31.It Ev DISPLAY32.br33Name of the X display to connect to.34.El35.Sh EXIT STATUS36If the specfied37.Ar command38terminates before the X server,39.Nm40exits with the exit status of the spawned command.41If the X server does a reset before the command completes42.Nm43exits with the exit status zero.44.Pp45If an error occurs, e.g. if46.Nm47couldn't open a connection to the current48.Ev DISPLAY49or if the given50.Ar command51couldn't be invoked52.Nm53exits with a non-zero exit status.54.Sh EXAMPLES55An example for a program that is usally invoked by the startup files56mentioned above is57.Xr redshift 158to start it using59.Nm60you would add the following to your startup file:61.Pp62.Dl rwx redshift -l 23.42:13.37 >/dev/null &63.Sh AUTHORS64.An Sören Tempel Aq Mt soeren@soeren-tempel.net65.Sh BUGS66This utility is a horrible hack.