March 2, 2026
When Ctrl meets C major
Show HN: Pianoterm – Run shell commands from your Piano. A Linux CLI tool
Turn Your Piano Into a Computer Remote: Internet Jams, Jokes, and Demands a Demo
TLDR: Pianoterm lets a USB piano keyboard trigger computer commands on Linux, turning music keys into shortcuts. Commenters are cracking jokes about acoustic pianos and NES setups, begging for a demo, and pitching ideas like chord shortcuts and melody passwords—an imaginative, playful bridge between music and computing.
The hacker crowd just found its new party trick: a tiny tool called Pianoterm that lets a piano keyboard control your computer. Press a key, and your machine can pause music, launch scripts, or do basically anything—like turning Beethoven into a boss key. It’s meant for a USB MIDI keyboard (a musical keyboard that talks to computers), but that didn’t stop the comments from going full comedy and chaos.
The top vibe? Video or it didn’t happen. One user begged for a demo, saying a clip would make this “10x better,” while others imagined the wildest setups: “So I can do this with a Miracle Piano on a NES running Linux?” Retro fever, meet command line. Meanwhile, someone deadpanned, “Ooh, let’s spend next weekend doing this with my acoustic piano!”—instantly triggering a chorus of “that’s not how it works” ribbing.
Then the dreamers took the stage. People pitched chords as shortcuts, melodies as paths, and even passwords you play—an idea equal parts genius and nerve-wracking. Another commenter declared their coding sessions are about to sound like the Breath of the Wild soundtrack, and honestly, the entire thread started to feel like a jam session for nerds. The consensus: it’s delightfully weird, clearly useful to tinkerers, and everyone wants to see—and hear—it in action.
Key Points
- •Pianoterm is a Linux CLI tool that maps USB MIDI keyboard keys to shell commands.
- •It assumes ALSA is the soundcard driver and requires identifying a MIDI port before use.
- •Configuration is via $HOME/.config/pianoterm/config, supporting on_press/on_release triggers and key-to-command mappings.
- •Utilities aseqdump and acconnect are used to find keycodes and MIDI ports, respectively.
- •Building requires cloning the GitHub repo and running make; dependencies include a C compiler and alsactl (1.2.15.2).