summaryrefslogtreecommitdiff
path: root/x-ui.sh
diff options
context:
space:
mode:
authorMiculcy Brian <morlenxus@gmx.net>2010-08-19 14:20:28 +0000
committerMiculcy Brian <morlenxus@gmx.net>2010-08-19 14:20:28 +0000
commit7544376cbd2a344a13d50c38f39d9e56aea02c32 (patch)
tree6cf8bc8f4db5fffd61c3fc32301d0fee79b0e638 /x-ui.sh
parent604713fcacee1c54b199c95b726bf842c2a61ac8 (diff)
Allow to have fake xinerama screens.
e.g.: ./x-ui.sh -x 480x400+0+0 -x 480x400+480+0 --screen=960x400 SVN revision: 51393
Diffstat (limited to 'x-ui.sh')
-rwxr-xr-xx-ui.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 81822b9d2..d686bbae4 100755
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -23,6 +23,8 @@ where options are:
23 -c, --host-cursor Uses host-cursor, otherwise uses Xephyr's. 23 -c, --host-cursor Uses host-cursor, otherwise uses Xephyr's.
24 -d, --dpi=NUMBER states the dots-per-inch to be used. 24 -d, --dpi=NUMBER states the dots-per-inch to be used.
25 -s, --screen=SPEC WIDTHxHEIGHT[xDEPTH] to be used. 25 -s, --screen=SPEC WIDTHxHEIGHT[xDEPTH] to be used.
26 -x, --fxs=WxH+X+Y Fake xinerama screen resolution
27 (can be applied repeatedly)
26 -p, --profile=NAME Enlightenment profile name. 28 -p, --profile=NAME Enlightenment profile name.
27 -e, --empty-home[=PATH] Run with \$HOME being a new, empty directory at /tmp 29 -e, --empty-home[=PATH] Run with \$HOME being a new, empty directory at /tmp
28 30
@@ -111,6 +113,13 @@ while [ $# -gt 0 ]; do
111 fi 113 fi
112 SCREEN=$value 114 SCREEN=$value
113 ;; 115 ;;
116 -x|-fxs|--fxs)
117 if [ -z "$value" ]; then
118 value=$1
119 shift
120 fi
121 FAKE_XINERAMA_SCREEN="$FAKE_XINERAMA_SCREEN $value"
122 ;;
114 -p|-profile|--profile) 123 -p|-profile|--profile)
115 if [ -z "$value" ]; then 124 if [ -z "$value" ]; then
116 value=$1 125 value=$1
@@ -168,6 +177,12 @@ if [ $debuggers -gt 1 ]; then
168 echo "WARNING: more than one debugger specified. Using $DEBUGGER" 1>&2 177 echo "WARNING: more than one debugger specified. Using $DEBUGGER" 1>&2
169fi 178fi
170 179
180if [ ! -z "$FAKE_XINERAMA_SCREEN" ]; then
181 for fxsm in $FAKE_XINERAMA_SCREEN; do
182 E_OPTIONS="$E_OPTIONS -fake-xinerama-screen $fxsm"
183 done
184fi
185
171if [ ! -z "$TEST_HOME" ]; then 186if [ ! -z "$TEST_HOME" ]; then
172 if [ "${TEST_HOME#/tmp/}" != "$TEST_HOME" ]; then 187 if [ "${TEST_HOME#/tmp/}" != "$TEST_HOME" ]; then
173 # just delete if inside /tmp 188 # just delete if inside /tmp
@@ -184,6 +199,7 @@ Using:
184 199
185 DPI=$DPI 200 DPI=$DPI
186 SCREEN=$SCREEN 201 SCREEN=$SCREEN
202 FAKE_XINERAMA_SCREEN=$FAKE_XINERAMA_SCREEN
187 PROFILE=$PROFILE 203 PROFILE=$PROFILE
188 HOST_CURSOR=$HOST_CURSOR 204 HOST_CURSOR=$HOST_CURSOR
189 DEBUGGER=$DEBUGGER 205 DEBUGGER=$DEBUGGER
@@ -205,7 +221,5 @@ enlightenment_start \
205 -no-precache \ 221 -no-precache \
206 -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it \ 222 -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it \
207 -profile $PROFILE \ 223 -profile $PROFILE \
224 $E_OPTIONS \
208 $DEBUGGER 225 $DEBUGGER
209
210#-fake-xinerama-screen 480x400+0+0 \
211#$-fake-xinerama-screen 480x400+480+0