How To Install triggerhappy on Kali Linux

In this tutorial we learn how to install triggerhappy on Kali Linux. triggerhappy is global hotkey daemon for Linux

Introduction

In this tutorial we learn how to install triggerhappy on Kali Linux.

What is triggerhappy

triggerhappy is:

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.

It can handle a wide variety of devices (keyboards, joysticks, wiimote, etc.), as long as they are presented by the kernel as generic input devices. No kernel patch is required. The daemon is a userspace program that polls the /dev/input/event? interfaces for incoming key, button and switch events. A single daemon can monitor multiple input devices and can dynamically add additional ones. Hotkey handlers can be assigned to dedicated (tagged) devices or globally.

For example, this package might be useful on a headless system to use input events generated by a remote control to control an mpd server, but can also be used to allow the adjustment of audio and network status on a notebook without relying on user specific configuration.

Key combinations are supported as well as the hotplugging of devices using a udev hotplug script; the running daemon can also be influenced by a client program, e.g. to temporarily pause the processing of events or switch to a different set of hotkey bindings.

There are three methods to install triggerhappy on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install triggerhappy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install triggerhappy using apt-get by running the following command:

sudo apt-get -y install triggerhappy

Install triggerhappy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install triggerhappy using apt by running the following command:

sudo apt -y install triggerhappy

Install triggerhappy Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install triggerhappy using aptitude by running the following command:

sudo aptitude -y install triggerhappy

How To Uninstall triggerhappy on Kali Linux

To uninstall only the triggerhappy package we can use the following command:

sudo apt-get remove triggerhappy

Uninstall triggerhappy And Its Dependencies

To uninstall triggerhappy and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove triggerhappy

Remove triggerhappy Configurations and Data

To remove triggerhappy configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge triggerhappy

Remove triggerhappy configuration, data, and all of its dependencies

We can use the following command to remove triggerhappy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge triggerhappy

Dependencies

triggerhappy have the following dependencies:

References

Summary

In this tutorial we learn how to install triggerhappy package on Kali Linux using different package management tools: apt, apt-get and aptitude.