# Comfortable Ubuntu (21.10)


> I had a chance to once again configure fresh ubuntu installation and, while I remember everything, describe basic moments. For me, this post would stay as a reminder, for you, it might reveal some configuration hints.

DISCLAIMER: configuration performed for desktop PC with  22" monitor  (1920x1080 resolution). The most annoying thing in Ubuntu for me is font size which I always reduce.
Also, because  [I need VNC access](https://blog.vyarus.ru/ubuntu-2104-and-up-vnc-access-to-a-locked-session), I use Xorg login instead of wayland. As I write it by memory, actions sequence may not be exact (but, anyway, all required actions should be described).

This is how fresh Ubuntu 21.10 looks:

![Ubuntu-21.10-Impish-Indri-is-ready-to-download-4.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1640669609937/LHT5oJi9d.jpeg)

*See overall toolbars positions

And this is how it could look:

![Screenshot from 2021-12-28 12-14-20.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640668707991/IBS2Hahcw.png)

## Step 0

Install [ubuntu-restricted-extras](https://en.wikipedia.org/wiki/Ubuntu-restricted-extras):

```
sudo apt install ubuntu-restricted-extras
```

Enable  [partner repositories ](https://help.ubuntu.com/community/Repositories/Ubuntu#Enabling_Canonical_Partner_Repositories):


![Other Software tab_001.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640670254628/zevVsXZ_9.png)

Install `Tweaks` utility from ubuntu store:


![Screenshot from 2021-12-28 12-51-35.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640670718947/WCb796nHW.png)

## Language switch shortcut

By default language switched with `super + space`. To change it use `Tweaks` tool:

![Screenshot from 2022-01-26 14-16-14.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643181384450/ZF0toqhzX.png)

In the "Keyboard and Mouse" section click on "Additional Layout Options" and select, for example, `Alt + Shift` there:

![Screenshot from 2022-01-26 13-59-07.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643181470898/L9nvx4W9A.png)

### Scroll lock for alternative language

To indicate alternative language with a scroll lock, you'll need to install `dconf-editor` application:

```
sudo apt install dconf-editor
```

Start it form the apps menu and go to `org.gnome.desktop.input-sources`:


![Screenshot from 2022-01-26 14-11-37.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643181633669/NkRkpTbSM.png)

Add `'grp_led:scroll'` in the "Custom value".

Now on each language switch (with `Alt + Switch` or manually in tray) "Scroll Lock" would indicate alternative language selection.

## Fonts

Install Microsoft fonts (Times New Roman, Arial):

```
sudo apt install ttf-mscorefonts-installer
```

It will be required for chrome.

My preferred monospace font is [Inconsolata-g](https://www.fontmirror.com/inconsolata-g). To install it download otf version, double click, and hit install:


![Screenshot from 2021-12-28 12-58-46.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640671163862/Tn5JQ0WrK.png)

It would be used for console and code (IDE).

Also, download and install `Inconsolata-g for Powerlines.otf` [from here](https://github.com/powerline/fonts/tree/master/Inconsolata-g). This font would be required for chrome (it looks sharper).

Then flush fonts cache:

```
sudo fc-cache -f -v
```

Configure system fonts in `Tweaks` tool:


![ubuntu_fonts.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640672186911/6skUkoxb2.png)


## Chrome

Add chrome source:

```
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt update
```

Install chrome:

```
sudo apt install google-chrome-stable
```

To remove chrome icon from tray: 


```
Chrome settings / Advanced / System
Disable "Continue running background apps when Google Chrome is closed"
``` 

NOTE: **don't** enable "Use GTK+" in Appearance (as it's often suggested) - tabs would look only uglier with it.

To avoid giant tabs (and even more giant tab hints) in chrome customize fonts:

```
Chrome settings / Advanced / Appearance / Customize fonts
```

![chrome_fonts.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640672750297/xZWwXFN8l.png)

Probably, a system restart would be required for changes to take effect (do it later).

## Extensions

All other customizations will require [extensions](https://itsfoss.com/gnome-shell-extensions/):

```
sudo apt install chrome-gnome-shell
```

*Could be already installed

Open [extensions site](https://extensions.gnome.org/). It may ask you to install also a chrome extension (do it).

Here you can find and install new extensions.

Some extensions may be configured only from the `Extensions` application (you can run it from apps menu):

![extensions.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640673593736/t-T0HN7rB.png)

### Windows bar

The most important extension is [Dash-to-Panel](https://extensions.gnome.org/extension/1160/dash-to-panel/) - windows-like bottom panel.

By default, the panel is larger than it should be. To reduce panel size, open options and reduce "Panel thickness" setting below 48:

![Screenshot from 2021-12-28 13-43-27.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640673850031/2kPBW1zY8.png)

By default, bar selections looks horrible (with rounded selections). To fix this I use [Arc](https://github.com/horst3180/arc-theme) theme. But to install it you'll need to first install [User Themes](https://extensions.gnome.org/extension/19/user-themes/) extension. 

```
sudo apt install arc-theme
```

Then open `Tweaks` app "Appearance" section and set "Shell" to "Arc":

![Screenshot from 2021-12-28 13-54-36.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640674493325/Eg_fLDFl0Y.png)

NOTE: it is also highly advised to change "Applications" theme (for example to "Adwaita") to get rid of orange selections (blue selections are much more natural).

### Multi-monitor

To show different toolbars on each monitor (separate applications in toolbar) open dash-to-panel extension options "Behavior" tab:

* Disable "Show favorite applications on secondary panels"
* Enable "Isolate monitors"


![Screenshot from 2022-01-26 13-36-51.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643179031940/8MceMjYuy.png)

Also, make sure that on  "Position" tab "Display panels on all monitors" is enabled

### Different wallpaper on login

Install [Lock screen background](https://extensions.gnome.org/extension/1476/unlock-dialog-background/) extension and set custom background in its options.

### World clocks

If you need to see multiple clocks (if you work with multiple time zones) install "Clocks" from "Ubuntu Software".

All configured additional clocks would appear in the main toolbar popup (when clicking on time).

![time.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640678168413/aEPhSZ2iF.png)

### Mulit-line date

[Date Menu Formatter](https://extensions.gnome.org/extension/4655/date-menu-formatter/) could help with tray date configuration and even do it in windows-style two-lines fashion

![date.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1641638245014/U2EXSgiPZ.png)

### Time only in tray

By default, a "day of month" is shown in tray near time. To remove it use "Tweaks":

![Screenshot from 2021-12-28 14-46-58.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640677649004/eFWSHO104.png)

Under "Top Bar" section disable "Date" switcher and "day of month" part would disappear.

![time_only.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640678308230/JEWjwL70C.png)

### Weather 

First, install the "Weather" app in "Ubuntu Software". Run it and add location.

Then install [Weather in The Clock](https://extensions.gnome.org/extension/1380/weather-in-the-clock/) extension.

Weather icon will appear in tray and weather widget in the main popup (when clicking on date) and by clicking on this widget, the weather app would launch.

![weather.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640675791867/rW-Pf4EHg.png)

### System monitor

It is always good to see what happens under the hood. I prefer to see CPU/memory/network and CPU temperature in the tray:

![metrics.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640678569380/ycjrFcFA6.png)

Install "System Monitor" from "Ubuntu store".

And then install the extension:

```
sudo apt install gnome-shell-extension-system-monitor
```

WARNING: it is important to install it like this and not from [the website](https://extensions.gnome.org/extension/120/system-monitor/) because otherwise, it would not work.

System restart would be required.

After that configure graphs you need from extensions options (click on graph - "Preferences...")

![Screenshot from 2021-12-28 14-23-08.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640676213811/VkReFI0aj.png)

Mark "Display" all graphs you want to see. Also, reduce "Graph Width" (to 50) for each graph.

### Terminal

"Quake-style" terminal (rising from above by hitting F12) is very handy.

![Screenshot from 2021-12-28 14-27-02.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640676510658/x0-WGPv8Q.png)

Install [ddterm](https://extensions.gnome.org/extension/3780/ddterm/) extension.

The tray icon may be removed in options.

NOTE: it is also handy to install [terminator](https://dev.to/xeroxism/how-to-install-terminator-a-linux-terminal-emulator-on-steroids-1m3h) - replacement for the usual terminal which can split into multiple sections.


## Safe eyes

Last but not least: small utility [SafeEyes](https://slgobinath.github.io/SafeEyes/).

All it does is show you a black screen every 15 minutes and force you to do some eye exercises.

It drives me mad sometimes, but it works very well. And it helps, especially with the "dry eyes".

```
sudo add-apt-repository ppa:slgobinath/safeeyes
sudo apt update
sudo apt install safeeyes
```

