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 ...
随机推荐
- Java(四)
下面的代码可以实现以字节为单位复制文件的功能,适合复制非文本类型的文件,为了更清楚的观测运行速率,我加入了程序计时器,代码如下: import java.io.FileInputStream; imp ...
- 2016-12-19 php修改数据库数据
让info表在网页中显示 <h1>人员表</h1><table width="100%" cellpadding="opx" ce ...
- 深入理解Javascript中this, prototype, constructor
在Javascript面向对象编程中经常需要使用到this,prototype和constructor这3个关键字. 1.首先介绍一下this的使用:this表示当前对象;如果在全局中使用this,则 ...
- PHP反向代理-百度图片
最近在一些开发中需要调用百度贴吧等一系列的百度图片 但是防盗链实在讨厌 于是就简单利用curl实现了反向代理(应该是这么叫的) 如果网站直接调用百度图片 会出现如下(博客园貌似在白名单 可以直接用百度 ...
- 全新的跨平台app软件开发工具——Lae软件开发平台
Lae是一款运行于windows的界面开发工具,具有所见即所得.开发跨平台.UI布局自由.机制简单.维护容易等诸多优点,可以开发同时运行在windows.Linux.MacOX.iOS.Android ...
- Lae程序员小漫画(三),仅供一乐
Lae软件开发,快乐程序员!
- Query 一些简单的效果
Query 一些简单的效果 $(selector).hide(speed,callback); 隐藏 $(selector).show(speed,callback); 显示 $(selector). ...
- 关于Kendo的Grid 单元格样式
<!DOCTYPE html><html style="height: 100%;"><head><meta http-equiv=&qu ...
- delegate和protocol
协议和代理对于一个新手来说确实不讨好理解,也有很多的iOS开发的老手对此是懂非懂的.网上的很多博文只是讲了怎么使用,并没有说的很明白.下面我谈一下我的理解. 1.你要先搞明白,协议和代理为什么会出现, ...
- iOS 动画
图层树.寄宿图以及图层几何学(一)图层的树状结构 技术交流新QQ群:414971585 巨妖有图层,洋葱也有图层,你有吗?我们都有图层 -- 史莱克 Core Animation其实是一个令人误解的命 ...