Support tmux theme fragments in Omarchy themes - #5585
Open
crmne wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
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.conffrom 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.
Member
|
Can you show me some before/after images of how you have put this to good use in a theme? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds optional tmux theme fragments loaded from the active Omarchy theme.
This lets themes ship a
tmux.conffragment alongside existing app-specifictheme files, while keeping the default tmux colors intact for themes that do not
provide one.
Changes
~/.config/omarchy/current/theme/tmux.conffrom the default tmux config when present.tmux lsinstead ofpgrepso tmux is only reloaded when a server is reachable.Testing
git diff --check origin/dev..cp/tmux-theme-fragmentsbash -n bin/omarchy-restart-tmuxbash -n bin/omarchy-theme-set