deepin gala窗口管理器关闭动画
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窗口管理器关闭动画的更多相关文章
- 深度系统 deepin 15.9 关闭桌面
深度系统 deepin 15.9 关闭桌面 由于特别的原因,关闭深度的桌面. sudo systemctl disable lightdm 如果需要在命令模式进入桌面可以使用以下命令. sudo se ...
- ios开发——仿新版iBooks书本打开与关闭动画
IOS新版iBooks吸引人的地方除了有干净整洁的界面.方便灵活的操作以及大容量的书籍容量以外.还有其优秀的用户交互,尤其是其动画的使用.打开一本书时书本缓慢放大并打开.关闭一本书后书本关闭并回到原位 ...
- activity的打开关闭动画
Activity的打开关闭或者说相互跳转之间可以设置动画的.默认的打开关闭直接消失或出现,比较不优美,但是有的手机Rom对这个默认做了修改,比如红米HM1,默认的就是新页面自右向左滑动出现,自左向右滑 ...
- collectionView/tableview刷新时关闭动画无效
collectionView/tableview reloadSections/reloaddata时去掉动画无效时可以尝试使用 [UIView performWithoutAnimation:^{ ...
- win xp 关闭动画屏幕角色,那只小狗
这个动画屏幕角色每次会占用两秒左右的时间. 在搜索选项中打开"改变首选项(G)" -选择 “不使用动画屏幕角色(S)”. - -
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现
在IOS系统里,我们打开app都是有启动动画的,这样子在打开一个新窗体,用户感觉有个过渡动画,体验效果很好,不会觉得很突然就冒出一个窗体,下面就实现一个android 的activity启动和关闭动画 ...
- 使用ObjectAnimator开发打开、关闭书本动画
动画效果 动画效果-分享链接 (想做成gif图的,尝试各种工具无果) ObjectAnimator简单介绍及实现思路 ObjectAnimator是从api level 11 (Android3.0x ...
- android帧动画,移动位置,缩放,改变透明度等动画讲解
1.苦逼的需求又来了,需要实现一些动画效果,第一个想到的是播放gif图片,但是这样会占包的资源,并且清晰度不高,于是想着程序实现,自己用帧动画+缩放+移动+透明度 实现了一些想要的效果,这里跟大家分享 ...
- iOS 学习 - 23 加载本地 txt 文件, NSMutableParagraphStyle 段落格式,缩放动画,字体间距
思路: 1.new 一个 Empty 后缀为 .txt 文件,内容随笔拷贝一段 2.用 NSString 接收本地文件,再用一个标题拼接字符串 3.创建一个 NSMutableParagraphSty ...
随机推荐
- Ansible-Tower快速入门-4.以超级用户帐号登录【翻译】
以超级用户帐号登录 首先,登录tower需要使用tower服务器所在的URL,格式如下:https://<tower server name>/ 注意:tower安装了一个自签名证书用于H ...
- 01-04 Json和弹窗
//JSON是一种数据格式//JSON比较像php里面的关联数组,它里面存的内容也是key和value成对存在的 </body><script type="text/jav ...
- 隐藏UITableView多余的分割线
先看看没有隐藏是什么效果以及代码是什么情况,这样更加直观
- windows下sublime2 clojure环境配置
最近在看<七周七并发模型>,其中函数式编程使用的是clojure来做说明,所以也想顺便学习一下clojure这种不同的编程方式语言.那么做开发肯定需要开发环境,第一步先下载clojure官 ...
- SQL --Chapter02 查询基础
SELECT 语句基础 SELECT <列名>,….. FROM <表名>; 查询全部列: SELECT * FROM <表名>; 使用AS关键字为列设置别名,设定 ...
- Linux记录从此开始
Linux记录从此开始~ 希望自己多写代码同时多记录~
- git cherry-pick
在不同的分支上merge是有点很危险的事情,尤其当两个分支内容差异较大的时候,而恰好,你想合并的就是几次commit而已,那么用cherry-pick吧. 将B分支的提交合并到A分支: git che ...
- 基于redis排行榜的实战总结
前言: 之前写过排行榜的设计和实现, 不同需求其背后的架构和设计模型也不一样. 平台差异, 有的立足于游戏平台, 为多个应用提供服务, 有的仅限于单个游戏.排名范围差异, 有的面向全局排名, 有的只做 ...
- JS函数输出圆的半径和面积
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- App Transport Security has blocked a cleartext HTTP (http://)
使用SDWebImage加载“http://”开头的图片报错,错误如下: App Transport Security has blocked a cleartext HTTP (http://) r ...