Allow to have fake xinerama screens.
e.g.: ./x-ui.sh -x 480x400+0+0 -x 480x400+480+0 --screen=960x400 SVN revision: 51393
This commit is contained in:
parent
604713fcac
commit
7544376cbd
20
x-ui.sh
20
x-ui.sh
|
@ -23,6 +23,8 @@ where options are:
|
||||||
-c, --host-cursor Uses host-cursor, otherwise uses Xephyr's.
|
-c, --host-cursor Uses host-cursor, otherwise uses Xephyr's.
|
||||||
-d, --dpi=NUMBER states the dots-per-inch to be used.
|
-d, --dpi=NUMBER states the dots-per-inch to be used.
|
||||||
-s, --screen=SPEC WIDTHxHEIGHT[xDEPTH] to be used.
|
-s, --screen=SPEC WIDTHxHEIGHT[xDEPTH] to be used.
|
||||||
|
-x, --fxs=WxH+X+Y Fake xinerama screen resolution
|
||||||
|
(can be applied repeatedly)
|
||||||
-p, --profile=NAME Enlightenment profile name.
|
-p, --profile=NAME Enlightenment profile name.
|
||||||
-e, --empty-home[=PATH] Run with \$HOME being a new, empty directory at /tmp
|
-e, --empty-home[=PATH] Run with \$HOME being a new, empty directory at /tmp
|
||||||
|
|
||||||
|
@ -111,6 +113,13 @@ while [ $# -gt 0 ]; do
|
||||||
fi
|
fi
|
||||||
SCREEN=$value
|
SCREEN=$value
|
||||||
;;
|
;;
|
||||||
|
-x|-fxs|--fxs)
|
||||||
|
if [ -z "$value" ]; then
|
||||||
|
value=$1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
FAKE_XINERAMA_SCREEN="$FAKE_XINERAMA_SCREEN $value"
|
||||||
|
;;
|
||||||
-p|-profile|--profile)
|
-p|-profile|--profile)
|
||||||
if [ -z "$value" ]; then
|
if [ -z "$value" ]; then
|
||||||
value=$1
|
value=$1
|
||||||
|
@ -168,6 +177,12 @@ if [ $debuggers -gt 1 ]; then
|
||||||
echo "WARNING: more than one debugger specified. Using $DEBUGGER" 1>&2
|
echo "WARNING: more than one debugger specified. Using $DEBUGGER" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$FAKE_XINERAMA_SCREEN" ]; then
|
||||||
|
for fxsm in $FAKE_XINERAMA_SCREEN; do
|
||||||
|
E_OPTIONS="$E_OPTIONS -fake-xinerama-screen $fxsm"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -z "$TEST_HOME" ]; then
|
if [ ! -z "$TEST_HOME" ]; then
|
||||||
if [ "${TEST_HOME#/tmp/}" != "$TEST_HOME" ]; then
|
if [ "${TEST_HOME#/tmp/}" != "$TEST_HOME" ]; then
|
||||||
# just delete if inside /tmp
|
# just delete if inside /tmp
|
||||||
|
@ -184,6 +199,7 @@ Using:
|
||||||
|
|
||||||
DPI=$DPI
|
DPI=$DPI
|
||||||
SCREEN=$SCREEN
|
SCREEN=$SCREEN
|
||||||
|
FAKE_XINERAMA_SCREEN=$FAKE_XINERAMA_SCREEN
|
||||||
PROFILE=$PROFILE
|
PROFILE=$PROFILE
|
||||||
HOST_CURSOR=$HOST_CURSOR
|
HOST_CURSOR=$HOST_CURSOR
|
||||||
DEBUGGER=$DEBUGGER
|
DEBUGGER=$DEBUGGER
|
||||||
|
@ -205,7 +221,5 @@ enlightenment_start \
|
||||||
-no-precache \
|
-no-precache \
|
||||||
-i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it \
|
-i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it \
|
||||||
-profile $PROFILE \
|
-profile $PROFILE \
|
||||||
|
$E_OPTIONS \
|
||||||
$DEBUGGER
|
$DEBUGGER
|
||||||
|
|
||||||
#-fake-xinerama-screen 480x400+0+0 \
|
|
||||||
#$-fake-xinerama-screen 480x400+480+0
|
|
||||||
|
|
Loading…
Reference in New Issue