Kei*_*van 8 command-line unity
我在带有数字化笔的触摸屏上使用 ubuntu 12.10 做笔记,当我这样做时,我宁愿为此目的拥有我的所有桌面。另一方面,在做其他事情时,我会在应用程序之间切换很多。所以我想在我的键盘上做一个快捷方式来切换统一面板的状态。我已经尝试过这里建议的命令: 更改启动器“隐藏”设置的快捷方式
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 2
Run Code Online (Sandbox Code Playgroud)
但似乎命令不起作用。我gconf-editor手动安装并更改了变量的值,但这也无济于事。这些命令虽然更改了 gconf-editor 中的值,但该面板仍未隐藏。有什么我想念的吗?
我还将变量类型更改为字符串和布尔值,但仍然没有成功。
PS:我无法在那里发表评论,所以我不得不在一个新问题中提问。
编辑:
命令的结果相同
dconf write /org/gnome/gnome-panel/layout/toplevels/bottom-panel/auto-hide true
Run Code Online (Sandbox Code Playgroud)
jok*_*ino 11
正如 Rinzwind 在评论中提到的,Ubuntu 已将其设置从 gconf 迁移到 gsettings。您链接的问题中的命令对 12.04 及更早版本有效,但对 12.10 及以后版本无效。
用于隐藏 Unity 启动器的更新命令将是:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1
Run Code Online (Sandbox Code Playgroud)
以及取消隐藏 Unity 启动器:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 0
Run Code Online (Sandbox Code Playgroud)