- # Now combine the last two displays to a multi-monitor display using Xdmx
- my $first = pop @displays;
- my $second = pop @displays;
-
- # make sure this display isn’t in use yet
- $displaynum++ while -e ($x_socketpath . $displaynum);
- say 'starting xdmx on display :' . $displaynum;
-
- my $multidpy = ":$displaynum";
- my $socket = fork_xserver($displaynum, 'Xdmx', '+xinerama', '-xinput',
- 'local', '-display', $first, '-display', $second, '-ac', $multidpy);
- wait_for_x([ $socket ]);
-
- return \@displays, $multidpy;