Back to Noctalia

Plugins

v5-ipc-plugins.md

latest1.7 KB
Original Source

Plugins

Plugin IPC has two command families: dispatching events to plugin entries, and managing enabled plugins/sources.

Send an Event

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 output
  • a connector such as DP-1
  • a bar-qualified target such as focused:default or DP-1:top
  • all - 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"

Manage Plugins

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.