gsettings 或 dconf 键的值列表

gsettings 或 dconf 键的值列表

我想列出屏幕保护程序可用的所有值:

dconf list /org/cinnamon/desktop/screensaver/ | grep matrix

答案1

关于。gsettings

gsettings list-recursively

列出所有“架构”以及键和值。您可以grep像这样将输出传输到:

gsettings list-recursively | grep -i screensaver 

您的输出可能与我的不同:

$ gsettings list-recursively | grep -i screensaver
org.gnome.desktop.screensaver picture-opacity 100
org.gnome.desktop.screensaver logout-enabled false
org.gnome.desktop.screensaver lock-enabled true
org.gnome.desktop.screensaver logout-delay uint32 7200
org.gnome.desktop.screensaver embedded-keyboard-enabled false
org.gnome.desktop.screensaver primary-color '#023c88'
org.gnome.desktop.screensaver idle-activation-enabled true
org.gnome.desktop.screensaver secondary-color '#5789ca'
org.gnome.desktop.screensaver logout-command ''
org.gnome.desktop.screensaver color-shading-type 'solid'
org.gnome.desktop.screensaver embedded-keyboard-command ''
org.gnome.desktop.screensaver show-notifications false
org.gnome.desktop.screensaver picture-options 'zoom'
org.gnome.desktop.screensaver lock-delay uint32 0
org.gnome.desktop.screensaver show-full-name-in-top-bar true
org.gnome.desktop.screensaver picture-uri 'file:///usr/share/backgrounds/gnome/adwaita-lock.jpg'
org.gnome.desktop.screensaver status-message-enabled true
org.gnome.desktop.screensaver ubuntu-lock-on-suspend true
org.gnome.desktop.screensaver user-switch-enabled true
apps.light-locker lock-after-screensaver uint32 5
$

我没有使用cinnamon并且不知道我提供的命令如何工作!

答案2

如果它是一个枚举,你可以

gsettings range ...

参考:man gsettings

从: 开始/usr/share/glib-2.0/schemas/org.cinnamon.desktop.screensaver.gschema.xml,它声明了一个string( type="s")。表示它没有范围。

<key type="s" name="xscreensaver-hack">
  <default>"fiberlamp"</default>
  <summary>The screensaver hack to use when xscreensaver is used as screensaver</summary>
</key>

无论如何,这是一个与 xscreenshot 相关的选项,您可以使用以下方法查看可用的黑客攻击:

dpkg -L xscreensaver-data或者更准确地说ls /usr/share/xscreensaver/config/ | xargs basename -s .xml

abstractile
binaryring
cwaves
deco
distort
fiberlamp
fuzzyflakes
galaxy
hexadrop
m6502
metaballs
penrose
popsquares
ripples
shadebobs
slidescreen
swirl
tessellimage
xlyap

答案3

这可能就是你要找的。如果这和你的问题无关,也许可以更清楚地说明。

dconf read /org/cinnamon/desktop/screensaver/xscreensaver-hack

这也可能有帮助:

dconf list /org/cinnamon/desktop/screensaver/

相关内容