v5-ipc-plugins.md
Plugin IPC has two command families: dispatching events to plugin entries, and managing enabled plugins/sources.
Section titled “Send an Event”
plugin <author/plugin:entry> <target[:bar-name]> <event> [payload]
Dispatches an event to a plugin entry’s onIpc(event, payload) handler.
Targets select which live entry instances receive the event:
focused - the entry instance on the focused outputDP-1focused:default or DP-1:topall - every matching instance; required for singleton entries such as [[service]] and [[panel]]Anything after <event> is passed through as [payload] unchanged.
Examples:
Terminal window
noctalia msg plugin noctalia/screen_recorder:service all togglenoctalia msg plugin noctalia/screen_recorder:service all start focusednoctalia msg plugin noctalia/example:hello focused set "New label"
Section titled “Manage Plugins”
plugins <subcommand> ...
Use this family to list, enable, disable, update plugins, and manage plugin sources.
Common commands:
Terminal window
noctalia msg plugins listnoctalia msg plugins enable noctalia/screen_recordernoctalia msg plugins disable noctalia/screen_recordernoctalia msg plugins update official
Source management:
Terminal window
noctalia msg plugins source listnoctalia msg plugins source add my-repo git https://github.com/me/my-pluginsnoctalia msg plugins source add my-dev path ~/dev/my-pluginsnoctalia msg plugins source remove my-repo
See Using Plugins for installing, enabling, and configuring plugins.