deepin中有两个管理器,一个基于metacity,另一个基于gala,可以用super+tab来进行切换。metacity是不带动画的,而 gala是带动画效果的。但这里有个问题,不知道有些同学上的环境有没有这个问题,metacity上,动画虽然关闭了,但手动窗口变得奇卡,特别在高分 辨率的显示器上,拖动firefox简直惨不忍睹。而gala上就不会有这个问题,但动画效果实现难看。。。我的机器的配置不高,5年前的机器了,那动画 效果,咳咳。。。几乎可以逼我把DEEPIN卸载了。

这两天刚好有点时间,从github上下了deepin-wm的源码来看了下,找到了一个相关的配置项,但编译不过(自从毕业去搞java后就再也没有多
碰C的东西了,何况deepin-wm还是用vala来写的)。于是开始在系统中寻找那个文件中有这个配置项。最后终于找到了:在/usr/share
/glib-2.0/schemas目录下面,但把所有的animation项都改为false之后,仍然不生效:

./com.deepin.wrap.gnome.desktop.interface.gschema.xml:    <key name="enable-animations" type="b">
./com.deepin.wrap.gnome.desktop.interface.gschema.xml: <summary>Enable Animations</summary>
./com.deepin.wrap.gnome.desktop.interface.gschema.xml: Whether animations should be displayed. Note: This is a global key,
./99_deepin-default-gsettings.gschema.override:[com.deepin.wrap.pantheon.desktop.gala.animations]
./99_deepin-default-gsettings.gschema.override:enable-animations=false
./org.gnome.desktop.interface.gschema.xml: <key name="enable-animations" type="b">
./org.gnome.desktop.interface.gschema.xml: <summary>Enable Animations</summary>
./org.gnome.desktop.interface.gschema.xml: Whether animations should be displayed. Note: This is a global key,
./com.deepin.xsettings.gschema.xml: <key type="b" name="gtk-enable-animations">
./com.deepin.xsettings.gschema.xml: <summary>Enable Animations</summary>
./com.deepin.xsettings.gschema.xml: Whether animations should be displayed. Note: This is a global key,
./com.deepin.wrap.gnome.metacity.gschema.xml: <description>If true, Metacity will give the user less feedback by using wireframes, avoiding animations, or other means. This is a significant reduction in usability for many users, but may allow legacy applications to continue working, and may also be a useful tradeoff for terminal servers. However, the wireframe feature is disabled when accessibility is on.</description>
匹配到二进制文件 ./gschemas.compiled
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <schema path="/com/deepin/wrap/pantheon/desktop/gala/animations/" id="com.deepin.wrap.pantheon.desktop.gala.animations" gettext-domain="deepin-wm">
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <key type="b" name="enable-animations">
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Enable Animations</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <description>Whether animations should be displayed. Note: This is a global key, it changes the behaviour of the window manager, the panel etc.</description>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the snap animation as used by maximize/unmaximize</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the close animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the minimize animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the workspace switch animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the menu mapping animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml: <summary>Duration of the multitasking view toggle animation</summary>

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

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

最后super+tab切换一下,成功关闭动画,效率大幅提升。。。
顺便带一句,里面其它配置项也可以修改哦。。。。

