Updated dependencies
[git/cygwin-packages/XtoW.git] / startxtow
CommitLineData
2284e316
JT
1#!/bin/sh
2#
3# What I hope is a temporary script to do the things needed to use XtoW
4#
5
6# this is rather round the houses, and introduces a dependency on perl-Win32-GUI, but is a lot quicker than
7# adding RANDR 1.2 support to xf86-video-dummy and then using RANDR to resize the display when XtoW starts.
8DIMENSIONS=`perl -m'Win32::GUI' -e'print Win32::GUI::GetSystemMetrics(78), " ", Win32::GUI::GetSystemMetrics(79)'`
9
10CONFFILE=`mktemp`
11cat >$CONFFILE <<END
12Section "Device"
13 Identifier "Device0"
14 VideoRam 16384
15 Driver "dummy"
16EndSection
17
18Section "Screen"
19 Identifier "Screen0"
20 Device "Device0"
21 SubSection "Display"
22 Virtual $DIMENSIONS
23 EndSubSection
24EndSection
25END
26
27XINITRC=`mktemp`
28cat >$XINITRC <<END
29xwinclip &
30urxvt -fn fixed -depth 32 -bg rgba:0000/0000/0000/4444 &
31xtow
32END
33chmod +x $XINITRC
34
35xinit $XINITRC -- /usr/bin/Xorg -displayfd 3 -config $CONFFILE
36
37rm $CONFFILE
38rm $XINITRC
This page took 0.020289 seconds and 5 git commands to generate.