swaymsg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
swaymsg: command not found
or when using sudo you get the following error message
sudo: swaymsg: command not found
Solutions to swaymsg: command not found
How To Fix swaymsg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu swaymsg 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 swaymsg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.