deepin gala窗口管理器关闭动画的更多相关文章

  1. 深度系统 deepin 15.9 关闭桌面

    深度系统 deepin 15.9 关闭桌面 由于特别的原因,关闭深度的桌面. sudo systemctl disable lightdm 如果需要在命令模式进入桌面可以使用以下命令. sudo se ...

  2. ios开发——仿新版iBooks书本打开与关闭动画

    IOS新版iBooks吸引人的地方除了有干净整洁的界面.方便灵活的操作以及大容量的书籍容量以外.还有其优秀的用户交互,尤其是其动画的使用.打开一本书时书本缓慢放大并打开.关闭一本书后书本关闭并回到原位 ...

  3. activity的打开关闭动画

    Activity的打开关闭或者说相互跳转之间可以设置动画的.默认的打开关闭直接消失或出现,比较不优美,但是有的手机Rom对这个默认做了修改,比如红米HM1,默认的就是新页面自右向左滑动出现,自左向右滑 ...

  4. collectionView/tableview刷新时关闭动画无效

    collectionView/tableview reloadSections/reloaddata时去掉动画无效时可以尝试使用 [UIView performWithoutAnimation:^{ ...

  5. win xp 关闭动画屏幕角色,那只小狗

    这个动画屏幕角色每次会占用两秒左右的时间. 在搜索选项中打开"改变首选项(G)" -选择 “不使用动画屏幕角色(S)”. - -

  6. android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现

    在IOS系统里,我们打开app都是有启动动画的,这样子在打开一个新窗体,用户感觉有个过渡动画,体验效果很好,不会觉得很突然就冒出一个窗体,下面就实现一个android 的activity启动和关闭动画 ...

  7. 使用ObjectAnimator开发打开、关闭书本动画

    动画效果 动画效果-分享链接 (想做成gif图的,尝试各种工具无果) ObjectAnimator简单介绍及实现思路 ObjectAnimator是从api level 11 (Android3.0x ...

  8. android帧动画,移动位置,缩放,改变透明度等动画讲解

    1.苦逼的需求又来了,需要实现一些动画效果,第一个想到的是播放gif图片,但是这样会占包的资源,并且清晰度不高,于是想着程序实现,自己用帧动画+缩放+移动+透明度 实现了一些想要的效果,这里跟大家分享 ...

  9. iOS 学习 - 23 加载本地 txt 文件, NSMutableParagraphStyle 段落格式,缩放动画,字体间距

    思路: 1.new 一个 Empty 后缀为 .txt 文件,内容随笔拷贝一段 2.用 NSString 接收本地文件,再用一个标题拼接字符串 3.创建一个 NSMutableParagraphSty ...

随机推荐

  1. CSS和CSS选择器

    一:CSS CSS有三种书写形式(优先级从高到低) 1)行内样式:(内联样式)直接在标签style属性中书写 2)内页样式:在本网页的style标签中书写 3)外部样式:在单独的CSS文件中书写,然后 ...

  2. CSS元素定位6-10课

    <精通CSS.DIV网页样式与布局>视频6-10课总结图: 元素定位 (1)float:left/right; 左浮动:脱离普通文档流向左浮动(即向左对齐):float属性必须应用在块级元 ...

  3. SQL server2000更改数据库名称

    如果是SQL Server 2005可以直接右键重命名,但是SQL Server 2000中不能直接改,可以用sp_renamedb. 1.方法一(物理法): 把Old数据库改为New数据库 打开“企 ...

  4. 深入了解C#中的静态变量和静态构造函数

    深入的剖析C#中静态变量和静态构造函数: 在日常的程序开发过程经常会使用到静态变量,众所周知,静态变量时常驻内存的变量,它的生命周期是从初始化开始一直到Application结束.但是,我们经常会忽略 ...

  5. event.target指向谁?

    学习中,有时遇到event.target,总是不明白为什么要用target,后来学习了下,大概了解了event.target到底指什么元素了,关于event和this的内容,下回再说: 先摆结论:ev ...

  6. 2015.10.18 do while练习

    /*乘法表*/ #define COLMAX 10 #define ROWMAX 12 main() { int row,column,y; row=1; printf("          ...

  7. oracle执行计划之-表连接方式

    转载自:http://blog.csdn.net/tianlesoftware/article/details/5826546 在多表联合查询的时候,如果我们查看它的执行计划,就会发现里面有多表之间的 ...

  8. ubuntu 一些命令

    打开终端 ctrl+alt+t 关闭中端 ctrl+shift+q 打开ppt openoffice.org -g xx.ppt &

  9. 深度|OpenAI 首批研究成果聚焦无监督学习,生成模型如何高效的理解世界(附论文)

    本文经机器之心(微信公众号:almosthuman2014)授权转载,禁止二次转载,原文. 选自 Open AI 作者:ANDREJ KARPATHY, PIETER ABBEEL, GREG BRO ...

  10. Single Number

    Given an array of integers, every element appears twice except for one. Find that single one.Your al ...