Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds first-class WezTerm support to Omarchy’s terminal theming + screensaver launch flow, aligning WezTerm styling and behavior with existing Alacritty/Ghostty/Kitty defaults.
Changes:
- Introduces a WezTerm default config that loads Omarchy’s current theme colors dynamically.
- Adds a centralized WezTerm theme template (
default/themed/wezterm.lua.tpl) to generate~/.config/omarchy/current/theme/wezterm.lua. - Adds a dedicated WezTerm screensaver config and wires WezTerm into the screensaver launcher + terminal restart hook.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| default/wezterm/screensaver.lua | Adds a minimal, black, “no chrome” WezTerm screensaver configuration. |
| default/themed/wezterm.lua.tpl | Adds a template to generate WezTerm-compatible color tables from theme variables. |
| config/wezterm/wezterm.lua | Adds the default WezTerm config with dynamic theme loading and Omarchy clipboard bindings. |
| bin/omarchy-restart-terminal | Touches WezTerm config to trigger WezTerm auto-reload on theme changes. |
| bin/omarchy-launch-screensaver | Adds a WezTerm branch to launch the screensaver using the new config file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
meanwhile I created this script https://gist.github.com/iltumio/50da77cfc37fc83b50e992b308c7d6f7 |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@iltumio : i love wezterm, i'm wondering, your addition to Omarchy, does rely on already installed Wezterm, as far i could see. Or do you know of any other more official way for the installation of wezterm? |
976d5b8 to
4c8455b
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (1)
migrations/1775804891.sh:7
- Existing users' current theme is an already-generated snapshot, so adding the template does not create
~/.config/omarchy/current/theme/wezterm.luaduring upgrade. This migration installs a config that silently falls back to WezTerm defaults until the user manually changes themes. Reapply the recorded current theme here (without changing the background) so WezTerm is themed immediately.
if [[ ! -f ~/.config/wezterm/wezterm.lua ]]; then
mkdir -p ~/.config/wezterm
cp "$OMARCHY_PATH/config/wezterm/wezterm.lua" ~/.config/wezterm/wezterm.lua
|
Review follow-up pushed in |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (1)
migrations/1775804891.sh:7
- The migration copies a config that loads
current/theme/wezterm.lua, but it never regenerates the already-active theme, so existing users will fall back to WezTerm's default colors until they manually switch or refresh themes. Refresh the theme after installing the config; the tmux template migration uses the same pattern inmigrations/1770638893.sh:8.
if [[ ! -f ~/.config/wezterm/wezterm.lua ]]; then
mkdir -p ~/.config/wezterm
cp "$OMARCHY_PATH/config/wezterm/wezterm.lua" ~/.config/wezterm/wezterm.lua
fi
Add wezterm as a supported terminal with config, screensaver, theme template, and restart integration matching the existing pattern for Alacritty, Ghostty, and Kitty.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The screensaver failed to appear (or vanished within ~1s) on multi-monitor setups using wezterm: - Launcher: `wezterm start` is a mux client; firing one per monitor in quick succession races inside the running wezterm-gui server and often spawns zero windows. Use `wezterm-gui` instead, which spawns the GUI directly and is reliable across monitors. - omarchy-screensaver: the focus-based dismiss (upstream facae82) runs a global pkill, so during the launcher's per-monitor focus shuffle a not-yet-focused instance tears down every instance. Ignore focus loss for a short startup grace window; once all instances are up the focus check is stable and still dismisses on real activity / when hyprlock takes over. This part fixes a general multi-monitor issue independent of wezterm. Also simplify wezterm theme-color loading to a single pcall(dofile). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0f63ba2 to
0ef938c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (1)
migrations/1775804891.sh:7
- This migration uses bash-specific syntax (
[[ ... ]]) but doesn’t declare an interpreter. If this script is executed directly (or invoked by a runner that uses/bin/sh), it can fail. Add a bash shebang at the top (and optionally strict mode likeset -euo pipefail) to ensure consistent execution.
echo "Add WezTerm terminal support"
# Copy WezTerm config to user's ~/.config if not already present
if [[ ! -f ~/.config/wezterm/wezterm.lua ]]; then
mkdir -p ~/.config/wezterm
cp "$OMARCHY_PATH/config/wezterm/wezterm.lua" ~/.config/wezterm/wezterm.lua
fi
|
replaced by #12808 due to the migration to omarchy quattro |
Summary
default/themed/wezterm.lua.tpl) — no per-theme configs neededdefault/wezterm/screensaver.luaomarchy-install-terminaland ships a migration so existing users get the configChanges
config/wezterm/wezterm.lua— Default config matching Omarchy's terminal style (font, padding, decorations, keybindings). Loads theme colors dynamically viadofile()from the generated theme file, guarded against a nil/emptyHOMEanddofileerrors so a missing or broken theme file never breaks the terminal.default/themed/wezterm.lua.tpl— Theme template with{{ variable }}placeholders, processed byomarchy-theme-set-templatesto generate a Lua colors table.default/wezterm/screensaver.lua— Standalone screensaver config (black background, 18pt font, zero padding, hidden cursor).bin/omarchy-install-terminal— Addedweztermas an allowed terminal (org.wezfurlong.wezterm.desktop), updated usage/help text and arg hints.bin/omarchy-launch-screensaver— Added*wezterm*case usingwezterm --config-file ... start --class org.omarchy.screensaver.bin/omarchy-restart-terminal— Added wezterm config touch to trigger its built-in auto-reload on theme change.migrations/1775804891.sh— Copiesconfig/wezterm/wezterm.luainto~/.config/wezterm/for existing users if not already present.Generated by OpenClaw via Opengate.sh