Repository navigation
Drop eww: Memento and text prediction become Noctalia plugins - #205
Merged
Merged
Conversation
eww only carried three things, all replaced: - Memento Mori: a Noctalia v5 desktop_widget (stoa/memento) with the same five bars and quote, fed by stoa-memento-data. Replaces both the eww window (no bind or autostart opened it) and the v4 QML plugin that install.sh never linked. config.toml places one on the desktop. - Text prediction: a v5 plugin (stoa/predict). Its service runs stoa-predict.py through runStream and reads JSON lines, so no eww update is forked per keystroke; the popup is a persistent panel with keyboard_focus = none on the overlay layer. The service opens it with panel-open/-close IPC because togglePanel is a no-op from a service runtime. stoa-predict select resets the daemon with SIGUSR1, since wtype input never reaches evdev. - stoa-capture: removed. Shift+Print opens alexander/screen-toolkit (recording, OCR, colour picker). config.toml enables the plugins; install.sh also enables them over IPC because a settings.toml list replaces config.toml's wholesale. Stale eww/stoa-capture/stoa-memento symlinks are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CrdbH4MCHhLKimzdRSzXZp
Noctalia draws every desktop widget's rounded background itself (the background / background_color / background_opacity widget settings), so the fill and border the tree added showed as a second box inside it. Seen running Noctalia 5.3.0 under headless sway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CrdbH4MCHhLKimzdRSzXZp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
eww only carried three features. All three now have another home, and eww is removed from configs, installers, the doctor, stoa-settings and the README.
Memento Mori →
stoa/memento(Noctalia v5desktop_widget)stoa-memento-data(unchanged).manifest.json), whichinstall.shnever linked.config/noctalia/config.tomlplaces one tile on the desktop (nooutput, so Noctalia uses the focused monitor and clampscx/cyto it). Move it withnoctalia msg desktop-widgets-edit.background*settings) is the frame.Text prediction →
stoa/predict(Noctalia v5 plugin)stoa-predict.pykeeps the same word engine. It now prints one JSON line per change on stdout and logs to stderr.stoa-predict runthroughnoctalia.runStream, so there is noeww updateprocess per keystroke.persistentpanel withkeyboard_focus = "none"on theoverlaylayer, so the window being typed in keeps focus.noctalia msg panel-open/-close, nottogglePanel. A service runtime is built without the panel-toggle callback (src/scripting/plugin_service_host.cpp), sotogglePanelsilently does nothing there.stoa-predict select: sendsSIGUSR1to reset the daemon, becausewtypeinput never reaches evdev.runkills one left over from a restarted shell instead of refusing to start. A missing keyboard or input group is reported back as{"error": …}and shown as a notification.plugin_api = 30(panellayer, Noctalia v5.0.1). I avoided the[[layer]]entry type: it needs API 36, which no released Noctalia supports yet.Shift+Print →
alexander/screen-toolkitstoa-captureis removed. Shift+Print in Hyprland and niri runsnoctalia msg plugin alexander/screen-toolkit:service all toggle(recording, OCR, colour picker).Enabling the plugins
config.tomlgains[plugins].enabledwith stoa/drive, stoa/health, stoa/memento, stoa/predict and alexander/screen-toolkit.ConfigService::deepMerge), so asettings.tomllist hides that one.install.shtherefore also runsnoctalia msg plugins enablefor each plugin when the shell is running.stoa-captureandstoa-mementoare removed.Verification
Built Noctalia 5.3.0 in the session and ran it under headless sway (pixman renderer), with this branch's
config.tomland plugins:noctalia plugins lint theme/noctalia-pluginsreports 0 errors and 0 warnings for all four Stoa plugins. A planted typo ingetConfigis reported as an error (exit 1), so the lint does bite.stoa/predict:servicestarts, andalexander/screen-toolkitis fetched from the community source and enabled from theconfig.tomllist (fresh install).stoa-predictwith the same CLI and stdout protocol, since there is no evdev in the container.runand shows the "On" notification.kill, and the pidfile is gone.settings.tomllist (drive, health, screen-toolkit), memento and predict startdisabled. Theinstall.shenable loop turns themenabledand appends them to that list without dropping anything.PredictDaemondriven with simulated key codes. "stoi" emits thestoic…suggestions,SUGGEST_FILEmirrors the last line, andreset()(theSIGUSR1handler) emits a single empty update.tests/run.sh18 passed,check_config_integrity.pyok,luac5.4 -pon every.luaufile, shellcheck clean.Not tested here: clicking a suggestion (the headless compositor has no pointer device) and real evdev input. Both paths are unchanged from before apart from the
SIGUSR1reset, which was tested directly.🤖 Generated with Claude Code
https://claude.ai/code/session_01CrdbH4MCHhLKimzdRSzXZp