On Wed, Nov 13, 2024 at 06:33:42AM +0000, stefan11111 wrote: > On 2024-11-13 00:02, Storkman wrote: > > On Tue, Nov 12, 2024 at 08:07:45PM +0000, stefan11111 wrote: > >> Not really related to what was discussed earlier, > >> but I thought I might find someone who can help me with this here. > >> > >> I have this script for starting Xfbdev and running my .xinitrc: > >> > >> ``` > >> #!/bin/sh > >> > >> export DISPLAY=${DISPLAY:-:0} > >> trap "$HOME/.xinitrc" USR1 > >> > >> ( > >> trap '' USR1 > >> > >> exec /usr/bin/Xfbdev -screen 1920x1080 :0 vt1 > >> ) & > >> > >> wait > >> ``` > >> > >> This script works fine, except when I kill dwm with alt + q. > >> Instead of killing the X server along with dwm, the X server freezes > >> and > >> I have to telnet in > >> from another device to kill it, by running pkill Xfbdev. > >> > >> Does anyone know how to improve the above script to get it to kill X > >> after I kill dwm? > > > > Well, that's what xinit is for, isn't it? > > Yes, but I want to have 2 scripts that launch X on my system. > xinit launches /usr/bin/X, which is symlinked to /usr/bin/Xorg. > The other script launches /usr/bin/Xfbdev. > > Do you have another idea how to get 2 scripts or programs for launching > these different X servers?
Check out the man page for xinit. You can specify the server and options to it on the command line. -- Storkman