swaynag command not found

In this troubleshooting guide we learn how to fix swaynag command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

swaynag: command not found

or when using sudo you get the following error message

sudo: swaynag: command not found

Solutions to swaynag: command not found

How To Fix swaynag: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu swaynag is provided by sway package.

sway is:

sway (SirCmpwn’s Wayland compositor) is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3’s features, plus a few extras. This means it is a minimalist, tiling window manager.

To fix this problem, we can install more using the command below.

sudo apt-get -y install sway

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install sway.

sudo apt -y install sway

Or if you have aptitude installed you can use the following command.

sudo aptitude install sway

Summary

In this tutorial we learn how to fix swaynag command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.