Skip to content

Update Zed install to include Omazed (theme sync package) install and setup - #2006

Closed
APS6 wants to merge 1 commit into
omacom:devfrom
APS6:dev
Closed

APS6 wants to merge 1 commit into
omacom:devfrom
APS6:dev

Conversation

@APS6

@APS6 APS6 commented Sep 27, 2025

Copy link
Copy Markdown

This PR adds automatic installation of Omazed.

PS: This is my first time making a PR.

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):
omazed in btop. using only 5MB memory

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

Demo

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:
Automatically generated sakura theme

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.

@dhh

dhh commented Oct 18, 2025

Copy link
Copy Markdown
Contributor

Add a new hooks system that you can tap into: #2527

@APS6

APS6 commented Oct 19, 2025

Copy link
Copy Markdown
Author

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

dhh commented Oct 19, 2025

Copy link
Copy Markdown
Contributor

Just append to the file.

@APS6

APS6 commented Oct 19, 2025

Copy link
Copy Markdown
Author

Done.
Omazed 1.1.1 now uses the theme-set hook.
Thanks for that!

@morgoth

morgoth commented Oct 20, 2025 •

Copy link
Copy Markdown
Contributor

@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.

@dhh

dhh commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

@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.

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