XtoW-20170106-1
[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
54d3ae94 6# this is rather round the houses, and introduces a dependency on python, but is a lot quicker than
2284e316 7# adding RANDR 1.2 support to xf86-video-dummy and then using RANDR to resize the display when XtoW starts.
fbadf099 8DIMENSIONS=`python -c 'import ctypes; h = ctypes.CDLL("user32.dll") ; print h.GetSystemMetrics(78), h.GetSystemMetrics(79)'`
2284e316
JT
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 &
54d3ae94
JT
31xtow &
32xwin-xdg-menu
2284e316
JT
33END
34chmod +x $XINITRC
35
36xinit $XINITRC -- /usr/bin/Xorg -displayfd 3 -config $CONFFILE
37
38rm $CONFFILE
39rm $XINITRC
This page took 0.022259 seconds and 5 git commands to generate.