Show HN: Pianoterm – Run shell commands from your Piano. A Linux CLI tool

Published: (March 2, 2026 at 03:50 PM EST)
1 min read

Source: Hacker News

pianoterm

Run shell commands from your piano

GitHub repository

Description

Linux CLI tool to assign shell commands to keys on a USB MIDI Keyboard.

Usage

pianoterm 

Note: Assumes ALSA is used as the soundcard driver. Use acconnect -i to find the desired MIDI port.

Configuration

Configuration file: $HOME/.config/pianoterm/config

# this is a comment
#
# trigger can be on_release or on_press
on_press

# syntax: port = command
# use aseqdump -p  to find specific keycodes

21 = playerctl previous   # first key on an 88-key keyboard
22 = playerctl play-pause
23 = playerctl next
# ...
108 = /home/me/my_script.sh

Building

git clone https://github.com/vustagc/pianoterm.git
cd pianoterm && make

Dependencies

  • C compiler
  • alsactl (1.2.15.2)
  • make (optional)
0 views
Back to Blog

Related posts

Read more »

Ghostty – Terminal Emulator

Article Ghostty – Terminal Emulatorhttps://ghostty.org/docs Discussion - Comments: Hacker News threadhttps://news.ycombinator.com/item?id=47206009 – 411 points...