Software & AppsOperating SystemLinux

How To Install i3-gaps on Ubuntu 22.04 Jammy Jellyfish?

Ubuntu 14

In this guide, we will walk you through the process of installing i3-gaps on Ubuntu 22.04 Jammy Jellyfish. i3-gaps is an improved version of i3wm, a popular tiling window manager for Linux. It provides additional features not available in the original i3, such as gaps between windows, which can significantly improve the aesthetics of your desktop.

Quick Answer

To install i3-gaps on Ubuntu 22.04 Jammy Jellyfish, you can either build it from source by cloning the i3-gaps repository from GitHub and following the installation steps, or you can use the Regolith PPA to install pre-built i3-gaps packages. Alternatively, you can wait for the next i3 release, which will include i3-gaps.

Prerequisites

Before we begin, make sure that you have a working Ubuntu 22.04 installation. You should also have administrative access to your system, as the installation process will require the use of the sudo command.

Method 1: Build from Source

Installing Dependencies

The first step is to install the necessary dependencies. Open a terminal and run the following command:

sudo apt install meson asciidoc

sudo is used to run commands with administrative privileges. apt is the package manager used by Ubuntu, and install tells it to install the specified packages. meson and asciidoc are required to build i3-gaps from source.

Cloning the Repository

Next, we need to clone the i3-gaps repository from GitHub. First, create a temporary build directory and navigate to it:

mkdir /tmp/build
cd /tmp/build

Then, clone the repository:

git clone https://www.github.com/Airblader/i3 i3-gaps

git is a version control system, and clone is used to copy a repository. The URL that follows is the location of the i3-gaps repository.

Building and Installing

Switch to the i3-gaps directory, update the repository, and build and install i3-gaps:

cd i3-gaps
git checkout gaps && git pull
meson -Ddocs=true -Dmans=true ../build
meson compile -C ../build
sudo meson install -C ../build

checkout is used to switch to a different branch of the repository, in this case, the gaps branch. pull updates the repository. The meson commands are used to build and install i3-gaps.

Configuring i3-gaps

Finally, log out and log back in to refresh the i3 configuration. Then, modify the i3 config file to enable gaps by adding the following lines:

gaps inner 5
gaps outer 5

These lines set the size of the inner and outer gaps, respectively.

Method 2: Use Regolith PPA

If you prefer not to build from source, you can use the Regolith PPA, which provides pre-built i3-gaps packages for Ubuntu.

Adding the PPA

First, add the Regolith PPA to your system:

sudo add-apt-repository ppa:regolith-linux/release

add-apt-repository is used to add a new PPA (Personal Package Archive) to your system. PPAs are repositories that provide additional packages for Ubuntu.

Installing i3-gaps

Next, update the package list and install i3-gaps:

sudo apt update
sudo apt install i3-gaps

update updates the package list, and install i3-gaps installs the i3-gaps package.

Finally, log out and log back in to refresh the i3 configuration.

Method 3: Wait for the Next i3 Release

According to a Reddit post, i3-gaps has been integrated into i3 and will be available in the next version. If you prefer, you can wait for the next i3 release and install i3 directly from the official repositories.

Conclusion

We have covered two methods of installing i3-gaps on Ubuntu 22.04 Jammy Jellyfish: building from source and using the Regolith PPA. We have also discussed the possibility of waiting for the next i3 release, which will include i3-gaps. We hope this guide has been helpful in setting up i3-gaps on your system. Happy tiling!

What is i3-gaps?

i3-gaps is an improved version of i3wm, a tiling window manager for Linux. It provides additional features not available in the original i3, such as gaps between windows, which can significantly improve the aesthetics of your desktop.

How do I install i3-gaps on Ubuntu 22.04 Jammy Jellyfish?

There are three methods to install i3-gaps on Ubuntu 22.04 Jammy Jellyfish. You can either build it from source, use the Regolith PPA, or wait for the next i3 release where i3-gaps will be included. The guide provides detailed instructions for each method.

What are the prerequisites for installing i3-gaps?

Before installing i3-gaps, make sure you have a working Ubuntu 22.04 installation and administrative access to your system. You will also need to install the meson and asciidoc packages, which can be done using the sudo apt install meson asciidoc command.

How can I enable gaps in i3-gaps?

After installing i3-gaps, you need to modify the i3 config file to enable gaps. Log out and log back in to refresh the configuration, then add the following lines to the i3 config file:

gaps inner 5
gaps outer 5

These lines set the size of the inner and outer gaps, respectively. You can adjust the values according to your preference.

Can I install i3-gaps on Ubuntu using the official repositories?

As of now, i3-gaps is not available in the official Ubuntu repositories. However, you can use the Regolith PPA or build it from source using the instructions provided in the guide. Alternatively, you can wait for the next i3 release, as i3-gaps has been merged into i3 and will be included in the next version.

Leave a Comment

Your email address will not be published. Required fields are marked *