wmctrl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
wmctrl: command not found
or when using sudo you get the following error message
sudo: wmctrl: command not found
Solutions to wmctrl: command not found
How To Fix wmctrl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu wmctrl is provided by wmctrl package.
wmctrl is:
Wmctrl is a command line tool to interact with an EWMH/NetWM compatible X Window Manager (examples include Enlightenment, icewm, kwin, metacity, and sawfish).
Wmctrl provides command line access to almost all the features defined in the EWMH specification. For example it can maximize windows, make them sticky, set them to be always on top. It can switch and resize desktops and perform many other useful operations.
To fix this problem, we can install more using the command below.
sudo apt-get -y install wmctrl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install wmctrl.
sudo apt -y install wmctrl
Or if you have aptitude installed you can use the following command.
sudo aptitude install wmctrl
Summary
In this tutorial we learn how to fix wmctrl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.