deepin gala窗口管理器关闭动画
Tofloor
poster avatar
mosmith
deepin
2016-07-30 20:34
Author
meta.
这两天刚好有点时间,从github上下了deepin-wm的源码来看了下,找到了一个相关的配置项,但编译不过(自从毕业去搞java后就再也没有多碰C的东西了,何况deepin-wm还是用vala来写的)。于是开始在系统中寻找那个文件中有这个配置项。最后终于找到了:在/usr/share/glib-2.0/schemas目录下面,但把所有的animation项都改为false之后,仍然不生效:
  1. ./com.deepin.wrap.gnome.desktop.interface.gschema.xml:   
  2. ./com.deepin.wrap.gnome.desktop.interface.gschema.xml:      Enable Animations
  3. ./com.deepin.wrap.gnome.desktop.interface.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
  4. ./99_deepin-default-gsettings.gschema.override:[com.deepin.wrap.pantheon.desktop.gala.animations]
  5. ./99_deepin-default-gsettings.gschema.override:enable-animations=false
  6. ./org.gnome.desktop.interface.gschema.xml:   
  7. ./org.gnome.desktop.interface.gschema.xml:      Enable Animations
  8. ./org.gnome.desktop.interface.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
  9. ./com.deepin.xsettings.gschema.xml:   
  10. ./com.deepin.xsettings.gschema.xml:      Enable Animations
  11. ./com.deepin.xsettings.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
  12. 匹配到二进制文件 ./gschemas.compiled
  13. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:       
  14. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:               
  15. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Enable Animations
  16. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Whether animations should be displayed. Note: This is a global key, it changes the behaviour of the window manager, the panel etc.
  17. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the snap animation as used by maximize/unmaximize
  18. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the close animation
  19. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the minimize animation
  20. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the workspace switch animation
  21. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the menu mapping animation
  22. ./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        Duration of the multitasking view toggle animation
Copy the Code


后面又看了些GSetting的东西,发现修改配置后还需要用glib-compile-schemas给编译成二进制文件(gschemas.compiled)后才能生效:

  1. sudo glib-compile-schemas /usr/share/glib-2.0/schemas
Copy the Code
最后super+tab切换一下,成功关闭动画,效率大幅提升。。。
顺便带一句,里面其它配置项也可以修改哦。。。。

Reply Favorite View the author
All Replies
avatar
rekols
deepin
2016-07-30 22:17
#1
帮你顶顶。
Reply View the author
avatar
4***8@qq.com
deepin
2016-07-31 02:34
#2
大神啊,还可以这些玩。低配置机器的福音。
Reply View the author
avatar
mosmith
deepin
2016-08-01 00:31
#3
自己顶顶。
Reply View the author
avatar
think-wang
deepin
2016-08-01 00:35
#4
留名贴,等回去了试试
Reply View the author
avatar
jyehc
deepin
2016-08-01 05:27
#5
不懂帮顶,666666666666666666666666666666666666666666
Reply View the author
avatar
sonald
deepin
2016-08-01 17:28
#6
其实你只要问一下,就会有人直接告诉你下面这些设置:
gsettings set com.deepin.wrap.gnome.desktop.interface enable-animations true
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations open-duration 350
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations snap-duration 250
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations close-duration 300
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations multitasking-toggle-duration 450
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations menu-duration 150
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations workspace-switch-duration 300
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations enable-animations true
gsettings set com.deepin.wrap.pantheon.desktop.gala.animations minimize-duration 350

最后的数值都是可调的,或者安装dconf-editor可以交互修改这些参数:)
另外提到的metacity拖动卡的问题,的确在高分屏上会有这个问题,跟机器性能有关系,后面会考虑优化的
Reply View the author
avatar
tearlight
deepin
2016-12-01 01:36
#7
https://bbs.deepin.org/post/41904
其实你只要问一下,就会有人直接告诉你下面这些设置:
gsettings set com.deepin.wrap.gnome.desktop.inter ...

又学到了  这个动画效果在15.3上应该还要继续优化   还是会卡卡的
Reply View the author
avatar
sonald
deepin
2016-12-07 17:34
#8
https://bbs.deepin.org/post/41904
又学到了  这个动画效果在15.3上应该还要继续优化   还是会卡卡的

应该不卡才对。哪个效果卡?我用的i卡也很流畅的啊。
Reply View the author
avatar
oucert
deepin
2018-06-28 16:28
#9
感谢大佬
Reply View the author