Add Wezterm auto-theming support#6104
Open
AndrewGaspar wants to merge 1 commit into
Open
Conversation
Wire Wezterm into Omarchy's theming pipeline alongside alacritty, kitty, ghostty, and foot. - config/wezterm/wezterm.lua: base config that loads the current theme's colors via dofile from ~/.config/omarchy/current/theme/wezterm.lua, with the tab bar enabled (retro tab bar so themed colors apply fully) - default/themed/wezterm.lua.tpl: theme template emitting a config.colors table (including a themed tab_bar) from the shared colors.toml tokens, auto-rendered by the existing omarchy-theme-set-templates glob - omarchy-restart-terminal: touch wezterm.lua to trigger Wezterm's config auto-reload (it has no external reload signal like kitty/ghostty) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds WezTerm integration for Omarchy by introducing a theme template + a WezTerm config that loads the generated colors, and updates the terminal-restart helper to trigger WezTerm reloads.
Changes:
- Add a WezTerm color scheme template for Omarchy themes
- Add a WezTerm config that dynamically loads the generated theme file
- Update restart script to trigger WezTerm configuration reload via file mtime change
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| default/themed/wezterm.lua.tpl | New template that emits a WezTerm colors table from Omarchy theme variables |
| config/wezterm/wezterm.lua | New WezTerm config that loads the generated theme file and applies it to config.colors |
| bin/omarchy-restart-terminal | Touches WezTerm config to prompt a live reload after theme changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| -- Dynamic Omarchy theme colors (regenerated on every `omarchy theme set`) | ||
| local theme = wezterm.home_dir .. '/.config/omarchy/current/theme/wezterm.lua' | ||
| local ok, colors = pcall(dofile, theme) |
Author
There was a problem hiding this comment.
take a look at the configs for alacritty, foot, and kitty and see if they use something other than dofile
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.
Wire Wezterm into Omarchy's theming pipeline alongside alacritty, kitty, ghostty, and foot.
Wezterm is a terminal emulator which notably supports mux-ed pane and window remoting over a single ssh or et connection, allowing for a tmux-like experience that is fully integrated into the user's window manager.
This implementation currently requires the user to opt-in by either copying
~/.local/share/omarchy/weztermto~/.config/wezterm, or adding this line to their existing wezterm config:Wezterm packaging for Arch is currently quite dated, so I wouldn't recommend including Wezterm as a second-class installable terminal from Omarchy -> Install -> Terminal at this time.
EDIT:
Demo Video
screenrecording-2026-06-16_17-50-18.mp4