Repository navigation
Port omarchy-powerctl to C99 - #227
Merged
Merged
Conversation
omarchy-powerctl is spawned on every wake, unlock, idle-grace input, dim, undim and lock event just to send one line over /run/omarchy-powerd.sock, paying Python 3 interpreter startup (~80-120 ms) each time. Replace it with a zero-dependency C99 binary (~17 KB ELF) compiled in Makefile, staged by desktop/install-tree and audited by release/audit.py. Assisted-by: LLM
This was referenced Dec 2, 2026
# Conflicts: # CHANGELOG.md # Makefile # desktop/install-tree # release/audit.py # tests/package_tree.py # tests/test_package.py
Contributor
|
Merged, thank you Tom! Lock and brightness calls no longer wait for Python to start. On your branch we merged main in, so powerctl now builds next to powerd and the mute-switch helper, and we added the changelog line. Next up: #228. |
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.
Replaces the Python 3
omarchy-powerctlclient with a zero-dependency C99 binary (desktop/configuration/powerctl.c, ~17 KB ELF).Makefile,desktop/install-tree,release/audit.py, and package staging/audit tests.tests/test_powerctl.pytesting the compiled binary against a Unix domain socket.Tested:
test_powerctl.py(2/2),test_package_staging.py(7/7),test_package.py(22/22),test_powerd.py(96/96).