You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update Zed install to include Omazed (theme sync package) install and setup - #2006
Omazed is a lightweight Bash + systemd package that:
Automatically syncs Zed’s theme with your current Omarchy theme.
Includes the 11 default Omarchy themes.
Generates custom Zed themes from Alacritty configs on the fly (fast with bash).
As a Zed user myself I wanted to make the experience better for everyone and not just me. Since theme switching for all apps was previously considered out of scope in #719, I decided to make a separate, opt-in package. The goal was to keep it as lightweight and easy to set up as possible.
How it works
A systemd service uses inotify-tools to watch the current Omarchy theme.
On change, it runs a simple Bash script to update Zed’s theme.
Resource usage is very low (about 5 MB of memory in my testing):
To make the install simple I added the package to AUR so that everything can be setup in seconds with yay -S omazed && omazed setup
Auto-generated Sakura theme (from Alacritty) in Zed:
Change in this PR
The Zed installer entry now also installs and sets up Omazed: *Zed*) present_terminal "echo 'Installing Zed...'; sudo pacman -S --noconfirm zed && yay -S --noconfirm omazed && omazed setup && setsid gtk-launch dev.zed.Zed" ;;
That's it! Omazed handles everything else.
This way, users who choose Zed from the Omarchy installer get theme sync out of the box. Omarchy itself carries no extra burden since Omazed is fetched from the AUR.
Omazed is MIT-licensed and open source, so changes or improvements can be made freely.
Proposal
To make Omazed even lighter, I’d like to propose either:
A file that always contains the current theme name (not a symlink), so I can drop the inotify-tools dependency and switch to systemd.path, or
Even better, a way to hook into omarchy-theme-set directly, removing the need for file watching entirely.
Add a new hooks system that you can tap into: #2527
I feel like the single theme-set file might get messy if multiple packages are trying to use the same file. Might be better to either call all hooks prefixed with theme-set-* or inside hooks/theme/ so that extensions can create their own hooks without interfering with others.
Or would you prefer I just append omazed sync to the theme-set file?
@dhh I'm wondering if this PR should be merged, or maybe there should be a place in manual with all the tools that are integrating via hook?
This way there is no maintenance burden on omarchy side and a possibility to create powerful community integrations via hooks.
BTW I tested omazed package and it works nicely. Thank you @APS6 for creating it.
@APS6 I think we might have an easier route now: #4053. If we could reduce this to just a single zed.config.tpl file, I wouldn't mind including it by default.
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
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.
This PR adds automatic installation of Omazed.
PS: This is my first time making a PR.
Omazed is a lightweight Bash + systemd package that:
As a Zed user myself I wanted to make the experience better for everyone and not just me. Since theme switching for all apps was previously considered out of scope in #719, I decided to make a separate, opt-in package. The goal was to keep it as lightweight and easy to set up as possible.
How it works
To make the install simple I added the package to AUR so that everything can be setup in seconds with
yay -S omazed && omazed setupDemo
Video of theme sync in action, including external themes:
https://github.com/user-attachments/assets/4266c939-d992-4551-b87f-d8feddc78572
Auto-generated Sakura theme (from Alacritty) in Zed:

Change in this PR
The Zed installer entry now also installs and sets up Omazed:
*Zed*) present_terminal "echo 'Installing Zed...'; sudo pacman -S --noconfirm zed && yay -S --noconfirm omazed && omazed setup && setsid gtk-launch dev.zed.Zed" ;;That's it! Omazed handles everything else.
This way, users who choose Zed from the Omarchy installer get theme sync out of the box. Omarchy itself carries no extra burden since Omazed is fetched from the AUR.
Omazed is MIT-licensed and open source, so changes or improvements can be made freely.
Proposal
To make Omazed even lighter, I’d like to propose either: