答案1
1) 编写一个脚本,切换自动隐藏值。(因此面板不会永远消失,但您会获得额外的空间):
#!/usr/bin/env bash
hide=$(dconf read /org/mate/panel/toplevels/bottom/auto-hide)
# toggling it...
[ "$hide" = "true" ] && hide="false" || hide="true";
dconf write /org/mate/panel/toplevels/bottom/auto-hide $hide
(由于某种原因,该值在 dconf-editor 中不可见。 )
2)将该脚本分配给mate-keybinding-properties
→自定义快捷键中的某个键。
(对我来说,F10 似乎是个不错的选择。F9 通常用于切换侧边栏,例如在 caja 和 pluma 中,F11 也用于屏幕空间,切换全屏)。
更新内容:增强版
当您打算隐藏并从右到下(在右侧)扔出时减小它的尺寸,当抓取全屏(或右侧捕捉)窗口的滚动条时很可能会无意中触发自动显示...
#!/usr/bin/env bash
# contributed to → https://askubuntu.com/q/843027
hide=$(dconf read /org/mate/panel/toplevels/bottom/auto-hide)
# toggling it...
if [ "$hide" == "true" ]
then
#unhiding
dconf write /org/mate/panel/toplevels/bottom/auto-hide false
dconf write /org/mate/panel/toplevels/bottom/size 140
dconf write /org/mate/panel/toplevels/bottom/orientation "right"
else
#hiding
dconf write /org/mate/panel/toplevels/bottom/auto-hide true
dconf write /org/mate/panel/toplevels/bottom/size 2
dconf write /org/mate/panel/toplevels/bottom/orientation "bottom"
fi