Skip to content

plugins: add QuickCalc - #203

Open
klopster wants to merge 2 commits into
Ryoku-dev:mainfrom
klopster:plugin/quickcalc
Open

klopster wants to merge 2 commits into
Ryoku-dev:mainfrom
klopster:plugin/quickcalc

Conversation

@klopster

@klopster klopster commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What is this?

QuickCalc (plugins/quickcalc), a community plugin: a fast, keyboard-driven calculator with Basic, Scientific and Programmer modes, live preview, variables, memory and a persistent history. It runs as a bar panel (topbarGlyph) or as a floating window (framePopout), and one IPC keybind toggles either: qs -c shell ipc call quickcalc toggle.

  • No window-manager code: the floating window is a Quickshell layer-shell surface, and its corners follow the shell frame rounding through PluginKit Config.frameRadius.
  • Imports only QtQuick, Quickshell and Ryoku.PluginKit. Settings go through pluginApi.saveSetting; it writes only state.json in its own state folder.
  • The arithmetic engine is pure JS with no eval, and has its own tests (node tests/engine.test.cjs, 101 pass). The tests are for development; the plugin never runs them.
  • External commands: wl-copy (copy the result) and mkdir (create the state folder), both declared in the manifest.
  • Maintained by me (Klopster), not the Ryoku team. MIT licensed.

Checklist

  • One folder under its catalogue with a manifest and a real preview image.
  • One entry added to that catalogue's registry.json
  • Tested live in Ryoku, it renders and behaves correctly.
  • tests/validate-catalogue.sh passes from the repo root.
  • I own or have permission to submit this content, and it is licensed for redistribution.
  • It does not overwrite user configuration or run privileged commands without clear consent.

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