Can dietpie run custom programs?

I’m wondering if dietpi can run other program that are not natively installed.

I’m going to use a program called triggerhappy daemon that read keypresses from a usb connected device (flirc) and the converts those keypresses to scrips that controls a hue light.

Can I installed that program on dietpi and does dietpi work ok on a rasperry pi 2 (2014) single core?

Yes on both.
Dietpi is not a full distribution, but a lightweight version of Debian/Raspbian with custom scripts and a collection of preconfigured software.
Dietpi works on both Armv7 and Armv8 RPi2.

1 Like

Very cool!

global hotkey daemon for Linux

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.

It appears there is a binary already built…

There are deps needed to run it, so you might have to install them before you install the package

dep: init-system-helpers (>= 1.54~)
helper tools for all init systems
dep: libc6 (>= 2.27)
GNU C Library: Shared libraries
also a virtual package provided by libc6-udeb
dep: libsystemd0
systemd utility library

thanks, might ask for help here if I run into trouble, if anyone here have used it?