How to Install and Uninstall triggerhappy Ubuntu 22.04

Updated: October 7, 2022

Triggerhappy watches connected input devices for certain key presses or other input events and runs administrator-configured commands when they occur. Unlike other hotkey daemons, it runs as a persistent, systemwide service and therefore can be used even outside the context of a user or X11 session. In this tutorial, I will show you how to install triggerhappy on Ubuntu 22.04.

Requirements to install

  • OS: triggerhappy needs Ubuntu 22.04 to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install triggerhappy on Ubuntu 22.04

Install triggerhappy Ubuntu 22.04

triggerhappy is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install triggerhappy using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install triggerhappy on your Ubuntu.

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install triggerhappy Ubuntu by executing this command in the terminal.

sudo apt -y install triggerhappy

Install triggerhappy using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After that, you can now install triggerhappy, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install triggerhappy Ubuntu by executing this command in the terminal.

sudo aptitude -y install triggerhappy

Uninstall triggerhappy on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a triggerhappy, can be easily uninstalled by anyone.

You can uninstall triggerhappy Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove triggerhappy

If you want to uninstall triggerhappy and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge triggerhappy

Conclusion

In this tutorial, I showed you ways to install triggerhappy on Ubuntu 22.04 and some ways to uninstall triggerhappy too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.