Skip to content

ghui autoreloads oma theme#5589

Open
ilyaZar wants to merge 3 commits intobasecamp:devfrom
ilyaZar:feat-omarchy-ghui-theme-reload
Open

ghui autoreloads oma theme#5589
ilyaZar wants to merge 3 commits intobasecamp:devfrom
ilyaZar:feat-omarchy-ghui-theme-reload

Conversation

@ilyaZar
Copy link
Copy Markdown
Contributor

@ilyaZar ilyaZar commented May 5, 2026

Hi all,

thanks a lot for oma , I enjoy it a lot. also thanks for 3.7.0/1 great updates

would be cool if ghui, now that its part of oma, would get the cool theme switching whenever the main omarchy theme switches as well

this PR does that following the way opencode implements a similar feature in the older #4566 , #4582 PRs

attention: so ghui does yet not receive the sigusr signal on the other side, but I made a matching PR there to add this feature kitlangton/ghui#28

would be really nice to have the auto theme switch at some future point !

Copilot AI review requested due to automatic review settings May 5, 2026 11:11
@ilyaZar ilyaZar changed the title ghui should autoreload oma theme ghui autoreloads oma theme May 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to make ghui follow Omarchy theme switches by (1) installing a default ghui config that uses the system theme and (2) triggering a ghui reload as part of omarchy-theme-set.

Changes:

  • Add a migration to seed ~/.config/ghui/config.json with Omarchy’s default ghui configuration.
  • Add omarchy-restart-ghui and invoke it during omarchy-theme-set to reload ghui when themes change.
  • Ensure omarchy-remove-preinstalls also removes the ghui npx wrapper stub.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
migrations/1777978416.sh Seeds a default ghui config file under ~/.config/ghui/.
config/ghui/config.json Adds default ghui settings to use the system theme and enable auto-reload.
bin/omarchy-theme-set Hooks ghui reload into Omarchy’s theme application flow.
bin/omarchy-restart-ghui Introduces a restart/reload helper for ghui (signal-based).
bin/omarchy-remove-preinstalls Removes the ghui npx wrapper stub during preinstall removal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread migrations/1777978416.sh Outdated
@@ -0,0 +1,6 @@
echo "Configure ghui with system themeing"
Copy link
Copy Markdown
Contributor Author

@ilyaZar ilyaZar May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in aefaf06

@ilyaZar ilyaZar force-pushed the feat-omarchy-ghui-theme-reload branch from 3ce050b to aefaf06 Compare May 5, 2026 11:41
@dhh
Copy link
Copy Markdown
Member

dhh commented May 5, 2026

Hmm. This isn't working when I try it. ghui crashes when it gets the signal.

@ilyaZar
Copy link
Copy Markdown
Contributor Author

ilyaZar commented May 5, 2026

yes have you checked out my PR on the other side at ghui ahnd installed from the branch ?

kitlangton/ghui#28

@dhh
Copy link
Copy Markdown
Member

dhh commented May 5, 2026

Ahh. No, I just tried with the current released version!

@ilyaZar
Copy link
Copy Markdown
Contributor Author

ilyaZar commented May 5, 2026

yeah sorry, my bad... I should've been clearer in my initial post

it makes more sense to wait if the ghui feature lands before testing the omarchy installation path actually

@ilyaZar ilyaZar mentioned this pull request May 5, 2026
@ilyaZar ilyaZar force-pushed the feat-omarchy-ghui-theme-reload branch from aefaf06 to 00d07c0 Compare May 6, 2026 17:03
Copilot AI review requested due to automatic review settings May 6, 2026 17:03
@ilyaZar ilyaZar force-pushed the feat-omarchy-ghui-theme-reload branch from 00d07c0 to e652c02 Compare May 6, 2026 17:42
@ilyaZar ilyaZar force-pushed the feat-omarchy-ghui-theme-reload branch from e652c02 to d04e1ea Compare May 6, 2026 19:57
@ilyaZar
Copy link
Copy Markdown
Contributor Author

ilyaZar commented May 7, 2026

@dhh so my kitlangton/ghui#28 got merged ! the auto theme feature should be testable now , oma's npx should pick up the new ghui release 0.7.0 (https://github.com/kitlangton/ghui/releases) automatically .

@dhh
Copy link
Copy Markdown
Member

dhh commented May 8, 2026

It's not working right here. Here's me switching to tokyo night in alacritty:

image

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.

3 participants