-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for ghostty theme switching #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ghostty tip (will be 1.2) supports programmatic config reloading via SIGUSR2 and systemd integrations and we’ll probably also add a dbus API before release. The signal works now for tip builds. |
Happy to take this as we prepare for Ghostty being the terminal, but yes, let's target the SIGUSR2 way of triggering the config reload right away. We could also consider having a omarchy-setup-terminal script that allows you to toggle between Alacritty and Ghostty for the moment. It's just that we need to use the ghostty-git dependency, which clocks in at about 1GB and a million dependencies, so should probably do something like "Ghostty (beta)" for the selector. |
We also need to add the ghostty config to all the extra themes: https://manuals.omamix.org/2/the-omarchy-manual/90/extra-themes |
@dhh - this is updated to use SIGUSR2 for reload. Do we want to wait for Ghostty to support this on main before merging? re: the other themes, I can create issues in the separate theme repos indicating the expected |
9b270b5
to
711f9d9
Compare
When do you think this is going to be a thing? |
September |
I tested all the theme names with Ghostty 1.2. So think they're correct on dev. |
Got it - I think this PR isn't needed then, I didn't realize we had pulled all the theme work in that 3.0 update already |
Even though Alacritty is the default Omarchy theme, it may be helpful to support other terminals.
This adds a
ghostty-config
file to each theme preset that matches which theme ghostty should use.Most of these config themes are 1-1 with the presets, with the exception of
Matte Black
which uses a custom palette definition.User would need to set up their local ghostty config to do something like
to conditionally apply the config from omarchy.
reloading config
at this time ghostty doesnt support programmatic reloading - so we use hyprland to iterate through any open windows and send the keyboard shortcut for reloading (CTRL SHIFT,
)update Using the Ghostty tip, we can use
pkill -SIGUSR2 ghostty
to reload config