TH-CMD(1)
π TH-CMD(1) π
okay so this is the manual page for th-cmd, aka the triggerhappy commander. She's the one who talks to a running triggerhappy daemon, and honestly? main character energy. π
π NAME π
th-cmd β triggerhappy commander β¨
π¦ SYNOPSIS π¦
th-cmd --socket <socket> [--passfd] [--tag <foo>]
[--clear|--enable|--disable|--mode <mode>|--quit|--udev|--add
<devices...>|--remove <devices...>]
πΈ DESCRIPTION πΈ
okay so th-cmd is literally used to issue commands to a running triggerhappy daemon. It utilizes a unix domain socket bound by the daemon. that's the whole vibe β little command messenger over the daemon's socket, bestie. π«Ά
π₯ OPTIONS π₯
--socket socketβ the socket file opened by the running triggerhappy daemon instance. that's your connection, ngl. π--add <devices...>β instructs the running daemon to open the input devices specified on the command line. new devices, slay. β¨οΈ--remove <devices...>β removes specified devices from the running daemon. bye devices π--clearβ removes all devices from the running daemon. all of them. periodt. π--udevβ deduces operation and device name from the udev environment (for use in udev rules). iykyk. π§--disableβ disables the execution of triggers. putting them on pause, fr fr. βΈοΈ--enableβ re-enables the execution of triggers. we're so back. βΆοΈ--mode <newmode>β changes the mode of the triggerhappy daemon to<newmode>. If no new mode is specified, the daemon switches to default mode. iconic default behavior. π--quitβ terminates the triggerhappy daemon. it's giving goodbye. ππ--passfdβ instead of instructing the daemon to open the device, opens the device and passes the file descriptor to the daemon. this allows the adding of new devices to a daemon having dropped its privileges, however theth-cmdprocess must have access to the device file. caveat, bestie: that access part is not optional. π--grabβ grabs the device; the triggerhappy daemon will try to get exclusive access to the device, other applications will not receive the events emitted by it. exclusive access, no sharing. π ββοΈ--tag fooβ labels the added device with the tag<foo>; this can be used to limit the scope of event handlers to a subset of input devices. tagged and fabulous. π·οΈ
π AUTHOR π
Stefan Tomanek <stefan.tomanek+th@wertarbyte.de> π
that's the whole manual, bestie! π«Ά this page is from 0.5.0, dated 2022-07-21, and it's the TH-CMD(1) manual β she ate, no cap. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: triggerhappy 0.5.0-bp160.1.11 Β· GPL-3.0-or-later
- opensuse-leap 16.0: triggerhappy 0.5.0-bp160.1.11 Β· GPL-3.0-or-later
- opensuse-leap 16.0: triggerhappy 0.5.0-bp160.1.11 Β· GPL-3.0-or-later
- opensuse-leap 16.0: triggerhappy 0.5.0-bp160.1.11 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms