|
在 Fedora Core 5 上体验 Aiglx 和 Xgl & Compiz
|
|
来源:http://www.unix5.com 作者:riechelr_hl 发布时间:2007-08-17
|
|
DISPLAY=:1 $wmnow & DISPLAY=:1 /etc/X11/xinit/xinitrc.d/xinput.sh & else DISPLAY=:1 $wmnow & DISPLAY=:1 /etc/X11/xinit/xinitrc.d/xinput.sh & fi } switchDesktop(){ echo -e "\tWhich Desktop you want to use? Type in the name: \n" read TargetDesktop [ ! -x /usr/bin/switchdesk ] && NotFOUND switchdesk install "The Desktop Switcher" switchdesk $TargetDesktop } prog="$0" wmnow="xterm" currentWM perl -w -e 'print "=" x80 ;print "\n"' echo -e "\tXstarter helps you to choose the window manager you want to run" echo -e "\tUse it to do:" echo -e "\t\t<1>\tstart your default window manager normally" echo -e "\t\t<2>\tswitch to other window manager then start X" echo -e "\t\t<3>\tstart Xgl & compiz on your default window manager" echo -e "\t\t<4>\tswitch window manager before starting Xgl & compiz" perl -w -e 'print "=" x80 ;print "\n"' echo -e "\tbefore running this, make sure /etc/sudoers modified accordingly" perl -w -e 'print "="x80;print "\n"' echo -e "\t\tyour current window manager is $WMnow\n" echo -e "\t\twhat to do next? please type in 1, 2, 3, or 4\n" echo -e "\t\tpress any other key to quit\n" read TODO case "$TODO" in 1) echo -e"\tStarting current default window manager\n" postXgl startX ;; 2) echo -e "\tRunning the Desktop Switcher to change window manager\n" switchDesktop || exit 1 postXgl startX ;; 3) echo -e "\tStarting Xgl & Compiz on default window manager\n" preXgl startXgl ;; 4) echo -e "\tStarting Xgl & Compiz after switch window manager\n" switchDesktop || exit 1 preXgl currentWM startXgl ;; *) echo -e "\tQuit now, legitimate inputs are ordinal number 1 to 4\n" exit 1 ;; esac
使其具有执行权限 chmod +x /usr/local/bin/Xstarter
脚本使用方法: 修改/etc/inittab,将initdefault设定为3,绕过gdm,启动进入控制台; 运行Xstarter,转换桌面管理器,启动X、Xgl;转换时,只需重启X,无须重启系统; 运行Xstarter有四个选项: ⑴以默认桌面启动X; ⑵转换桌面,然后启动X; ⑶以默认桌面启动Xgl; ⑷转换桌面,然后启动Xgl; 按Shift + Backspace退出
请参考提示⑩注意事项 ⒉几个小提示 ①如何设置,增加cube的面(多于四个面的还叫cube吗?) gconftool-2 -t int -s /apps/compiz/general/screen0/options/size "5"
或用配置编辑器手动修改/apps/compiz/general/screen0/options/size键值,这样就是5个侧面了。 ②如何在cube顶上添加演示文件 yum install inkscape
运行OpenOffice,制作演示文件,每一幅幻灯保存为一张jpg图片 运行Inkscape,将图片输出为svg文件(Scalable Vector Graphics) 将所有的svg文件放入某个文件夹 保存下面脚本到/usr/local/bin/svg2top #!/bin/bash echo "Give full path of the folder containing SVGs to use as Cube TOP:" read path svglist=$(find $path -type f \( -name "*.svg" -o -name "*.png" \) -printf "%p,") gconftool-2 -s /apps/compiz/plugins/cube/screen0/options/images -t list --list-type=string "[${svglist%%,}]"
共9页: 上一页 [1] [2] [3] [4] 5 [6] [7] [8] [9] 下一页
|
| |
|
|
如果您对本文有任何疑问或者建议,请到论坛讨论区发表您的意见: >> 论坛入口 |
[ 收藏]
[ 推荐]
[ 评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|
|