隐藏概览中的顶部栏

Zan*_*ry1 5 gnome gnome-shell-extension 21.10 gtk4

我想做的事:

当概览/应用程序网格打开时隐藏 GNOME 面板,但将其显示在桌面上。因此,当我转到活动概述或查看我的应用程序时,该面板不存在。但当我查看桌面时,它就在那里,我可以与它以及所有内容进行交互。

我尝试过的:

我尝试过隐藏顶部栏扩展的各种变体,但没有任何运气。

理论上

您应该能够进行扩展来执行此操作,对吗?我对如何为 GNOME 进行扩展知之甚少,所以任何帮助将不胜感激

小智 1

对于本机面板

通过 fthx 安装隐藏面板扩展

打开 ~/.local/share/gnome-shell/extensions/hide-panel@fthx/extension.js

调整AppMenu.container.hide()

        this.showing = Overview.connect('showing', this._show_panel.bind(this));
        this.hiding = Overview.connect('hiding', this._hide_panel.bind(this));
Run Code Online (Sandbox Code Playgroud)

        this.showing = Overview.connect('hiding', this._show_panel.bind(this));
        this.hiding = Overview.connect('showing', this._hide_panel.bind(this));
Run Code Online (Sandbox Code Playgroud)

瞧。

现在,此扩展面板隐藏起来。