简体   繁体   English

如何删除 Gnome 应用程序的标题栏

[英]How to remove the Title Bar of Gnome applications

Problem问题

I have one Ubuntu20 Desktop( Gnome ) and I want it to be fully black and ideal.我有一个 Ubuntu20 桌面( Gnome ),我希望它是全黑的和理想的。 As reference, I have taken one Ubuntu20 Server and Installed openbox on it.作为参考,我使用了一台 Ubuntu20 服务器并在其上安装了openbox

I hided the title bar of all the applications in OpenBox by editing the configurations in /etc/xdg/openbox/rc.xml and added我通过编辑 /etc/xdg/openbox/rc.xml 中的配置/etc/xdg/openbox/rc.xmlOpenBox中所有应用程序的标题栏并添加了

<application class="*">
      <decor>no</decor>
      <maximized>false</maximized>
    </application>

</applications>

So that it will hide the title-bar of all the applications.这样它将隐藏所有应用程序的标题栏。 Also, I am able to achieve my demand.此外,我能够实现我的需求。 Image shown below as example.下图为示例。 开箱

I want to perform the same on Gnome Desktop as well, but I don't know which config file to be edited for the same.我也想在 Gnome Desktop 上执行相同的操作,但我不知道要编辑哪个配置文件。 Currently, my Gnome Looks like this目前,我的Gnome看起来像这样侏儒

Any help for the following is appreciated Thank you.感谢您对以下内容的任何帮助谢谢。

NOTE: I don't want to use only terminal, but will be using other applications like Firefox, chrome, VLC, etc. without title-bar注意:我不想只使用终端,但会使用其他应用程序,如 Firefox、chrome、VLC 等,没有标题栏

Well, after a few days of searching... I found the solution for my own question.好吧,经过几天的搜索......我找到了自己问题的解决方案。

This might be not the correct way to solve it, but can be used to make things work.这可能不是解决问题的正确方法,但可以用来使事情正常进行。

  1. We need to make sure that Gnome works with Extention.我们需要确保 Gnome 与 Extention 一起工作。
  2. We need to Install Unite Extention for that.为此,我们需要安装 Unite Extension。
  3. Disable all the setting shown below in Unite Extention to get the desired output.在 Unite Extension 中禁用下面显示的所有设置以获得所需的 output。

How to enable extensions如何启用扩展

Install gnome-tweaks tool安装gnome-tweaks tool

sudo apt install gnome-tweaks

Then you can see your application on Show Application > Tweaks然后您可以在Show Application > Tweaks上看到您的应用程序

Method 1 Use gnome-shell-extensions package [easiest and safest way]方法 1 使用 gnome-shell-extensions package [最简单最安全的方法]

Step 1 Install Gnome Shell Extention步骤 1 安装 Gnome Shell 扩展

sudo apt install gnome-shell-extensions

You'll have to reboot your system (or maybe just restart GNOME Shell by pressing <ALT>+F2 and type r and Press Enter , I don't remember it at this point).您必须重新启动系统(或者只需按<ALT>+F2并键入r并按Enter重新启动 GNOME Shell,我现在不记得了)。 After that, start GNOME Tweaks, and you'll find a few extensions installed.之后,启动 GNOME Tweaks,你会发现安装了一些扩展。 You can just toggle the button to start using an installed extension.您只需切换按钮即可开始使用已安装的扩展程序。

Step 2 Install Unite Extention步骤 2 安装 Unite 扩展

wget https://github.com/hardpixel/unite-shell/releases/download/v64/unite-shell-v64.zip 

For the latest release go to https://github.com/hardpixel/unite-shell/releases对于最新版本 go 到https://github.com/hardpixel/unite-shell/releases

And then Extract to extension folder of your home directory然后解压到你的主目录的扩展文件夹

uzip unite-shell-v64.zip -d ~/.local/share/gnome-shell/extensions

Then reboot or reload your Gnome shell by <ALT>+F2 then r and Enter然后通过<ALT>+F2重新启动或重新加载您的 Gnome shell 然后rEnter

Method 2: Install GNOME Shell extensions from a web browser方法 2:从 web 浏览器安装 GNOME Shell 扩展

GNOME project has an entire website dedicated to extensions. GNOME 项目有一个专门用于扩展的整个网站。 That's not it.不是这个。 You can find, install, and manage your extensions on this website itself.您可以在此网站本身上查找、安装和管理您的扩展程序。 No need even for GNOME Tweaks tool.甚至不需要 GNOME Tweaks 工具。

Website: https://extensions.gnome.org/网站: https://extensions.gnome.org/

Step 1: Install browser add-on第一步:安装浏览器插件

You can simply click on the suggested add-on link by your web browser.您只需通过 web 浏览器单击建议的附加链接。 You can install them from the link below as well:您也可以从以下链接安装它们:

For Google Chrome, Chromium, and Vivaldi: Chrome web store .对于 Google Chrome、Chromium 和 Vivaldi: Chrome web 商店

For Firefox: Mozilla Addons .对于 Firefox: Mozilla 插件

For Opera: Opera Addons对于 Opera: Opera 插件

Step 2: Install native connector第 2 步:安装本机连接器

Just installing browser add-on won't help you.仅安装浏览器插件对您没有帮助。 You'll still see an error like:您仍然会看到如下错误:

“Although GNOME Shell integration extension is running, native host connector is not detected. Refer documentation for instructions about installing connector”

This is because you haven't installed the host connector yet.这是因为您尚未安装主机连接器。 To do that, use this command:为此,请使用以下命令:

sudo apt install chrome-gnome-shell

Don't worry about the 'chrome' prefix in the package name.不要担心 package 名称中的“chrome”前缀。 It has nothing to do with Chrome.它与 Chrome 无关。 You don't have to install a separate package for Firefox or Opera here.您不必在此处为 Firefox 或 Opera 安装单独的 package。

Now head over to https://extensions.gnome.org/extension/1287/unite/ and Turn On the Extention.现在转到https://extensions.gnome.org/extension/1287/unite/并打开扩展。

Done It's Installed完成安装

Now go to extensions and open settings for Unite现在 go 到 Unite 的扩展和打开设置

在此处输入图像描述

and disable all settings like this并禁用所有这样的设置在此处输入图像描述

& & 在此处输入图像描述

Now Close the settings and you are done现在关闭设置,你就完成了

Now Your decorators are hidden.现在你的装饰器被隐藏了。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM