Skip to content

feat: add mango_layouts plugin - #192

Open
ezequielgk wants to merge 4 commits into
noctalia-dev:mainfrom
ezequielgk:add-mango-layouts
Open

feat: add mango_layouts plugin#192
ezequielgk wants to merge 4 commits into
noctalia-dev:mainfrom
ezequielgk:add-mango-layouts

Conversation

@ezequielgk

Copy link
Copy Markdown

Plugin

  • Id: ezequiel/mango_layouts
  • New plugin
  • Update to an existing plugin (version bumped in plugin.toml)

What it does

A clean, minimalist layout switcher plugin for MangoWC. It provides a bar widget to see the current workspace layout, and a fast popup panel to switch workspace layouts on the fly directly from the desktop. Includes dynamic settings to customize the widget appearance (icon, text, colors) and a vertical list mode.

External dependencies

  • jq: Used to parse the JSON output from the MangoWC IPC.
  • mmsg: The MangoWC CLI utility used to read the active monitor state and set the new layout.

Testing

Toggled layouts using the panel grid and vertical list modes. Tested all dynamic plugin settings (glyph, text, color, layout visibility toggles). Verified mmsg IPC commands work seamlessly and panel updates instantly.

  • Tested on Niri
  • Tested on Hyprland
  • Tested on Sway
  • Tested on another compositor: MangoWC
  • Noctalia version tested against: v5
  • Plugin API level: 14

Screenshots / Videos

recording.mp4

Checklist

  • The directory name matches the part of id after the / in plugin.toml exactly.
  • It ships plugin.toml, README.md, thumbnail.webp, and translations/en.json.
  • README.md follows the
    README template, documents
    every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
  • I created thumbnail.webp with the thumbnail generator.
  • version follows semver and is bumped in this PR; plugin_api is the oldest API level this plugin requires.
  • Every non-English translation in this PR uses a locale supported by Noctalia core, and I can read, write, and
    understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
  • I did not edit catalog.toml; CI generates it.
  • This PR touches exactly one plugin directory.

Code review attestation

Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:

  • The code is readable and not obfuscated, minified, or generated.
  • It does not download and execute remote code.
  • Every network call, filesystem write, and spawned process is something the description above accounts for.
  • I have the right to publish this code under the license declared in plugin.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant