如何使用命令行在回退模式下隐藏面板?

我想通过脚本隐藏面板。

在maverick我使用gconftool-2 –set“/ apps / panel / toplevels / top_panel_screen0 / auto_hide”–type bool“true”

现在我试过了

gsettings set org.gnome.gnome-panel.layout ... 

但有个问题:

  gsettings list-keys org.gnome.gnome-panel.layout 

告诉我:

  object-id-list toplevel-id-list 

但是在dconf编辑器中有2个子文件夹层称为toplevels,然后是top-panel / bottom-panel我不知道如何到达那里。

它应该是

toplevels.top-panel auto_hide true

我尝试了所有不同的东西到达那里……没办法。 这是否意味着您不能再从命令行更改这些值?

作为gsettings的替代方法,您也可以dconf使用dconf

例如

 dconf write /org/gnome/gnome-panel/layout/toplevels/bottom-panel/auto-hide true 

这会将值TRUE写入auto-hide键。

如果需要查看路径中的键,请使用list参数

例如:

 dconf list /org/gnome/gnome-panel/layout/toplevels/top-panel/ 

请记住以/开头并以/ for路径结束。