Skip to content

Add support for ghostty theme switching - #358

Closed
rossvz wants to merge 5 commits into
omacom:masterfrom
rossvz:rossvz/ghostty-themes
Closed

rossvz wants to merge 5 commits into
omacom:masterfrom
rossvz:rossvz/ghostty-themes

Conversation

@rossvz

@rossvz rossvz commented Jul 26, 2025 •

Copy link
Copy Markdown

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

config-file = ?../omarchy/current/theme/ghostty-theme`

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

@JaxonWright JaxonWright mentioned this pull request Jul 26, 2025
2 of 4 tasks
@mitchellh

Copy link
Copy Markdown

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.

@dhh

dhh commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

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.

@dhh

dhh commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

We also need to add the ghostty config to all the extra themes: https://manuals.omamix.org/2/the-omarchy-manual/90/extra-themes

@rossvz

rossvz commented Aug 1, 2025 •

Copy link
Copy Markdown
Author

@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 ghostty-theme file that should be added, but we may want this landed on master first?

@rossvz
rossvz force-pushed the rossvz/ghostty-themes branch from 9b270b5 to 711f9d9 Compare August 1, 2025 02:42
@RobAndrewHurst

Copy link
Copy Markdown

When do you think this is going to be a thing?

@Mohamedsayhii

Copy link
Copy Markdown
Contributor

When do you think this is going to be a thing?

September

@rossvz

rossvz commented Sep 17, 2025

Copy link
Copy Markdown
Author

@dhh with Ghostty out this could be close - I noticed that a lot of theme names have changed with 1.2 release so I can work on updating the relevant files.

Should this be part of the #1568 effort?

@dhh

dhh commented Sep 17, 2025

Copy link
Copy Markdown
Contributor

I tested all the theme names with Ghostty 1.2. So think they're correct on dev.

@rossvz

rossvz commented Sep 17, 2025

Copy link
Copy Markdown
Author

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

@dhh dhh closed this Sep 17, 2025
cursor Bot pushed a commit to staccDOTsol/omarchy that referenced this pull request Sep 7, 2026
Upstream omarchy-settings package() deletes /etc/mkinitcpio.conf.d
wholesale on aarch64, reasoning that omarchy_hooks.conf is the x86 file
that would inject the Limine hooks into an Asahi initramfs. That holds
for upstream's copy of the file. It does not hold for ours: this fork
rewrote the same path to insert the asahi hook, which stages the Apple
Silicon display, Wi-Fi and neural-engine firmware into early boot, and
to drop btrfs-overlayfs when limine-snapper-sync is absent.

Nothing put it back, so a package built through that PKGBUILD ships
without the hook. It does not fail at install; it fails at the next
mkinitcpio run, when the initramfs is regenerated without asahi and the
machine wedges in early boot with no keyboard.

This has not shipped because the published packages were built as arch
any, where the CARCH == aarch64 branch never ran. Building them properly
as aarch64 turns it on.

Narrow the deletion to the Limine entry-tool config, the part that
really is x86 only, rather than forking the PKGBUILD. Refuse to build if
upstream restructures that line, since silently not matching would ship
exactly the package this prevents.
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.

5 participants