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. 海洋女神建新installshield交流群了,原来的老群都满了,请加新群哦,记得认真填写验证信息

    群号511751143 海洋女神installshield群

  2. 如何成为python高手

    本文是从 How to become a proficient Python programmer 这篇文章翻译而来. 这篇文章主要是对我收集的一些文章的摘要.因为已经有很多比我有才华的人写出了大量关 ...

  3. 浅谈GPU

    Programmable Graphics Processing Unit(GPU),可编程图形处理单元,可编程图形硬件. 98年NVIDIA的modern GPU研发成功,使用晶体管(transis ...

  4. delegate和protocol

    协议和代理对于一个新手来说确实不讨好理解,也有很多的iOS开发的老手对此是懂非懂的.网上的很多博文只是讲了怎么使用,并没有说的很明白.下面我谈一下我的理解. 1.你要先搞明白,协议和代理为什么会出现, ...

  5. Android Saving Data(一)

    Saving Key-value Sets  保存键值对 SharedPreferences只能用来保存一些简单的数据,并且这些数据可以是共享的,也可以是私有的. SharedPreferences没 ...

  6. Linux测试环境部署jdk(一)

    安装配置JDK yum install -y lrzsz  安装rz,方便xshell上传下载文件 Jdk: jdk-6u1-linux-i586 Tomcat: apache-tomcat-7.0. ...

  7. X86 Socket 通信

    struct txd_socket_handler_t { int fd; }; txd_socket_handler_t *txd_tcp_socket_create() { txd_socket_ ...

  8. SSH基于Hibernate eventListener 事件侦听器的操作日志自动保存到数据库

    在spring xml配置文件中添加配置,包含:model.listener 在model中增加需要写入数据库对应表的model 在auditLog.xml配置文件中配置自己项目中,需要进行日志记录的 ...

  9. Pyhton的发展历程

    Python的由来 在1989年12月时,吉多·范罗苏姆——龟叔,想寻找一门“课余”编程项目来打发圣诞节前后的时间.Guido决定为当时正构思的一个新的脚本语言写一个解释器,它是ABC语言(教学语言. ...

  10. c# foreach循环二维数组

    假设已有二维数组 array 行4, 列4for(int i=0;i<4;i++)//行的行数{ for(int j=0;j<4;j++)//行的列数 { console.wrie( ar ...