LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1861|回复: 3

让compiz的最小化动画神灯效果实现Macosx上的效果

[复制链接]
发表于 2008-11-16 15:02:14 | 显示全部楼层 |阅读模式
除了网上介绍的修改现有文件的方法

1. sudo apt-get install ghex
安装十六进制编辑器

2. sudo ghex2 /usr/lib/compiz/libanimation.so
查找"magic_lamp_max_waves", 找到"<min>3</min>", 将"3"改为"0", 保存,退出
(注意:使用hex时, 确保选择了插入模式-- 即将"3"改为"0",按照如下步骤,编辑 -> 选中插入模式,选中3,按Del键,然后键盘输入0)

3. sudo gedit /usr/share/compiz/animation.xml
查找"magic_lamp_max_waves", 找到"<min>3</min>", 将"3"改为"0", 保存,退出

4. 如果3D桌面这时还在运行,要重启GDM(方法press ctrl-alt-backspace)

5. 在CompizConfig设置管理器中,将最小化动画改为神灯特效,神灯特效设置最大波改为0(这时最小化时不会扭动)


还可以直接给compiz-fusion-plugins-main(-git)打补丁,这种方法更适合archer。

补丁另存到compiz-fusion-plugins-main所在的文件夹后,在PKGUBILD里面的./configure或者./autogen.sh前面添加一行
  1. patch -Np0 -i ../../plugin-main-fix.patch || return 1
复制代码

然后makepkg -i



  1. --- src/animation/animation.c.orig        2008-11-16 13:23:00.919668539 +0800
  2. +++ src/animation/animation.c        2008-11-16 13:21:51.819675635 +0800
  3. @@ -1250,7 +1250,7 @@
  4.      { "horizontal_folds_zoom_to_taskbar", "bool", 0, 0, 0 },
  5.      { "magic_lamp_moving_end", "bool", 0, 0, 0 },
  6.      { "magic_lamp_grid_res", "int", "<min>4</min>", 0, 0 },
  7. -    { "magic_lamp_max_waves", "int", "<min>3</min>", 0, 0 },
  8. +    { "magic_lamp_max_waves", "int", "<min>0</min>", 0, 0 },
  9.      { "magic_lamp_amp_min", "float", "<min>200</min>", 0, 0 },
  10.      { "magic_lamp_amp_max", "float", "<min>200</min>", 0, 0 },
  11.      { "magic_lamp_open_start_width", "int", "<min>0</min>", 0, 0 },
  12. --- metadata/animation.xml.in.orig        2008-11-16 13:58:57.000621308 +0800
  13. +++ metadata/animation.xml.in        2008-11-16 13:58:44.691336662 +0800
  14. @@ -449,8 +449,8 @@
  15.           <option name="magic_lamp_max_waves" type="int">
  16.             <_short>Magic Lamp Max Waves</_short>
  17.             <_long>The maximum number of waves for Magic Lamp.</_long>
  18. -            <default>3</default>
  19. -            <min>3</min>
  20. +            <default>0</default>
  21. +            <min>0</min>
  22.             <max>20</max>
  23.           </option>
  24.           <option name="magic_lamp_amp_min" type="float">
复制代码
发表于 2008-11-16 16:52:10 | 显示全部楼层
楼主桌面很赞!
回复 支持 反对

使用道具 举报

发表于 2008-11-16 19:55:30 | 显示全部楼层
来纯支持下 lh。
这个效果不在已经好久了,原来要这样弄回来,mark 下,以后哪天用 CF 了,就试试,恩恩
回复 支持 反对

使用道具 举报

发表于 2008-11-17 11:14:17 | 显示全部楼层
2. sudo ghex2 /usr/lib/compiz/libanimation.so
查找"magic_lamp_max_waves", 找到"<min>3</min>", 将"3"改为"0", 保存,退出
(注意:使用hex时, 确保选择了插入模式-- 即将"3"改为"0",按照如下步骤,编辑 -> 选中插入模式,选中3,按Del键,然后键盘输入0)
这一步怎么做呢?我再ghex2里似乎查找不到“magic_lamp_max_waves”。


实在不会用ghex2,我用 Windows 下的 PSPad 搞定了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表