diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-10-31 06:49:40 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-10-31 21:19:28 +0100 |
commit | 641803df358a2377e078c8c1ea05617bfe83bc1d (patch) | |
tree | acab93fe25a4564134c24680cbf4a57f542a297b /nncmpp.adoc | |
parent | eec0706333ecf28898b1879cae5dab791b307cf6 (diff) | |
download | nncmpp-641803df358a2377e078c8c1ea05617bfe83bc1d.tar.gz nncmpp-641803df358a2377e078c8c1ea05617bfe83bc1d.tar.xz nncmpp-641803df358a2377e078c8c1ea05617bfe83bc1d.zip |
Enable user-defined actionsorigin/master
Also fix pclose() handling within Info plugins,
and prevent them from screwing up the terminal with error output
on initialization.
This is still rather crude, but at least it's possible.
Diffstat (limited to 'nncmpp.adoc')
-rw-r--r-- | nncmpp.adoc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nncmpp.adoc b/nncmpp.adoc index 33e2834..eaebfc3 100644 --- a/nncmpp.adoc +++ b/nncmpp.adoc @@ -85,6 +85,18 @@ To adjust key bindings, put them within a *normal* or *editor* object. Run *nncmpp* with the *--debug* option to find out key combinations names. Press *?* in the help tab to learn the action identifiers to use. +You may also define and bind your own actions, launching arbitrary +shell commands. Note that you cannot override internal actions in this manner. + +.... +actions = { + "pioneer-on-off" = { + description = "Pioneer amplifier: turn on/off" + command = "elksmart-comm --nec A538" + } +} +.... + Spectrum visualiser ------------------- When built against the FFTW library, *nncmpp* can make use of MPD's "fifo" |