Skip to content

perf(theme): replace 1.5s poll with a native file watcher - #27

Open
photuris wants to merge 1 commit into
Percius04:masterfrom
photuris:theme-watcher
Open

perf(theme): replace 1.5s poll with a native file watcher#27
photuris wants to merge 1 commit into
Percius04:masterfrom
photuris:theme-watcher

Conversation

@photuris

@photuris photuris commented Sep 4, 2026

Copy link
Copy Markdown

Theme changes were picked up by a 1.5 s poll of the TOML files. This adds a small FileWatcher backend element (QFileSystemWatcher, re-arms after an mv replacement) and points ThemeSource at current/theme.name, which omarchy-theme-set writes last, plus the ~/.config/omarchy override.

Measured on Hyprland: repaint ~100-160 ms after theme.name is written, was up to 1.5 s. --selfcheck 161/162; the one failure is the pre-existing .7z check on a host without p7zip. The new check covers the re-arm.

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