使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
Ubuntu GNOME
![](/data/attachment/album/201910/31/182712cxeq2vvble33zie3.jpg)


你可以通过多种方法来调整 Ubuntu，以自定义其外观和行为。我发现最简单的方法是使用 [GNOME 优化工具](https://wiki.gnome.org/action/show/Apps/Tweaks?action=show&redirect=Apps%2FGnomeTweakTool)。它也被称为 GNOME Tweak 或简单地称为 Tweak（优化）。


在过去的教程中，我已经多次介绍过它。在这里，我列出了你可以使用此工具执行的所有主要优化。


我在这里使用的是 Ubuntu，但是这些步骤应该适用于使用 GNOME 桌面环境的任何 Linux 发行版。


### 在 Ubuntu 18.04 或其它版本上安装 GNOME 优化工具


GNOME 优化工具可从 [Ubuntu 中的 Universe 存储库](https://itsfoss.com/ubuntu-repositories/)中安装，因此请确保已在“软件和更新”工具中启用了该仓库：


![在 Ubuntu 中启用 Universe 存储库](/data/attachment/album/201910/31/182715ryx4hydhjiy6qzhe.png)


之后，你可以从软件中心安装 GNOME 优化工具。只需打开软件中心并搜索 “GNOME Tweaks” 并从那里安装它：


![从软件中心安装 GNOME 优化工具](/data/attachment/album/201910/31/182716av8z4yt8j66ty6ki.jpg)


或者，你也可以使用命令行通过 [apt 命令](https://itsfoss.com/apt-command-guide/)安装此软件：



```
sudo apt install gnome-tweaks
```

### 用优化工具定制 GNOME 桌面


GNOME 优化工具使你可以进行许多设置更改。其中的某些更改（例如墙纸更改、启动应用程序等）也可以在官方的“系统设置”工具中找到。我将重点介绍默认情况下“设置”中不可用的优化。


#### 1、改变主题


你可以通过各种方式[在 Ubuntu 中安装新主题](https://itsfoss.com/install-themes-ubuntu/)。但是，如果要更改为新安装的主题，则必须安装GNOME 优化工具。


你可以在“<ruby> 外观 <rt>  Appearance </rt></ruby>”部分找到主题和图标设置。你可以浏览可用的主题和图标并设置你喜欢的主题和图标。更改将立即生效。


![通过 GNOME 优化更改主题](/data/attachment/album/201910/31/182717jq6f5qhriqg5t40f.jpg)


#### 2、禁用动画以提速你的桌面体验


应用程序窗口的打开、关闭、最大化等操作都有一些细微的动画。你可以禁用这些动画以稍微加快系统的速度，因为它会稍微使用一点资源。


![禁用动画以获得稍快的桌面体验](/data/attachment/album/201910/31/182719edxdxe04i9l1a16d.jpg)


#### 3、控制桌面图标


至少在 Ubuntu 中，你会在桌面上看到“<ruby> 家目录 <rt>  Home </rt></ruby>”和“<ruby> 垃圾箱 <rt>  Trash </rt></ruby>”图标。如果你不喜欢，可以选择禁用它。你还可以选择要在桌面上显示的图标。


![在 Ubuntu 中控制桌面图标](/data/attachment/album/201910/31/182719rizil2afi1zfhf9j.jpg)


#### 4、管理 GNOME 扩展


我想你可能知道 [GNOME 扩展](https://extensions.gnome.org/)。这些是用于桌面的小型“插件”，可扩展 GNOME 桌面的功能。有[大量的 GNOME 扩展](https://itsfoss.com/best-gnome-extensions/)，可用于在顶部面板中查看 CPU 消耗、获取剪贴板历史记录等等。


我已经写了一篇[安装和使用 GNOME 扩展](https://itsfoss.com/gnome-shell-extensions/)的详细文章。在这里，我假设你已经在使用它们，如果是这样，可以从 GNOME 优化工具中对其进行管理。


![管理 GNOME 扩展](/data/attachment/album/201910/31/182720d5cxfc9x1djx26zi.jpg)


#### 5、改变字体和缩放比例


你可以[在 Ubuntu 中安装新字体](https://itsfoss.com/install-fonts-ubuntu/)，并使用这个优化工具在系统范围应用字体更改。如果你认为桌面上的图标和文本太小，也可以更改缩放比例。


![更改字体和缩放比例](/data/attachment/album/201910/31/182722o1sbfzbwog0efp6n.jpg)


#### 6、控制触摸板行为，例如在键入时禁用触摸板，使触摸板右键单击可以工作


GNOME 优化工具还允许你在键入时禁用触摸板。如果你在笔记本电脑上快速键入，这将很有用。手掌底部可能会触摸触摸板，并导致光标移至屏幕上不需要的位置。


在键入时自动禁用触摸板可解决此问题。


![键入时禁用触摸板](/data/attachment/album/201910/31/182725ylyy3fk1b9l0lflx.jpg)


你还会注意到[当你按下触摸板的右下角以进行右键单击时，什么也没有发生](https://itsfoss.com/fix-right-click-touchpad-ubuntu/)。你的触摸板并没有问题。这是一项系统设置，可对没有实体右键按钮的任何触摸板（例如旧的 Thinkpad 笔记本电脑）禁用这种右键单击功能。两指点击可为你提供右键单击操作。


你也可以通过在“<ruby> 鼠标单击模拟 <rt>  Mouse Click Simulation </rt></ruby>”下设置为“<ruby> 区域 <rt>  Area </rt></ruby>”中而不是“<ruby> 手指 <rt>  Fingers </rt></ruby>”来找回这项功能。


![修复右键单击问题](/data/attachment/album/201910/31/182725b6ptxtobjaft6brg.jpg)


你可能必须[重新启动 Ubuntu](https://itsfoss.com/schedule-shutdown-ubuntu/) 来使这项更改生效。如果你是 Emacs 爱好者，还可以强制使用 Emacs 键盘绑定。


#### 7、改变电源设置


电源这里只有一个设置。它可以让你在盖上盖子后将笔记本电脑置于挂起模式。


![GNOME 优化工具中的电源设置](/data/attachment/album/201910/31/182726wxotc288ptz9m77x.jpg)


#### 8、决定什么显示在顶部面板


桌面的顶部面板显示了一些重要的信息。在这里有日历、网络图标、系统设置和“<ruby> 活动 <rt>  Activities </rt></ruby>”选项。


你还可以[显示电池百分比](https://itsfoss.com/display-battery-ubuntu/)、添加日期及时间，并显示星期数。你还可以启用鼠标热角，以便将鼠标移至屏幕的左上角时可以获得所有正在运行的应用程序的活动视图。


![GNOME 优化工具中的顶部面板设置](/data/attachment/album/201910/31/182726vllarh1cmfy88a5m.jpg)


如果将鼠标焦点放在应用程序窗口上，你会注意到其菜单显示在顶部面板中。如果你不喜欢这样，可以将其关闭，然后应用程序菜单将显示应用程序本身。


#### 9、配置应用窗口


你可以决定是否在应用程序窗口中显示最大化和最小化选项（右上角的按钮）。你也可以改变它们的位置到左边或右边。


![应用程序窗口配置](/data/attachment/album/201910/31/182728zbnsssahsrfemsfg.jpg)


这里还有其他一些配置选项。我不使用它们，但你可以自行探索。


#### 10、配置工作区


GNOME 优化工具还允许你围绕工作区配置一些内容。


![在 Ubuntu 中配置工作区](/data/attachment/album/201910/31/182729t6te06mz36sdejkb.jpg)


### 总结


对于任何 GNOME 用户，GNOME 优化（Tweaks）工具都是必备工具。它可以帮助你配置桌面的外观和功能。 我感到惊讶的是，该工具甚至没有出现在 Ubuntu 的主存储库中。我认为应该默认安装它，要不，你就得在 Ubuntu 中手动安装 GNOME 优化工具。


如果你在 GNOME 优化工具中发现了一些此处没有讨论的隐藏技巧，为什么不与大家分享呢？




---


via: <https://itsfoss.com/gnome-tweak-tool/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[wxy](https://github.com/wxy) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

You can tweak Ubuntu in several ways to customize its looks and behavior. The easiest way I find is by using the [GNOME Tweaks](https://wiki.gnome.org/action/show/Apps/Tweaks?action=show&%3Bredirect=Apps%2FGnomeTweakTool&ref=itsfoss.com), also called Tweaks.

I have mentioned it numerous times in my tutorials in the past. I list all the significant tweaks you can perform with this tool.

I have used Ubuntu here, but the steps should apply to any Linux distribution using the GNOME desktop environment.

## Install the GNOME Tweaks on Ubuntu

The GNOME Tweaks is available in the Universe repository in Ubuntu, so [make sure that you have it enabled in your Software & Updates tool](https://itsfoss.com/ubuntu-repositories/).

After that, you can install GNOME Tweaks from the software center. Just open the Software Centre and search for GNOME Tweaks and install it from there:

![Install GNOME Tweaks from Ubuntu Software Center](https://itsfoss.com/content/images/2023/03/install-gnome-tweaks-from-software-center.png)

Alternatively, you may also use the command line to install software with the [apt command](https://itsfoss.com/apt-command-guide/):

```
sudo apt install gnome-tweaks
```


## Customizing GNOME desktop with the Tweaks tool

### 1. Power Settings: Suspend the Laptop when the lid is closed

It allows you to put your laptop in suspend mode when the lid is closed.

![Toggling the "suspend when laptop lid is closed" button in the General section of GNOME Tweaks will suspend the laptop automatically when the lid is closed](https://itsfoss.com/content/images/2023/03/suspend-lid.png)

### 2. Change themes

You can [install new themes in Ubuntu](https://itsfoss.com/install-themes-ubuntu/) in various ways. But if you want to change to the newly installed theme, you’ll have to install GNOME Tweaks.

You can find the theme and icon settings in the *Appearance* section. You can browse through the available themes and icons and set the ones you like. The changes take effect immediately.

![Using the Appearance Tab in GNOME Tweaks to change the Icon, GTK and Shell theme in Ubuntu](https://itsfoss.com/content/images/2023/03/ubuntu-themes.png)

[.](https://itsfoss.com/gnome-shell-extensions/)

**extension enabled****user themes**### 3. Change fonts and scaling factor

You can [install new fonts in Ubuntu](https://itsfoss.com/install-fonts-ubuntu/) and apply the system-wide font change using the Tweaks tool. You can also change the scaling factor if you think the icons, and text are way too small on your desktop.

![Change fonts and scaling factor in Ubuntu using GNOME Tweaks' Fonts Tab](https://itsfoss.com/content/images/2023/03/fonts.png)

### 4. Control touchpad behaviour

The GNOME Tweaks also allow you to disable the touchpad while typing. This is useful if you type fast on a laptop. The bottom of your palm may touch the touchpad and the cursor moves away to an undesired location on the screen.

Automatically disabling the touchpad while typing fixes this problem.

![Toggle the "Disable the Touchpad while typing" button in Keyboard and Mouse Tab to avoid unnecessary touchpad input during typing.](https://itsfoss.com/content/images/2023/03/disable-touchpad.png)

You’ll also notice that [when you press the bottom right corner of your touchpad for a right click, nothing happens](https://itsfoss.com/fix-right-click-touchpad-ubuntu/). There is nothing wrong with your touchpad. It’s a system setting, that disables the right-clicking this way for any touchpad that doesn’t have a real right-click button (like the old Thinkpad laptops). Two finger click gives you the right click.

You can also get this back by choosing Area under Mouse Click Simulation instead of Fingers.

![In Keyboards and Mouse Tab, Mouse Click Emulation can be set to "Area" to get right-click by clicking on the bottom right.](https://itsfoss.com/content/images/2023/03/mouse-click-emulation-area.png)

You may have to [restart Ubuntu](https://itsfoss.com/schedule-shutdown-ubuntu/) in order to take the changes into effect. If you are an Emacs lover, you can also force keybindings from Emacs.

![In the Keyboard and Mouse Tab, Force keybindings from Emacs](https://itsfoss.com/content/images/2023/03/emacs-input.png)

It's very easy to forget the location of your Mouse cursor sometimes. GNOME Tweaks provides an option, to highlight the current position of Mouse Cursor, in a wave manner.

![Settings to highlight the current location of mouse pointer in Keyboard and Mouse Tab of GNOME Tweaks](https://itsfoss.com/content/images/2023/03/pointer-location.png)

Enable this **Pointer Location** button in the *Keyboard and mouse section to get this*.

### 5. Decide what’s displayed in the top panel

The top panel on your desktop shows a few important things. You have the calendar, network icon, system settings and Activities option.

You can also [display battery percentage](https://itsfoss.com/display-battery-ubuntu/), add date along with day and time and show week numbers. You can also enable hot corners so that if you take your mouse to the top left corner of the screen, you’ll get the activities overview with all the running applications.

![Various options related to Topbar panel of Ubuntu in GNOME Tweaks' Top Bar Section](https://itsfoss.com/content/images/2023/03/topbar.png)

If you have the mouse focus on an application window, you’ll notice that its menu is displayed in the top panel. If you don’t like it, you may toggle it off and then the application menu will be available on the application itself.

### 6. Configure the application window title bar

These are minor tweaks that come in handy sometimes. By default, double-clicking on a Window will maximize it. This behaviour can be changed to some other actions using GNOME Tweaks.

![Settings to change the behaviour of various mouse clicks on the titlebar of a window. You can locate this in "Window Titlebars" Tab of GNOME Tweaks](https://itsfoss.com/content/images/2023/03/titlebar-click-actions.png)

Similarly, you can change the behaviour of Middle-click or secondary click on a window title bar to your liking, from the available options.

Also, you can decide if [maximize and minimize options](https://itsfoss.com/gnome-minimize-button/) (the buttons on the top right corner) will be shown in the application window. You may also change their positioning between left and right.

![Settings related to the title bar of Windows, like Maximise/Minimize button, placement etc. Find this in "Window Titlebars" Tab of GNOME Tweaks"](https://itsfoss.com/content/images/2023/03/titlebar-buttons.png)

### 7. Configuring application windows

On the **Windows** tab of GNOME Tweaks, you get several tweaks related to the appearance of Windows.

- Toggling
**Attach Modal Dialogs**, will attach the dialog box to the parent windows and cannot be moved individually. - You can open new windows in the centre of the screen, by toggling the
**Centre New Windows**option.

![Windows Positioning related settings in "Windows" Tab of GNOME Tweaks](https://itsfoss.com/content/images/2023/03/windows-positioning.png)

The default Window focus mode is *Click to Focus*. This means you can change the focus to another window by clicking on it. This can be changed to *hovering* or *secondary-click* to change focus.

![Windows Focus related settings in "Windows" tab of GNOME Tweaks](https://itsfoss.com/content/images/2023/03/windows-focus.png)

## In the end…

Now you read about the GNOME Tweaks. How about some other ways to tweak your system?

[15 Simple Tips to Customize Ubuntu GNOMESome basic and interesting GNOME customization tips for enriching your experience and getting more out of your Ubuntu desktop.](https://itsfoss.com/gnome-tricks-ubuntu/)![](https://itsfoss.com/content/images/2023/03/gnome-customisation-tips.png)


![](https://itsfoss.com/content/images/2023/03/gnome-customisation-tips.png)

Maybe try some cool themes to change the looks of your system.

[18 Best GTK Themes for Ubuntu and other Linux DistributionsBrief: Let’s have a look at some beautiful GNOME themes that you can use not only in Ubuntu but other Linux distributions that use GNOME. Even though we have plenty of Linux distributions that offer a good user experience, using a custom theme can take you for a rollercoaster](https://itsfoss.com/best-gtk-themes/)![](https://itsfoss.com/content/images/wordpress/2018/03/flatremix.png)


![](https://itsfoss.com/content/images/wordpress/2018/03/flatremix.png)

The GNOME Tweaks is a must-have utility for any GNOME user. It helps you configure the looks and functionality of the desktop. I find it surprising that this tool is not even in the Main repository of Ubuntu. In my opinion, it should be installed by default. Till then, you’ll have to install the GNOME Tweaks tool in Ubuntu manually.

If you find some hidden gem in GNOME Tweaks that hasn’t been discussed here, why not share it with the rest of us?