translated

This commit is contained in:
geekpi 2020-07-03 08:41:05 +08:00
parent 0c447b83a1
commit b5e4c2d1db
2 changed files with 113 additions and 113 deletions

View File

@ -1,113 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (How to Disable Dock on Ubuntu 20.04 and Gain More Screen Space)
[#]: via: (https://itsfoss.com/disable-ubuntu-dock/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
How to Disable Dock on Ubuntu 20.04 and Gain More Screen Space
======
The launcher on the left side has become the identity of [Ubuntu][1] desktop. It was introduced with [Unity desktop][2] and even [when Ubuntu switched to GNOME][3], it forked Dash to Panel to create a similar dock on [GNOME][4] as well.
Personally, I find it handy for quickly accessing the frequently used applications. But not everyone wants it to take some extra space on the screen.
Starting with [Ubuntu 20.04][5], you can easily disable this dock. Let me show you how to do that graphically and via command line in this quick tutorial.
![][6]
### Disable Ubuntu dock with Extensions app
One of the [main features of Ubuntu 20.04][7] was the introduction of Extensions to manage GNOME extensions on your system. Just look for it in the GNOME menu (press Windows key and start typing):
![Look for Extensions app in the menu][8]
Dont have Extensions app?
If you dont have it installed already, you should enable GNOME Shell Extensions. The Extensions GUI app is part of this package.
```
sudo apt install gnome-shell-extensions
```
This is only valid for [GNOME 3.36][9] or higher version available in Ubuntu 20.04 and higher versions.
Start the extensions app and you should see Ubuntu Dock under the Built-in extensions section. You just have to toggle the button off to disable the dock.
![Disable Ubuntu Dock][10]
The change is immediate and youll see that dock disappears immediately.
You can bring it back the same way. Just toggle it on and it will appear immediately.
So easy to hide the dock in Ubuntu 20.04, isnt it?
### Alternative Method: Disable Ubuntu dock via command line
If you are a terminal enthusiast and prefer to do things in the terminal, I have good news for you. You can disable the Ubuntu dock from command line.
Open a terminal using Ctrl+Alt+T. You probably already know that [keyboard shortcut in Ubuntu][11].
In the terminal, use the following command to list all the available GNOME extensions:
```
gnome-extensions list
```
This will show you an output similar to this:
![List GNOME Extensions][12]
The default Ubuntu dock extension is [[email protected]][13] You can disable it using this command:
```
gnome-extensions disable [email protected]
```
There will be no output message displayed on the screen but youll notice that the launcher or dock disappears from the left side.
If you want, you can enable it again using the same command as above but with enable option this time:
```
gnome-extensions enable [email protected]
```
**Conclusion**
There are ways to disable the dock in Ubuntu 18.04 as well. However, it may lead to unwarranted situations if you try to remove it in 18.04. Removing this package also removes the ubuntu-desktop package and you may end up with a system with broken functionalities like no application menu.
This is the reason why I wont recommend removing it on Ubuntu 18.04.
Its good that Ubuntu 20.04 gives a way to hide the taskbar. Users have more freedom and more screen space. Speaking of more screen space, did you know that you can [remove the top title bar from Firefox and gain more screen space][14]?
I am wondering how do you prefer your Ubuntu desktop? With the dock, without dock or without GNOME?
--------------------------------------------------------------------------------
via: https://itsfoss.com/disable-ubuntu-dock/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://ubuntu.com/
[2]: https://itsfoss.com/keeping-ubuntu-unity-alive/
[3]: https://itsfoss.com/ubuntu-unity-shutdown/
[4]: https://www.gnome.org/
[5]: https://itsfoss.com/download-ubuntu-20-04/
[6]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/disable-dock-in-ubuntu.png?ssl=1
[7]: https://itsfoss.com/ubuntu-20-04-release-features/
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/GNOME-extensions-app-ubuntu.jpg?ssl=1
[9]: https://itsfoss.com/gnome-3-36-release/
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/disable-ubuntu-dock.png?ssl=1
[11]: https://itsfoss.com/ubuntu-shortcuts/
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/list-gnome-extensions.png?ssl=1
[13]: https://itsfoss.com/cdn-cgi/l/email-protection
[14]: https://itsfoss.com/remove-title-bar-firefox/

View File

@ -0,0 +1,113 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (How to Disable Dock on Ubuntu 20.04 and Gain More Screen Space)
[#]: via: (https://itsfoss.com/disable-ubuntu-dock/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
如何在 Ubuntu 20.04 上禁用 Dock 并获得更多屏幕空间
======
左侧的启动器已成为 [Ubuntu][1] 桌面的标识。它是在 [Unity 桌面][2]中引入的,甚至在 [Ubuntu 切换到 GNOME][3]时就有了,它分叉了 Dash to Panel以在 [GNOME][4] 上创建一个类似的 Dock。
就个人而言,我发现它对于快速访问常用应用非常方便。但并非所有人都希望它占用屏幕上的一些额外空间。
从 [Ubuntu 20.04][5] 开始,你可以轻松禁用 dock。在本教程中让我向你展示如何以图形和命令的方式执行此操作。
![][6]
### 通过扩展应用禁用 Ubuntu Dock
[Ubuntu 20.04 的主要功能][7]之一是引入扩展 Extension 应用来管理系统上的 GNOME 扩展。只需在 GNOME 菜单中查找它(按下 Windows 键并输入):
![Look for Extensions app in the menu][8]
没有扩展应用?
如果尚未安装,你应该启用 GNOME Shell Extensions。Extensions GUI 是此软件包的一部分。
```
sudo apt install gnome-shell-extensions
```
这仅对 [GNOME 3.36][9] 或 Ubuntu 20.04(或更高版本) 中的更高版本有效。
启动扩展应用,你应该在“内置”扩展下看到 Ubuntu Dock。你只需要关闭即可禁用 dock。
![Disable Ubuntu Dock][10]
更改是即时的,你会看到 dock 立即消失。
你可以用相同的方式恢复。只需打开它,它就会立即显示。
在 Ubuntu 20.04 中非常容易隐藏 dock不是吗
### 替代方法:通过命令行禁用 Ubuntu dock
如果你是终端爱好者,并且喜欢在终端中做事,那么我有一个对你而言的好消息。你可以从命令行禁用 Ubuntu dock。
使用 Ctrl+Alt+T 打开终端。你可能已经知道 [Ubuntu 中的键盘快捷键][11]。
在终端中,使用以下命令列出所有可用的 GNOME 扩展:
```
gnome-extensions list
```
这将显示类似于以下的输出:
![List GNOME Extensions][12]
默认的 Ubuntu dock 扩展名是 [ubuntu-dock@ubuntu.com][13]。你可以使用以下命令将其禁用:
```
gnome-extensions disable ubuntu-dock@ubuntu.com
```
屏幕上不会显示任何输出,但是你会注意到启动器或 dock 从左侧消失了。
如果需要,你可以使用与上面相同的命令再次启用它,但使用启用选项:
```
gnome-extensions enable ubuntu-dock@ubuntu.com
```
**总结**
在 Ubuntu 18.04 中也有禁用 Dock 的方法。但是,如果你尝试在 18.04 中删除它,这可能会导致不必要的情况。删除此软件包也会删除 ubuntu-desktop 包,最终可能会导致系统崩溃,例如没有应用菜单。
这就是为什么我不建议在 Ubuntu 18.04 上删除它的原因。
好消息是 Ubuntu 20.04 提供了一种隐藏任务栏的方法。用户拥有更大的自由度和更多的屏幕空间。说到更多的屏幕空间,你是否知道可以[从 Firefox 移除顶部标题栏并获得更多的屏幕空间][14]
我想知道你喜欢怎样的 Ubuntu 桌面?有 dock没有 dock 还是没有 GNOME
--------------------------------------------------------------------------------
via: https://itsfoss.com/disable-ubuntu-dock/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://ubuntu.com/
[2]: https://itsfoss.com/keeping-ubuntu-unity-alive/
[3]: https://itsfoss.com/ubuntu-unity-shutdown/
[4]: https://www.gnome.org/
[5]: https://itsfoss.com/download-ubuntu-20-04/
[6]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/disable-dock-in-ubuntu.png?ssl=1
[7]: https://itsfoss.com/ubuntu-20-04-release-features/
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/GNOME-extensions-app-ubuntu.jpg?ssl=1
[9]: https://itsfoss.com/gnome-3-36-release/
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/disable-ubuntu-dock.png?ssl=1
[11]: https://itsfoss.com/ubuntu-shortcuts/
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/list-gnome-extensions.png?ssl=1
[13]: https://itsfoss.com/cdn-cgi/l/email-protection
[14]: https://itsfoss.com/remove-title-bar-firefox/