在哪里可以获得与gsettings一起使用的SCHEMA / PATH / KEY列表?
在做了一些研究之后,我发现我可以使用终端中的gsettings
命令快速设置配置选项,而不是安装dconf-editor
或gconf-editor
或CCSM。
但我们需要SCHEMA / PATH和KEY来设置值。
语法是:
gsettings set SCHEMA[:PATH] KEY VALUE
例如,永远不会自动隐藏启动器:
gsettings set com.canonical.Unity2d.Launcher hide-mode 0
并且,对于不与发射器重叠的窗口:
gsettings set com.canonical.Unity2d.Launcher use-strut true
那么,在哪里可以获得可以使用gsettings设置的所有SCHEMA / PATH / KEY的列表?
不,请不要建议gsettings list-keys
命令,因为我不知道可能有数百个模式。
gsettings list-schemas
您提供所有架构。 你也可以使用gsettings list-recursively
来获得你想要的东西,但是这个程序将列出所有模式的所有键的所有值:
(以免将脚本gsettings-iterate-all
)
#!/bin/bash # Gnome 3 can be customised from the command line via the gsettings command # This script should help you to find what you're looking for by # listing the ranges for all keys for each schema for schema in $(gsettings list-schemas | sort) do for key in $(gsettings list-keys $schema | sort) do value="$(gsettings range $schema $key | tr "\n" " ")" echo "$schema :: $key :: $value" done done
扩展您的示例gsettings-iterate-all | grep com.canonical.Unity2d.Launcher
gsettings-iterate-all | grep com.canonical.Unity2d.Launcher
产生
com.canonical.Unity2d.Launcher :: edge-decayrate :: type i com.canonical.Unity2d.Launcher :: edge-overcome-pressure :: type i com.canonical.Unity2d.Launcher :: edge-responsiveness :: type d com.canonical.Unity2d.Launcher :: edge-reveal-pressure :: type i com.canonical.Unity2d.Launcher :: edge-stop-velocity :: type i com.canonical.Unity2d.Launcher :: hide-mode :: type i com.canonical.Unity2d.Launcher :: only-one-launcher :: type b com.canonical.Unity2d.Launcher :: reveal-mode :: type i com.canonical.Unity2d.Launcher :: super-key-enable :: type b
您可以将输出重新路由到文件以便于阅读。
对于有创意的人来说。 以下是可能有助于创建其他脚本的gsettings的可能选项列表 。
这有点晚了,但我刚刚开始与这个隐私问题搏斗……
它看起来像com.canonical.Unity.Lenses remote-content-search 'none'
是你寻求的切换。