Skip to content

proposal: omarchy-theme-set hooks/plugins for theming non-default applications - #809

Closed
pikdum wants to merge 1 commit into
omacom:masterfrom
pikdum:master
Closed

pikdum wants to merge 1 commit into
omacom:masterfrom
pikdum:master

Conversation

@pikdum

@pikdum pikdum commented Aug 15, 2025

Copy link
Copy Markdown

I was looking into how I'd wire up the theme switcher with Doom Emacs and noticed a few PRs for theming other non-default applications too. Here's a quick proposal, inspired by how custom themes work, that would allow a hooks/plugins system for extending this functionality.

  • a directory where hooks can be cloned to: ~/.local/share/omarchy/theme-set-hooks
  • hook directories must have an executable hook.sh at root level
  • after changing the theme for core applications, omarchy-theme-set executes all hook.sh files

So for example, to use this to add support for theming Doom Emacs, I could do something like:

  1. create a new repository omarchy-theme-set-hook-doom-emacs:
    • hook.sh - bash script to basically (load-theme '$THEME_NAME t) and update any configuration
    • themes/ - folder with theme files for those not already shipped with doom
  2. clone that to ~/.local/share/omarchy/theme-set-hooks/doom-emacs/
    • could be manual or with a cli helper like installing themes has
  3. now when I change themes, ~/.local/share/omarchy/theme-set-hooks/doom-emacs/hook.sh is ran to change the Doom Emacs theme too

Rather than theme-set-hooks, could be less verbose and use theme-hooks or similar instead.

Any thoughts on this approach?

@darcy

darcy commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

Agreed on the benefits of this. Maybe putting this dir in the .local/state instead of .local/share might be better - .local/state/omarchy/theme-hooks. Would need to hook into omarchy-theme-update I think too.

But otherwise, this makes sense to me fwiw. 👍

@dhh

dhh commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

This is an interesting idea, but I think it's too cumbersome. I think if you want to do something like this, you should just add your own theme switching script, call the omarchy one, then call your own setup in extension of that.

@dhh dhh closed this Oct 7, 2025
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