Skip to content

Re-run Command After Interaction#69

Open
phulstaert wants to merge 1 commit into
Zren:masterfrom
phulstaert:Re-run-command-after-action
Open

Re-run Command After Interaction#69
phulstaert wants to merge 1 commit into
Zren:masterfrom
phulstaert:Re-run-command-after-action

Conversation

@phulstaert
Copy link
Copy Markdown

@phulstaert phulstaert commented Jan 31, 2026

New feature

I added functionality to automatically re-run the main command after the user performs an action (clicking the widget or scrolling). This allows a longer command interval, while keeping the responsiveness high after an action.

(ex: click to toggle a light and rerun the command that polls the state of the ligt)

Screenshot_20260131_134458

bugfixes and 'beautification'

ANSI RGB & 256-Color Parsing
Fixed a logic error in parseAnsiEscape where multi-token ANSI codes (like \033[38;2;R;G;Bm for RGB colors) were not consuming the correct number of arguments.
The parser now correctly advances the token index by consuming the appropriate number of values for RGB (4 tokens) and 256-color (2 tokens) modes, preventing subsequent numbers from being misinterpreted as new formatting codes.

HTML Tag Nesting
Fixed resetState to close HTML tags in the reverse order they were opened (e.g., <b><font> becomes </font></b>), ensuring valid HTML syntax which prevents potential rendering artifacts.

Configuration Refactoring
Updated the file to use the standardized configKey property approach instead of manual property alias cfg_... bindings. This aligns the coding style with ConfigActions.qml and ConfigAppearance.qml.

Warning Suppression
Added dummy properties (e.g., property var cfg_interval, cfg_intervalDefault) to the base configuration component. This intercepts the properties automatically injected by the Plasma configuration loader, suppressing the verbose "Setting initial properties failed" warnings in the system logs.

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