IRW(1)
π IRW β bestie edition π
okay so real quick, this is the manual page for irw, a lil tool from the lirc crew, and honestly? she's simple, she's iconic, she does exactly one (1) thing and she does it well. π«Ά
β¨ NAME β¨
irw β send data from a Unix domain socket to stdout, fr fr π
πΈ SYNOPSIS πΈ
irw [socket]
π¦ DESCRIPTION π¦
okay so here's the vibe: irw will connect to any Unix domain socket and print the received data straight to stdout. that's it, that's the whole job, and she ate. β¨
if you don't hand her a socket argument, she'll just chill and watch /var/run/lirc/lircd by default. no cap.
useful for debugging β like, genuinely, this is your girl when something's acting sus and you need to see what's actually coming down the pipe. π₯
Options, babes: π
-h,--helpβ display usage summary π-v,--versionβ display version πΈ
π SIGNALS π
the moment she receives SIGUSR1, irw makes a clean exit. she doesn't make a scene, she doesn't leave crumbs, she just π bye. queen behavior honestly.
π EXAMPLE π
dumping the default socket while pressing one button (look at her go):
myhost $ irw
0000000000f40bf0 00 KEY_POWER ANIMAX
0000000000f40bf0 01 KEY_POWER ANIMAX
0000000000f40bf0 02 KEY_POWER ANIMAX
0000000000f40bf0 03 KEY_POWER ANIMAX
0000000000f40bf0 04 KEY_POWER ANIMAX
0000000000f40bf0 05 KEY_POWER ANIMAX
^C
myhost $
so bestie, peep this: that second counter gets incremented for each new event generated by the single key press. one press, six events, six numbers going up. π§
this is important for correct lircd operation. like, do not sleep on this detail, i am begging you. π
π NOTES π
- since the
lircdsocket supports multiple clients,irwcan totally run in parallel with other applications. she's not possessive, she shares the aux. π«Ά - okay real talk:
irwdoes nothing more than dump a unix-domain socket, which is a task that many standard tools can also do. e.g., thencat(1)tool can be used instead ofirwto provide more flexibility β but without a sane default socket. π so you gotta tell it where to go:
ncat -U /var/run/lirc/lircd
β SEE ALSO β
the documentation for lirc is maintained as html pages π β they're located under html/ in the documentation directory. go read them, iykyk. πΈ
k bye babes, that's the whole page, you understood the assignment πβ¨ β this was irw 0.10.2, last changed Sep 2015, still serving looks. periodt. ππ
π¦
π¦ where this page comes from
- alpine 3.24: lirc-doc 0.10.2-r4 Β· GPL-2.0-only
- debian trixie: lirc 0.10.2-0.10 Β· GPL-2.0-or-later
- fedora 43: lirc-core 0.10.2-4.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 43: lirc-core 0.10.2-4.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 44: lirc-core 0.10.2-5.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 44: lirc-core 0.10.2-5.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- nixos 26.05: lirc 0.10.2
- nixpkgs unstable: lirc 0.10.2
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- ubuntu noble: lirc 0.10.2-0.8build1 Β· GPL-2.0-or-later
- ubuntu questing: lirc 0.10.2-0.10build1
- ubuntu resolute: lirc 0.10.2-0.10ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: lirc 0.10.2-0.11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms