Skip to content

Support tmux theme fragments in Omarchy themes - #5585

Open
crmne wants to merge 1 commit into
basecamp:devfrom
crmne:cp/tmux-theme-fragments
Open

Support tmux theme fragments in Omarchy themes#5585
crmne wants to merge 1 commit into
basecamp:devfrom
crmne:cp/tmux-theme-fragments

Conversation

@crmne

@crmne crmne commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds optional tmux theme fragments loaded from the active Omarchy theme.

This lets themes ship a tmux.conf fragment alongside existing app-specific
theme files, while keeping the default tmux colors intact for themes that do not
provide one.

Changes

  • Sources ~/.config/omarchy/current/theme/tmux.conf from the default tmux config when present.
  • Reloads tmux when changing Omarchy themes.
  • Uses tmux ls instead of pgrep so tmux is only reloaded when a server is reachable.

Testing

  • git diff --check origin/dev..cp/tmux-theme-fragments
  • bash -n bin/omarchy-restart-tmux
  • bash -n bin/omarchy-theme-set

Copilot AI review requested due to automatic review settings May 5, 2026 09:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for optional tmux theme fragments that are loaded from the active Omarchy theme, allowing themes to ship a tmux.conf alongside other theme assets while keeping default tmux styling when no fragment is present.

Changes:

  • Source ~/.config/omarchy/current/theme/tmux.conf from the main tmux config when it exists.
  • Reload tmux configuration when switching Omarchy themes.
  • Use tmux ls (instead of process checks) so tmux reload only happens when a tmux server is reachable.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
config/tmux/tmux.conf Adds an optional theme fragment include for tmux.
bin/omarchy-theme-set Reloads tmux when applying a new Omarchy theme.
bin/omarchy-restart-tmux Switches to tmux ls gating and reloads tmux configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dhh

dhh commented May 5, 2026

Copy link
Copy Markdown
Member

Can you show me some before/after images of how you have put this to good use in a theme?

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