mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
translated
This commit is contained in:
parent
7c545c902e
commit
0af62662d8
@ -1,87 +0,0 @@
|
||||
[#]: subject: "Add Minimize and Maximize Buttons in GNOME"
|
||||
[#]: via: "https://itsfoss.com/gnome-minimize-button/"
|
||||
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
|
||||
[#]: collector: "lujun9972/lctt-scripts-1693450080"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
Add Minimize and Maximize Buttons in GNOME
|
||||
======
|
||||
|
||||
Unlike Ubuntu, [distributions like Fedora][1] and Arch Linux give you vanilla GNOME and one thing that may bother you is the lack of minimize and maximize buttons on the application windows.
|
||||
|
||||
![No minimize or maximize button in application windows, only close button][2]
|
||||
|
||||
GNOME expects you to use the application switcher (Alt+Tab) or utilize the activities area (Super key) to just switch between running applications, instead of minimizing it.
|
||||
|
||||
The good thing is that you don't have to live like that if you don't want it.
|
||||
|
||||
Let me share how you can bring back the minimize and maximize buttons in GNOME using both GUI and command line options.
|
||||
|
||||
### Method 1: Enable minimize and maximize buttons using GNOME Tweaks
|
||||
|
||||
GNOME Tweaks tool allows you customize various aspects of GNOME. Enabling minimize windows buttons is one of them.
|
||||
|
||||
Install GNOME Tweaks tool using your distribution's package manager first.
|
||||
|
||||
Run the application and go to the Windows Titlebars from the left sidebar. You'll see the options to add minimize and maximize buttons here,
|
||||
|
||||
![][3]
|
||||
|
||||
You can choose either or both. If you don't want it anymore, **you can disable the buttons the same way in GNOME Tweaks tool**.
|
||||
|
||||
💡
|
||||
|
||||
You can also choose to put these control buttons on the left side if you want. The option is right there at the end of the Titelbar Buttons options.
|
||||
|
||||
### Method 2: Use command line to enable minimize and maximize buttons
|
||||
|
||||
The gsettings command has the option to change the button layout and add the minimize and maximize buttons.
|
||||
|
||||
```
|
||||
|
||||
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
|
||||
|
||||
```
|
||||
|
||||
As you can guess, if you want **to disable any of the buttons, you run the same command but omit the undesired one from the command**.
|
||||
|
||||
💡
|
||||
|
||||
You may also move the windows control buttons to the left by putting the colon in right side in the command:
|
||||
gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:"
|
||||
|
||||
### Getting inspired by macOS is not always a good thing
|
||||
|
||||
Clearly, this 'no minimize button' design is inspired by Apple's macOS. I remember that around 10 years back, macOS used to have the Windows control on the left. So Ubuntu Unity also tried keeping controls on the left side by default.
|
||||
|
||||
Apple is weird. They have good designs most of the time but they prioritize design over use experience at times. The 'magic mouse' is an example.
|
||||
|
||||
> “Magic Mouse loved by users”. You sure about that? [pic.twitter.com/hxGtTxIrlu][4]
|
||||
>
|
||||
> — Stuart (@stuwieface) [April 20, 2021][5]
|
||||
|
||||
I don't see why GNOME developers have this need of getting inspired by every design, specially the poor ones.
|
||||
|
||||
But that's just my opinion. I am happy that there exists a quick and easy solution to bring back the minimize and maximize buttons in GNOME.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/gnome-minimize-button/
|
||||
|
||||
作者:[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://itsfoss.com/best-fedora-linux-distributions/
|
||||
[2]: https://itsfoss.com/content/images/2023/10/missing-minimize-button-gnome.png
|
||||
[3]: https://itsfoss.com/content/images/2023/10/enable-minimize-maximize-windows-option-gnome-tweaks.png
|
||||
[4]: https://t.co/hxGtTxIrlu
|
||||
[5]: https://twitter.com/stuwieface/status/1384561367223521286?ref_src=twsrc%5Etfw
|
@ -0,0 +1,87 @@
|
||||
[#]: subject: "Add Minimize and Maximize Buttons in GNOME"
|
||||
[#]: via: "https://itsfoss.com/gnome-minimize-button/"
|
||||
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
|
||||
[#]: collector: "lujun9972/lctt-scripts-1693450080"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
在 GNOME 中添加最小化和最大化按钮
|
||||
======
|
||||
|
||||
与 Ubuntu 不同,[Fedora][1] 和 Arch Linux 等发行版为你提供了原生的 GNOME,但可能让你烦恼的一件事是应用窗口上缺少最小化和最大化按钮。
|
||||
|
||||
![No minimize or maximize button in application windows, only close button][2]
|
||||
|
||||
GNOME 希望你使用应用切换器(Alt+Tab)或使用活动区域(超级键)在正在运行的应用之间切换,而不是最小化它。
|
||||
|
||||
好消息是,如果你不想要的话,你不必这样。
|
||||
|
||||
让我分享一下如何使用 GUI 和命令行选项恢复 GNOME 中的最小化和最大化按钮。
|
||||
|
||||
### 方法 1:使用 GNOME Tweaks 启用最小化和最大化按钮
|
||||
|
||||
GNOME Tweaks 工具允许你自定义 GNOME 的各个方面。启用最小化窗口按钮就是其中之一。
|
||||
|
||||
首先使用发行版的包管理器安装 GNOME Tweaks 工具。
|
||||
|
||||
运行应用并从左侧边栏进入 Windows 标题栏。你将在此处看到添加最小化和最大化按钮的选项,
|
||||
|
||||
![][3]
|
||||
|
||||
你可以选择其中一个或两者。如果你不再需要它,**你可以在 GNOME Tweaks 工具中以相同的方式禁用按钮**。
|
||||
|
||||
💡
|
||||
|
||||
如果需要,你还可以选择将这些控制按钮放在左侧。该选项位于标题栏按钮选项的末尾。
|
||||
|
||||
### 方法 2:使用命令行启用最小化和最大化按钮
|
||||
|
||||
gsettings 命令可以选择更改按钮布局并添加最小化和最大化按钮。
|
||||
|
||||
````
|
||||
|
||||
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
|
||||
|
||||
````
|
||||
|
||||
正如你所猜测的,如果你想要**禁用任何按钮,你可以运行相同的命令,但从命令中省略不需要的按钮**。
|
||||
|
||||
💡
|
||||
|
||||
你还可以通过将冒号放在命令的右侧来将 Windows 控制按钮移动到左侧:
|
||||
gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:"
|
||||
|
||||
### 受到 macOS 的启发并不总是一件好事
|
||||
|
||||
显然,这种“无最小化按钮”的设计灵感来自苹果的 macOS。我记得大约 10 年前,macOS 曾经将窗口控件放在左侧。因此 Ubuntu Unity 也尝试默认将控件保留在左侧。
|
||||
|
||||
苹果很奇怪。他们大多数时候都有很好的设计,但有时他们会优先考虑设计而不是使用体验。“magic mouse”就是一个例子。
|
||||
|
||||
> “Magic Mouse 深受用户喜爱”。你确定? [pic.twitter.com/hxGtTxIrlu][4]
|
||||
>
|
||||
> — Stuart (@stuwieface) [2021 年 4 月 20 日][5]
|
||||
|
||||
我不明白为什么 GNOME 开发者需要从每一个设计中获得灵感,尤其是那些糟糕的设计。
|
||||
|
||||
但那只是我的个人意见。我很高兴有一个快速简单的解决方案可以恢复 GNOME 中的最小化和最大化按钮。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/gnome-minimize-button/
|
||||
|
||||
作者:[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://itsfoss.com/best-fedora-linux-distributions/
|
||||
[2]: https://itsfoss.com/content/images/2023/10/missing-minimize-button-gnome.png
|
||||
[3]: https://itsfoss.com/content/images/2023/10/enable-minimize-maximize-windows-option-gnome-tweaks.png
|
||||
[4]: https://t.co/hxGtTxIrlu
|
||||
[5]: https://twitter.com/stuwieface/status/1384561367223521286?ref_src=twsrc%5Etfw
|
Loading…
Reference in New Issue
Block a user