swayidle command not found

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

Introduction

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

swayidle: command not found

or when using sudo you get the following error message

sudo: swayidle: command not found

Solutions to swayidle: command not found

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

In Ubuntu swayidle is provided by swayidle package.

swayidle is:

This is sway’s idle management daemon, swayidle. It is compatible with any Wayland compositor which implements the KDE idle protocol. See the man page, swayidle(1), for instructions on configuring swayidle.

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

sudo apt-get -y install swayidle

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

You can also use apt command to install swayidle.

sudo apt -y install swayidle

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

sudo aptitude install swayidle

Summary

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