Guide pages

Guide Settings help

Plugins

Settings → System → Plugins

Plugins are small scripts that draw their own chip on the bar. You put a plugin's folder in the plugins folder inside Katofli's data folder, then turn it on here. Only plugins that are turned on can run. Plugins are experimental.

Installed plugins

Lists every folder in the plugins folder. Turning a plugin on asks you first; turning it off is immediate. While the folder is being read the card says "Reading the plugins folder…". If there is nothing in it, it says "No plugins in the plugins folder."

Reload plugins. Reads the plugins folder again and restarts the plugins that are on. A status line says "The plugins folder was read again." or an error says "Couldn't read the plugins folder. Try again." It is disabled while it runs. It writes no config.

Each plugin has one row:

Run {plugin name}. The checkbox that turns the plugin on or off. The row also shows the plugin's id, and "Version {version} by {author}" when the plugin gives them. Default: off. Config: [plugins] enabled, the list of plugin ids that may run.

  • Turning it on: the row opens a confirmation, "Turn on {name}?", that says "Enable only plugins you trust. Isolation is best-effort." and "A plugin runs in a sandbox without network or file access, but the sandbox is not a security boundary." It lists what the plugin can read, or says it reads nothing from the bar. Choose Turn on to confirm or Cancel (or press Esc). A status line then says "{name} is on."
  • Turning it off: immediate, with no confirmation. A status line says "{name} is off."
  • Takes effect at once. If the change cannot be saved, an error says "Couldn't save. Try again or check the config file."

Can read. A line under the plugin naming what it can read from the bar: Date and time, Performance level, Battery state, Network state, What is playing, The app in front. A plugin that asks for none shows "Reads nothing from the bar."

Plugin settings. A link on the row of a plugin that is on and can run. It opens that plugin's own settings page.

A plugin that cannot run shows a problem line, and its checkbox is disabled while it is off. The messages cover: a missing, linked, oversized or invalid plugin.json; an id that differs from the folder's name; a missing, linked, oversized, non-text or disallowed script; and a plugin made for a different Katofli version ("It needs Katofli {range}. This is Katofli {version}."). Fix the folder, then select Reload plugins.

Common tasks

  • To add a plugin: put its folder in the plugins folder inside Katofli's data folder, select Reload plugins, then turn it on.
  • To find the data folder: open Settings, System, Startup & shell, then select Open folder.
  • To stop a plugin: untick its Run {name} box.
  • To change a plugin's own options: select Plugin settings on its row.
  • To see why a plugin does not run: read the problem line on its row.

See also