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
产量
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可能有助于创建其他脚本的选项列表。