Back to plugins
kanshi Profile
v0.1.0 Ethan Martin

About

kanshi Profile

A status widget and profile selector for kanshi. Allows quickly switching between named display configurations.

Plugin

Field Value
ID emar10/kanshi-profile
Entries Bar widget: bar; panel: panel; service: service

Requirements

This plugin requires kanshi, version 1.8 or above. Ensure that kanshi is configured, running, and that kanshictl is available on $PATH.

Usage

The bar widget indicates the current state of kanshi itself and the currently active named profile, as reported by kanshictl status. If kanshictl is unavailable or the daemon is not running, the entire widget is not displayed. By default, left-clicking the widget toggles the panel.

The selection panel can be opened manually with:

noctalia msg panel-toggle emar10/kanshi-profile:panel

The panel displays a list of profile names discovered from your kanshi configuration or an override list of profile names defined in the plugin settings (see Notes below). Clicking an option will run kanshictl switch <name> to tell kanshi to switch to the chosen profile. If you modify the configuration file, the refresh button can be used to tell the plugin to read the new config (don't forget to run kanshictl reload!).

Settings

Setting Type Default Description
label_show bool true When disabled, hides the active profile on the widget.
label_hide_when_unmatched bool false When enabled, hides the active profile only if no named profile is active.
config_path file nil Overrides the default configuration search path.
profiles_override string_list nil When set, disables configuration scanning and uses this list of profiles.

Notes

As kanshi does not expose the full list of configured profiles, this plugin provides a simple scanner that reads your configuration file directly to generate a list of profiles.

[!NOTE] Automatic kanshi configuration parsing is only suitable for simple setups. If your config is not read correctly, manually set your profile names using profiles_override.

Out of the box the plugin attempts to read the default kanshi configuration file at $XDG_CONFIG_HOME/kanshi/config (or ~/.config/kanshi/config if XDG_CONFIG_HOME is unset). If running kanshi with an alternate configuration path with kanshi -c, use the config_path setting to point the plugin at the correct file.

Only named profiles like profile <name> { ... } from the kanshi configuration are listed, as anonymous profiles cannot be selected with kanshictl switch.

Only the top-level kanshi configuration file is read, include directives are ignored.

Versions

VersionPlugin APIUpdated
v0.1.0 latest56Nov 30, 2026

Older versions stay installable on a Noctalia release whose plugin API is below the latest version's.