Created
March 22, 2012 06:10
-
-
Save shellexy/2156599 to your computer and use it in GitHub Desktop.
启动 Xephyr 来测试(可能挂掉 X 的)程序
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
SIZE=1270x710 | |
unset SESSION_MANAGER XDG_SESSION_COOKIE DBUS_SESSION_BUS_ADDRESS DESKTOP_SESSION | |
#Xephyr -screen 1270x715 -ac +bs +xinerama -fakexa -dpi 110 :3 & | |
Xephyr -zaphod -screen $SIZE -ac +bs +xinerama -dpi 110 :3 & | |
sleep 1s | |
export DISPLAY=:3 | |
xrdb < ~/.Xresources | |
eval `dbus-launch --sh-syntax` | |
export XMODIFIERS=@im=fcitx QT_IM_MODULE=xim GTK_IM_MODULE=xim ; fcitx & sleep 1 | |
#export XMODIFIERS=@im=xsunpinyin QT_IM_MODULE=xim GTK_IM_MODULE=xim ; xsunpinyin & sleep 1 | |
#${@:-rxvt} & | |
eval ${@:-'rxvt & metacity -c & gnome-settings-daemon &'} & | |
{ sleep 2 ; xrandr -s $SIZE ; sleep 2 ; xrandr -s $SIZE ; } & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment