summaryrefslogtreecommitdiff
path: root/src/run-metacity.sh
blob: 9f150c46f91c6bc909f49e733accd2320bd57e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
if test -z "$SCREENS"; then
  SCREENS=2
fi

if test "$DEBUG" = none; then
  DEBUG=
elif test -z "$DEBUG"; then
  DEBUG=gdb
fi

if test -z "$CLIENTS"; then
  CLIENTS=0
fi

Xnest :1 -scrns $SCREENS -geometry 640x480 -bw 15 &
usleep 50000

if test $CLIENTS != 0; then
  for I in `seq 1 $CLIENTS`; do
    DISPLAY=:1 xterm -geometry 25x15 &
  done
fi

DISPLAY=:1 xsetroot -solid royalblue3
METACITY_UISLAVE_DIR=./uislave DISPLAY=:1 unst libtool --mode=execute $DEBUG ./metacity
killall Xnest