在命令行上列出并启用/禁用Compiz插件
如何使用命令行界面查看默认的Compiz插件集并在集中添加或删除插件?
是否有可以编辑的配置文件用于系统范围的配置?
从14.04开始
列出活动的compiz插件
运行dconf dump /org/compiz/profiles/unity/ | grep active-plugins
dconf dump /org/compiz/profiles/unity/ | grep active-plugins
在终端中。 这会给你一些喜欢的东西
active-plugins=['core', 'composite', 'opengl', 'wall', 'resize', 'vpswitch', 'compiztoolbox', 'move', 'snap', 'grid', 'imgpng', 'commands', 'unitymtgrabhandles', 'mousepoll', 'place', 'copytex', 'regex', 'session', 'animation', 'fade', 'expo', 'workarounds', 'ezoom', 'scale', 'unityshell']
配置每个用户的设置
请参阅答案https://askubuntu.com/a/320677/10475
系统范围的配置
通常,您可以在gsettings中使用供应商覆盖进行系统范围的设置。 由于无法编写包含DConf路径的架构覆盖文件 (另请参阅#1281580 ),您必须直接在dconf中设置设置 :
步骤1 :使用以下内容在/etc/dconf/profile/
创建文件user
:
user-db:user system-db:compiz
第2步 :在/etc/dconf/db/
创建文件夹compiz.d
第3步 :
在00_default_plugins
中创建文件00_default_plugins
在/etc/dconf/db/compiz.d/
放入_your list of plugins_
(运行dconf dump /org/compiz/profiles/unity/ | grep active-plugins
以获取实际激活的插件列表)。
例:
[org/compiz/profiles/unity/plugins/core] active-plugins=['core', 'composite', 'opengl', 'move', 'vpswitch', 'copytex', 'grid', 'commands', 'snap', 'compiztoolbox', 'mousepoll', 'place', 'resize', 'imgpng', 'session', 'wall', 'regex', 'unitymtgrabhandles', 'animation', 'winrules', 'fade', 'workarounds', 'expo', 'scale', 'ezoom', 'unityshell']
第4步 :
强制执行此设置。 在/etc/dconf/db/compiz.d/
创建一个文件夹locks
,并在/etc/dconf/db/compiz.d/
放入一个名为00_compiz_active_plugins
的文件:
/org/compiz/profiles/unity/plugins/core/active-plugins
步骤5 :在终端中运行sudo dconf update
进行编译。
现在,您可以打开访客会话并检查是否已应用该设置。
注意 :您可以按照自己喜欢的方式命名system-db
,但请记住,我的示例中的文件夹compiz.d
必须与附加了.d
system-db
相同。
积分 :
https://wiki.gnome.org/Projects/dconf/SystemAdministrators
http://blog.chapus.net/more-gnome-unity-system-defaults/
至少在11.04和11.10中,这将为您提供括号内的已启用插件的列表。 []
gconftool-2 --get /apps/compiz-1/general/screen0/options/active_plugins
您可以使用该列表,添加或减去,然后使用“围绕括号”[]“进行设置
gconftool-2 --set --type=list --list-type=string /apps/compiz-1/general/screen0/options/active_plugins "[list,goes,in,here]"