dgi*_*nsd 3 scripts compiz gsettings dconf
我想编写一个脚本来重新排序 compiz 模块的加载,因此在使用 Unity 桌面时,expo 和 scale 最后加载,并且这些插件中的设置 hotcorners 将在重新启动时保持活动状态。这可以使用 gui dconf-editor 轻松完成。但是,任何时候为了统一而进行更新,此设置都会恢复为最后加载 Unity 模块并终止热点的默认设置。
所以需要一个 cli 方法来更改位于 org/compiz/profiles/unity/plugins/core 的 dconf-editor 中的设置
['core', 'composite', 'opengl', 'copytex', 'decor', 'regex', 'compiztoolbox', 'place', 'imgpng', 'grid', 'unitymtgrabhandles', 'resize', ' mousepoll', 'snap', 'gnomecompat', 'move', 'vpswitch', 'session', 'wall', 'animation', 'workarounds', 'expo', 'scale', 'fade', 'ezoom' , 'unityshell']
到
['core', 'composite', 'opengl', 'copytex', 'decor', 'regex', 'compiztoolbox', 'place', 'imgpng', 'grid', 'unitymtgrabhandles', 'resize', ' mousepoll', 'snap', 'gnomecompat', 'move', 'vpswitch', 'session', 'wall', 'animation', 'workarounds', 'fade', 'ezoom', 'unityshell', 'expo' , '规模']
所以发出命令
gsettings list-schemas | grep -i compiz
Run Code Online (Sandbox Code Playgroud)
表明没有我需要改变的模式,所以尝试
gsettings list-recursively | grep -i compiz
Run Code Online (Sandbox Code Playgroud)
给出了更长的列表,但对我的项目没有多大用处。我哪里出错了,或者我的问题有其他解决方案吗?
我希望是这样,将“引号”添加到值中,作为设置字符串所需的正确 GVariant 格式的一部分。
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins \
"['core', 'composite', 'opengl', 'copytex', 'decor', 'regex', 'compiztoolbox', 'place'
,'imgpng', 'grid', 'unitymtgrabhandles', 'resize', 'mousepoll', 'snap', 'gnomecompat',
'move', 'vpswitch', 'session', 'wall', 'animation', 'workarounds', 'fade', 'ezoom',
'unityshell', 'expo', 'scale']"
Run Code Online (Sandbox Code Playgroud)