Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
请CC求教xinitrc文件
View previous topic :: View next topic  
Author Message
放纵



Joined: 03 Nov 2006
Posts: 62

小企鹅: 1924

PostPosted: 2008-Feb-22 Fri, pm5:07 Reply with quote
 Post subject: 请CC求教xinitrc文件

XINITRC文件内容如下:
#!/bin/sh
#
# Very simple session manager for matchbox tools
#

/usr/local/bin/fcitx &

test -e /proc/power_key_off && echo "0" >/proc/power_key_off 2>/dev/null

test -f /etc/profile && . /etc/profile

# Uncomment below to enable parsing of debian menu entrys
# export MB_USE_DEB_MENUS=1

if [ -e $HOME/.matchbox/session ]
then
exec $HOME/.matchbox/session
fi

if [ -e /etc/matchbox/session ]
then
exec /etc/matchbox/session
fi

if [ ! -d $HOME/Choices/common ]; then
mkdir -p $HOME/Choices/common
fi

if [ -f $HOME/Choices/lightnpower.cfg -a -e /usr/bin/lightnpower.py ]; then
lightnpower.py --loadandquit
fi

if [ -f /usr/bin/gconfd-2 ]; then
/usr/bin/gconfd-2 15 &
fi

if [ -e /proc/deviceinfo/product ]; then
MODEL=`cat /proc/deviceinfo/product`
else
MODEL=unknown
fi
echo 'MODEL:'$MODEL
case "$MODEL" in
SL-C860|SL-C760|SL-C750|SL-7500|SL-C700)
test -f /etc/X11/kb/corgi.xmodmap && xmodmap /etc/X11/kb/corgi.xmodmap
;;
SL-6000)
test -f /etc/X11/kb/tosa.xmodmap && xmodmap /etc/X11/kb/tosa.xmodmap
;;
SL-C1000|SL-C3000|SL-C3100|SL-C3200)
test -f /etc/X11/kb/akita.xmodmap && xmodmap /etc/X11/kb/akita.xmodmap
;;
*)
cat /proc/cpuinfo | grep 'Sharp-Collie' 2>/dev/null >/dev/null && test -f /etc/X11/kb/collie.xmodmap && xmodmap /etc/X11/kb/collie.xmodmap
;;
esac

test -f /etc/X11/kb/userdefined.xmodmap && xmodmap /etc/X11/kb/userdefined.xmodmap
test -f /usr/bin/chkhinge && /usr/bin/chkhinge 2>/dev/null >/dev/null

openbox 2>/dev/null >/dev/null &

touch /tmp/.mb-restart

while [ -f /tmp/.mb-restart ];
do

rm -f /tmp/.mb-restart

if [ -f $HOME/.matchbox/mb-desktop-background ]; then
MBBGND=`cat $HOME/.matchbox/mb-desktop-background`
else
MBBGND=""
fi

if [ -f $HOME/.matchbox/mb-panel-orientation ]; then
MBORIENT=`cat $HOME/.matchbox/mb-panel-orientation`
else
MBORIENT="--orientation south"
fi

/usr/X11R6/bin/xset s 0

#eval "matchbox-desktop $MBBGND" 2>/dev/null >/dev/null &
eval "rox --pinboard=MYPINBOARD" &
eval "matchbox-panel --no-flip $MBORIENT" 2>/dev/null >/dev/null

for PID in `ps x | grep "mb-applet-*" | grep -v "grep" | sed 's/^ *//' | cut -f1 -d' ' -`
do
kill $PID 2>/dev/null >/dev/null
done

done

GCONF2_PID=`pidof gconfd-2`
if [ ! "$GCONF2_PID" = "" ]; then
kill $GCONF2_PID
fi

test -e /proc/power_key_off && echo "1" >/proc/power_key_off 2>/dev/null

_________________
我不是你们想象中的那么完美那么坚强,金钱和美女就足以把我征服!
Back to top
View user's profile Send private message AIM Address398474029
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2008-Feb-22 Fri, pm7:06 Reply with quote
 Post subject:

把语句
/usr/X11R6/bin/xset s 0
移到
openbox 2>/dev/null >/dev/null &
前面试试

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
放纵



Joined: 03 Nov 2006
Posts: 62

小企鹅: 1924

PostPosted: 2008-Feb-27 Wed, pm3:58 Reply with quote
 Post subject:

好,我试试,,3Q!
_________________
我不是你们想象中的那么完美那么坚强,金钱和美女就足以把我征服!
Back to top
View user's profile Send private message AIM Address398474029
放纵



Joined: 03 Nov 2006
Posts: 62

小企鹅: 1924

PostPosted: 2008-Feb-27 Wed, pm3:59 Reply with quote
 Post subject:

好,我试试,,3Q!
_________________
我不是你们想象中的那么完美那么坚强,金钱和美女就足以把我征服!
Back to top
View user's profile Send private message AIM Address398474029
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional