• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created about 14 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A lightweight hotkey daemon
Triggerhappy
- a lightweight hotkey daemon -

by Stefan Tomanek <[email protected]>
http://github.com/wertarbyte/triggerhappy/

Triggerhappy is a hotkey daemon developed with small and embedded systems in
mind, e.g. linux based routers. It attaches to the input device files and
interprets the event data received and executes scripts configured in its
configuration.

Examples:

Dump all events received through two device files:

	thd --dump /dev/input/event0 /dev/input/event1

Event handlers can be defined in configuration files (specified by --triggers).
If a directory is specified, all configuration files within matching the
pattern *.conf are loaded. The files use the following format:

<event name>	<event value>	<command line>

e.g.

KEY_VOLUMEUP	1		/usr/bin/amixer set Master 5%+
KEY_VOLUMEUP	2		/usr/bin/amixer set Master 5%+
KEY_VOLUMEDOWN	1		/usr/bin/amixer set Master 5%-
KEY_VOLUMEDOWN	2		/usr/bin/amixer set Master 5%-

A value of 1 corresponds to pressing a key, while 2 is generated by
holding it; releasing it yields a value of 0.

It is also possible to append up to 5 modifiers to each event definition by
appending their names to the event name:

KEY_VOLUMEUP+KEY_LEFTSHIFT	1	/usr/bin/amixer set Master 15%+

Devices can be added dynamically by specifying a command socket:

thd --socket /var/run/triggerhappy.socket --triggers /etc/triggerhappy.d/

The program th-cmd is used to add new devices to the daemon:

th-cmd --socket /var/run/triggerhappy.socket --add /dev/input/event0
th-cmd --socket /var/run/triggerhappy.socket --remove /dev/input/event3

An example udev script is also included to facilitate this hotplug
support - for this use, th-cmd can handle the parameter "udev" to
deduce the device name and action from the udev environment.

For more information, consult the manual pages of "thd" and "th-cmd".

More Repositories

1

autorandr

Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper
Shell
646
star
2

coreutils

Enhancements to the GNU coreutils (especiall head)
223
star
3

etckeeper

Python
69
star
4

android_packages_apps_ADWLauncher

ADW Launcher
Java
34
star
5

tartarus

the tartarus backup system
Shell
34
star
6

android_vendor_cyanogen

CyanogenMod Android vendor tree
Shell
25
star
7

tiny-gps

read NMEA data from serial GPS receiver (and sonar and optical sensor) and offer it as I2C slave using ATTiny
C
22
star
8

funkenschlag

alternative controller and firmware for a cheap rc
C
21
star
9

hetzner-robot-perl

Perl module and command line tool for control over the Hetzner robot
Perl
18
star
10

auto-disper

This project has been merged into autorandr and is only available to keep links working. Please check autorandr.
15
star
11

dsniff

Fork of famous packet sniffer suite
C
13
star
12

ifupdown-scripts

several useful ifupdown-scripts for the Debian GNU/Linux distribution
PHP
12
star
13

mallory-in-the-middle

SSH mitm tool
Python
9
star
14

forensic1394

Clone of the forensic1394 library from https://freddie.witherden.org/tools/libforensic1394/
C
8
star
15

multiwii-firmware-original

A clone of the firmware portion of the multiwii SVN repository with my own changes
Arduino
7
star
16

hetzner-rdns

update reverse DNS settings for systems hosted at Hetzner; a successor (hetzner-robot-perl) is in preparation to utilise the webservice interface
Perl
7
star
17

hostap

C
6
star
18

arp-scan

Fork of http://www.nta-monitor.com/tools/arp-scan/
Shell
6
star
19

blighthouse

send bogus wifi beacons with custom text
C
6
star
20

gc2latex

create pretty Gnucash invoices with LaTeX and Perl
Perl
5
star
21

irssi-scripts

various irssi scripts I created
Perl
4
star
22

dhcp-handtuch

DHCP MITM tool
Perl
4
star
23

ipv6pref

Advice programs to use the public or temporary IPv6 address of your system
C
4
star
24

ChordDroid

A simple chord shape lookup application for android phones and stringed instruments
Java
4
star
25

multiwii-conf

configuration GUI for multiwii firmware
Java
4
star
26

avrdude

Clone of the avrdude subversion repository
C
4
star
27

tetherball

Lightweight tethering script to share an internet connection with other WLAN devices
Shell
4
star
28

wget

Patches to the popular download tool
C
4
star
29

arduino-make

Makefile for use with Arduino projects
3
star
30

magmakeys

a system wide hotkey daemon
Perl
3
star
31

gitosis

Fork of git://eagain.net/gitosis.git
Python
2
star
32

openwrt_tools

tools and scripts for managing OpenWrt device
2
star
33

antipeek

Protect yourself from accidently entered password
Shell
2
star
34

ussd-cli

command line tool to send USSD messages via UMTS USB sticks
Perl
2
star
35

nixie-usb

Connect and control "ye olde nixie tubes" to and with your USB port
C
2
star
36

financial-perl

extract account information from banking or credit card sites
Perl
2
star
37

tiny-fade

A simple RGB LED fader for ATTiny13
C
2
star
38

android_tools

various scripts and tools for use on an android system
2
star
39

MensafuchsMobil

J2ME application for the Mensafuchs.de website
Java
2
star
40

adjective

adjective is a small web proxy written in perl that rejects ads based on adblock rulefiles
Perl
2
star
41

hdclock

transform an old hard drive into a pov clock
C
1
star
42

tiny-pong

A tiny pong game for ATTiny2313 and a 7x5 LED matrix
C
1
star
43

LUFA

git-svn Clone of the LUFA project
C
1
star
44

gnupg

C
1
star
45

arduino-64

A 64 bit gaming platform for Arduino and a 8x8 LED matrix
C++
1
star
46

sonderbar

Read barcode data from scanners acting as linux input devices
C
1
star
47

i2cam

Timer based trigger for a digital camera configurable via IĀ²C
C
1
star
48

Status-Quo-Ante

restore your network after misconfiguration
Shell
1
star
49

datensprung

transmit arbitrary binary data from remote control to your RC quadcopter
C
1
star
50

DotdeeFS

Combine configuration snippets into a single file
Perl
1
star
51

calfilter

public ical filtering service
Perl
1
star
52

tiny-pov

Bicycle POV-System with ATTiny2313
C
1
star
53

chunker

read chunks of a specific size from a pipe
C
1
star
54

fetap611-tiny

Combine a FeTAp611 with a cell phone and an ATTiny2313
C
1
star
55

iptables

Various changes to the iptables distribution
C
1
star
56

nixie-clock

A simple nixie clock using an PCF8583 RTC and an ATTiny2313
C
1
star
57

xrandr

Patches to the xrandr tool
C
1
star
58

arduino-life

Conway's game of life for the arduino microcontroller and a 5x7 LED matrix
Java
1
star
59

https-everywhere

Fork of git://git.torproject.org/https-everywhere.git
JavaScript
1
star
60

opacity

retrieve the data of your borrowed books from the public library in Duisburg, Germany
Perl
1
star
61

tar

Modifications to GNU tar
C
1
star
62

tiny-morse

Blink a morse code sequence from EEPROM
C
1
star
63

iproute2

C
1
star
64

PhysicalPixel

Illuminate an RGB LED connected to an Teensy module in the same color dominating the area around the mouse cursor
C
1
star
65

DisGUIse

C# classes encapsulating AT command communication with SE phones
C#
1
star
66

CardDAP

A small LDAP-Server offering contact data and using VCard files as backend
Perl
1
star
67

Mensafuchs-ffext

Firefox extension for the Mensafuchs.de website
JavaScript
1
star
68

pollycracker

Perl
1
star
69

nerd-maverick

LED ammo counter for the popular Nerf Maverick foam dart gun
C
1
star
70

tiny-life

An implementation of Conway's "Game of Life" for ATTiny2313 and an 5x7 LED matrix
C
1
star