XtoW-20130802-3
[git/cygwin-packages/XtoW.git] / startxtow
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 python, 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.
8 DIMENSIONS=`python -c 'from ctypes import *; print cdll.user32.GetSystemMetrics(78), cdll.user32.GetSystemMetrics(79)'`
9
10 CONFFILE=`mktemp`
11 cat >$CONFFILE <<END
12 Section "Device"
13 Identifier "Device0"
14 VideoRam 16384
15 Driver "dummy"
16 EndSection
17
18 Section "Screen"
19 Identifier "Screen0"
20 Device "Device0"
21 SubSection "Display"
22 Virtual $DIMENSIONS
23 EndSubSection
24 EndSection
25 END
26
27 XINITRC=`mktemp`
28 cat >$XINITRC <<END
29 xwinclip &
30 urxvt -fn fixed -depth 32 -bg rgba:0000/0000/0000/4444 &
31 xtow &
32 xwin-xdg-menu
33 END
34 chmod +x $XINITRC
35
36 xinit $XINITRC -- /usr/bin/Xorg -displayfd 3 -config $CONFFILE
37
38 rm $CONFFILE
39 rm $XINITRC
This page took 0.033884 seconds and 5 git commands to generate.