IRCAT(1)
π ircat β okay bestie, let's talk
So ircat is a User Commands manual page (section 1, iykyk), and it's genuinely one of the most lowkey useful little gremlins in the lirc universe. Let's get into it. π¦
β¨ NAME β¨
ircat β prints strings when you press buttons. That's it. That's the whole job. And she ate. π
πΈ SYNOPSIS πΈ
ircat [options] <prog>
π DESCRIPTION π
Okay so here's the vibe: this program prints config strings to standard output. That's the main character move. What's it for? Two things, bestie:
- feeding remote-control input into your scripts π«Ά
- debugging your
.lircrcfile (because let's be real, we've all been there π)
The argument you hand to the program is the program name, exactly as it shows up in the prog entries inside .lircrc. So like, whatever you named it in there? That's what you pass. No cap.
Now the options, and yes there are only three, she's a minimalist queen π
-h,--helpβ shows you the usage summary. The "hey what do I do" button.-v,--versionβ shows you the version. The "who even are you" button.-c,--config=<file>β sets the config file. Tell her which one to read, bestie.
π§ EXAMPLES π§
Okay so imagine your .lircrc has this in it:
begin
prog = myprog
button = KEY_CHANNELUP
config = next_file
end
Then you do:
$ ircat myprog
and it will print "next_file" β followed by a newline, don't forget the newline β every single time the button bound to KEY_CHANNELUP gets pressed. Every. Single. Time. It's giving consistent. It's giving reliable. It's giving exactly what it says on the tin. π
π ENVIRONMENT π
LIRC_SOCKET_PATHβ this is thelircd(8)output socket, the one used to retrieve data. And if you don't set it? It defaults to/var/run/lirc/lircd. That's the default, write it down, bestie. π
β SEE ALSO β
The documentation for lirc is maintained as html pages, and they live under html/ in the documentation directory. Go look, it's there, it's waiting for you. π
lowkey reminder: theprogname you pass has to match what's in.lircrc, or she simply will not know what you're talking about and nothing will print. vibe check your config first fr fr π
and that's the whole page!! this was ircat, version 0.10.2, last changed Jan 2017 β she's been iconic for a minute and she's not slowing down π
β¨
π¦ 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