Skip to content

Releases

v1.4.5 — Battery Indicator Polish, Threshold Clamping & Web Studio Fixes

Choose a tag to compare

@mvsoares mvsoares released this 23 Nov 11:52

🛠 What's Fixed & Improved in v1.4.5

  • Battery Threshold Integrity: Automatically clamps battery_crit < battery_warn in both normalize_appearance_updates() (core.py) and the Web Studio inputs (studio.html).
  • Browser-Safe Live Battery Preview: Inline SVG 10-step battery + lightning bolt preview in Web Studio for nerd and icon_only styles so browsers without locally installed Nerd Fonts never render missing-glyph boxes (□).
  • Status-Bar Context Hint: Shows a clear inline hint and softly dims battery controls in Web Studio whenever the right-status bar toggle is disabled.
  • Cleanup: Removed duplicate PERF = res.perf assignment in studio.html.

Full Changelog: v1.4.4...v1.4.5

v1.4.4 — Configurable Status-Bar Battery Indicator (Styles, Visibility, ETA & Critical Alerts)

Choose a tag to compare

@mvsoares mvsoares released this 23 Nov 11:22

🔋 What's New in WezTerm Studio v1.4.4

Configurable Status-Bar Battery Indicator (Web Studio · TUI · CLI · Standalone & Loader Modes)

  • 5 Visual Styles (--battery-style / Web Studio dropdown):
    • nerd (default) — Material Design Nerd Font 10-step battery gauge + charging bolt (󰂄 89%, 󰁹 100%, 󰂀 70%, 󰁻 20%, 󰂎 5%, 󰚥 80% plugged at limit)
    • emoji — ⚡🔋 89% · 🔋 70% · 🪫 15% · 🔌 80% (works without Nerd Fonts)
    • bar — [████░] 89%⚡ compact block gauge
    • icon_only — minimal 󰂄 / 󰂀, automatically revealing % when low
    • percent — ⚡89% / 70%
  • 4 Smart Visibility Modes (--battery-mode):
    • always (default; auto-hidden on desktops without a battery)
    • hide_full (hides when 100% Full or sitting at an AC charge threshold like 80%)
    • low_only (quiet until discharging drops to your warning %)
    • off
  • Remaining Time / Time-to-Full (--battery-time): off, discharging (64% (2h15m)), or always (89% (21m) to full) directly from wezterm.battery_info() with zero subprocesses.
  • Thresholds, Crimson Critical Pill & 1-Shot Toast (--battery-warn, --battery-crit, --battery-toast): Configurable amber warning % (default 30%), bold crimson alert pill % (default 15%), and optional 1-shot desktop notification on critical discharge.
  • Web Studio Live Preview: New 🔋 Status Bar & Battery Indicator card in studio.html with a live 5-state preview strip (AC · Full · Normal · Low · Crit).
  • Tab Bar Cleanup: Removed decorative non-clickable fake close ✕ from tab titles and previews (1f8b1d3).

Full Changelog: v1.4.3...v1.4.4

v1.4.3 — Lighter Tab Bar, Performance Profiles & Rendering Benchmark

Choose a tag to compare

@mvsoares mvsoares released this 21 Nov 19:47

⚡ What's New in WezTerm Studio v1.4.3

A performance release. The tab bar wezterm-theme generates is lighter for everyone, and you can now pick a performance profile and measure what your tab bar and status bar cost.


🪶 A Lighter Tab Bar (for every theme)

WezTerm redraws the tab bar on the GUI thread, calling the tab-title hook twice for every tab. Reading each tab's running process and working directory makes WezTerm query the operating system.

Measured in WezTerm, 8 tabs, all 17 tab styles v1.4.2 v1.4.3
Process / directory lookups per tab-bar update 32 (60 with Powerline) 16
Lua time per tab-bar update 1.01 ms 0.86 ms
  • One lookup per tab per update. Each tab's process and directory are read once per update instead of on every call.
  • Labels stay current: when a tab's title changes (after a cd or a new command), it is read again right away.
  • Powerline, Adaptive Gradient and Workspace Chameleon no longer repeat work for neighbouring tabs, gradients or workspace lookups.

🎛 Performance Profiles

Pick one in the Web Studio's new Performance Profile & Diagnostics card, in the TUI ([perf]), or from the CLI:

Profile What it sets
Default WezTerm's own renderer, frame rates, cursor easing and status interval
Battery saver Default GPU renderer, 30 FPS, no easing animations, status bar every 10 s, no blur, transparency or gradient
Max smoothness WebGpu on the discrete GPU, 120 FPS, 60 FPS animations
Remote / no GPU Software (CPU) rendering, 30 FPS, no animations or backdrop effects. Meant for remote desktops, VMs and broken GPU drivers.
  • You see every change first: the Web Studio and the TUI list each setting a profile will change and ask before applying it. Every apply makes a backup, so you can roll back.

  • Every value stays editable: a profile just writes normal settings. Flags you pass in the same command take priority (--perf-profile smooth --max-fps 144).

  • Three new settings in the Web Studio, TUI and CLI:

    • WebGpu GPU (--webgpu-power LowPower|HighPerformance)
    • Cursor blink easing (--cursor-blink-ease Constant|Linear|…; Constant is a plain on/off blink)
    • Status bar update interval (--status-interval 10000)

    They work in loader mode too.

🩺 Diagnostics

  • wezterm-theme doctor shows your effective renderer (and whether it comes from the Studio, your wezterm.lua, or WezTerm's default) and the active profile.
  • Measure the actual cost: wezterm-theme doctor --perf, the ⏱ Measure rendering cost button and bench in the TUI run your tab-bar and status-bar Lua inside WezTerm and report the time per update and the number of process lookups.
  • New warnings:
    • max_fps is ignored on native Wayland, where the compositor paces frames.
    • A status bar updating faster than every second.
    • A very large scrollback (memory used per pane).
    • HighPerformance set without WebGpu.
    • Blur, transparency or the gradient left on while saving battery.

⚠ Upgrade Notes

  • Apply any theme or setting once after upgrading (for example wezterm-theme -s <your theme>) so your module is rebuilt with the lighter tab bar.
  • On native Wayland, WezTerm ignores max_fps, so the frame-rate caps in the Battery and Smoothness profiles have no effect there; the other settings still apply. Set enable_wayland = false to use X11 if you need the cap.

📦 Upgrade / Install

pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-theme

Full Changelog: v1.4.2...v1.4.3

v1.4.2 — Safer init/restore & Backups, Reliable Session Snapshots, Status Bar & Web Studio Fixes

Choose a tag to compare

@mvsoares mvsoares released this 21 Nov 18:50

🛠 What's Fixed in WezTerm Studio v1.4.2

A bug-fix release focused on keeping your wezterm.lua, backups and settings intact, plus more reliable session snapshots, status bar and Web Studio.


🧩 init, uninstall & Validation

  • The hook always lands in the right place. init targets the file's final top-level return. In a return { ... } config, a return x inside a helper function could receive the hook before: init reported success, but your config was never themed.
  • Line endings are preserved. A CRLF wezterm.lua stays CRLF through init, uninstall and every automatic rollback, so a failed init leaves the file byte-identical.
  • Existing errors in your own config no longer block changes. If wezterm.lua already logged an unrelated ERROR, every theme change used to fail with "WezTerm rejected the configuration". Now a change is rolled back only if it adds new errors. wezterm-theme doctor still reports the existing ones.
  • Corrupt state is reported, not replaced. A wezterm_theme.json that fails to parse is never silently reset to defaults, and invalid hand-edited values are ignored instead of breaking theme generation.

💾 Backups & Restore

  • Restoring the oldest pre_restore backup works. It used to delete that same backup halfway through the restore, losing its appearance settings while still reporting success.
  • No backup is created for a change WezTerm rejects.
  • --restore N picks the backup listed as N: the list is ordered by the time in the file name.
  • Clock changes can't delete your newest backup. After a daylight-saving fall-back or a timezone change, new backups still sort as the newest.

🎛 Appearance & Presets

  • Resetting a setting works the same way in standalone and loader modes. This covers Default, Auto, off, none and empty values, including cursor_style, audible_bell and window_decorations.
  • Higher FPS limit: max_fps and animation_fps accept up to 255, WezTerm's own limit, in the CLI, Web Studio, presets and the generated Lua.
  • Presets apply more of what you exported:
    • An invalid value now skips only that setting, and the message names it.
    • In standalone mode, settings missing from the preset go back to their defaults, so the result matches the exported look.
    • In loader mode only the preset's own settings change, because settings.json also holds your own loader configuration.
  • Exporting to pipes works: wezterm-theme export /dev/stdout and export >(jq .) no longer crash.

📊 Status Bar, Command Palette & Sessions

  • Git branch without a subprocess: the branch is read straight from .git/HEAD. git only runs for worktrees, submodules, detached or reftable repositories, and very deep directories.
  • $EDITOR with arguments works, for example EDITOR='code --wait' or emacsclient -t, when you click file:line links.
  • "Toggle Programming Ligatures" switches ligatures on or off with a single press and keeps your other font features (zero, ss01, …).
  • Session snapshots:
    • Saving is atomic.
    • Restoring twice no longer duplicates tabs, and only missing tabs are reopened in open workspaces.
    • Snapshots work with ~/.wezterm.lua too.
    • Restore still finds the snapshot when your dotfiles are synced to a machine with a different home directory.
  • Command palette actions call the installed wezterm-theme directly, so they keep working when WezTerm runs from the GUI without your venv on PATH, and after a Homebrew upgrade.
  • OLED black now also applies in OS Light mode when no light color scheme is set.
  • Visual fixes: Powerline separators take the next tab's SSH/PROD danger tint, and workspace names with accents or emoji are truncated cleanly.
  • The Software-renderer CPU warning detects front_end = 'Software' in your wezterm.lua again.

🌐 Web Studio

  • --host localhost listens on IPv4 again: it could bind only ::1 and fail where IPv6 is disabled. IPv6 addresses such as --host ::1 are supported.
  • Windows: a second Studio can no longer grab port 7777 while one is already running, which caused intermittent "invalid session token" errors.
  • Invalid theme IDs (for example 1e400 or 10.9) return a clear 400 error.
  • Clearer error handling in the UI:
    • Network, clipboard and server errors are shown as status messages instead of failing silently.
    • Performance warnings are refreshed after each change.
    • Font names are safely escaped.

⌨ CLI

  • doctor says when validation was skipped because no wezterm binary was found.
  • The status summary shows animation FPS, Wayland, workspace switcher and session manager.
  • Input like -s ² or --restore ³ gives an error instead of a traceback.
  • python -m wezterm_theme now returns a non-zero exit code on errors.
  • Faster status checks on Flatpak installs.

⚠ Upgrade Notes

  • Apply any theme or setting once after upgrading (e.g. wezterm-theme -s <your theme> or any change in the Web Studio). That rebuilds your module with the status bar, command palette, editor and session snapshot fixes.
  • If wezterm.lua already logs errors that have nothing to do with wezterm-theme, theme changes are now applied anyway. Run wezterm-theme doctor to see those errors.

📦 Upgrade / Install

pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-theme

Full Changelog: v1.4.1...v1.4.2

v1.4.1 — Hardened Web Studio API, Safer init/uninstall, Battery Status & v1.4.0 Features

Choose a tag to compare

@mvsoares mvsoares released this 21 Nov 02:02

🚀 What's New in WezTerm Studio v1.4.1

Heads-up: this is the first PyPI release since v1.3.0. It ships everything from v1.3.1 and v1.4.0 (never published on their own), plus a security and reliability hardening pass over the Web Studio API, init / uninstall, and every file the tool writes.


🔒 Security: Hardened Web Studio API (wezterm-theme web)

Before this release, any web page open in your browser could POST to http://127.0.0.1:7777 (a text/plain "simple request" needs no CORS preflight) and rewrite your WezTerm config, including the command launched by file:line links (editor_cmd). Every request is now checked:

  • Host allowlist: a loopback-bound server only answers loopback Host names on its own port, which blocks DNS rebinding.
  • JSON only: POST requires Content-Type: application/json (415 otherwise). That forces a CORS preflight, which the server never approves.
  • Origin check: an Origin header, when present, must match the Host (403 otherwise).
  • Per-process session token: injected into the page as <meta name="studio-token"> and sent back as X-Studio-Token (403 when missing or wrong).
  • Response headers: X-Frame-Options: DENY, Content-Security-Policy: frame-ancestors 'none', Referrer-Policy: no-referrer and X-Content-Type-Options: nosniff. Request bodies are capped at 5 MB.
  • Clean errors: bad input (for example theme_id: "abc" or invalid JSON) returns a 400 JSON error, and unexpected failures return 500 instead of an empty reply. --host <non-loopback> prints a prominent warning.

🧩 Safer init / uninstall with a Lua-aware Scanner

  • Exact handler matching: conflicting wezterm.on('format-tab-title', …) handlers are now found by a scanner that skips comments and strings and balances parentheses. init disables only that call. It no longer swallows unrelated config after named handlers, breaks on nested closures such as pcall(function() … end), or re-comments the same handler on every run.
  • Handlers re-enabled on uninstall: uninstall restores the handlers that init disabled, including blocks written by ≤ 1.4.0, so running init and then uninstall gives back the original wezterm.lua byte for byte. Pass --keep-disabled-handlers to opt out.
  • Hook lookup:
    • The hook now tries the absolute module path first, which fixes ~/.wezterm.lua combined with a custom $XDG_CONFIG_HOME.
    • Load failures are logged with wezterm.log_error and log_warn instead of being swallowed.
    • Re-running init upgrades an outdated hook in place.

💾 Config Integrity, Atomic Writes & Backups

  • settings.json is never clobbered: a hand-edited loader file that fails to parse (one trailing comma is enough) used to be silently replaced. Now nothing is written, and you get the file, line and column of the error. wezterm_theme.json gets the same protection.
  • Atomic writes: every managed file is written through a temp file, fsync and os.replace, so WezTerm never reloads a half-written config.
    • Symlinked dotfiles (stow, chezmoi) are followed instead of being replaced.
    • The existing file mode is preserved.
    • On Windows, the write retries while WezTerm holds the file.
  • Serialized changes: concurrent Web Studio clicks can no longer mix JSON and Lua from different themes, or roll back each other's writes.
  • One validation path: every appearance setting (CLI, TUI, Web Studio, presets) is checked once, covering types, ranges, #rrggbb cursor colors and control characters. Lua strings now escape control characters as well.
  • Missing wezterm is reported: when no wezterm binary is found, you now get a warning that validation was skipped (it used to be silent), and a non-zero exit from wezterm counts as a failure.
  • Backups:
    • Restoring by exact filename (the Web UI used a list index that shifted).
    • Cross-mode restores (standalone ↔ loader) no longer overwrite the wrong JSON.
    • Automatic backups are pruned: the newest 10 pre_restore copies are kept, plus the newest 10 wezterm.lua backups and the pristine pre_init. Labeled backups are never pruned.
    • Backups taken in the same second never collide.
  • Preset import: importing a long JSON preset no longer fails with ENAMETOOLONG on Python ≤ 3.12.
  • Color-scheme cache: the cache is now rebuilt after a WezTerm upgrade.

🔋 Battery Status with Level & Charging Icons

  • The Studio right-status bar now maps state_of_charge to 11 Nerd Font battery glyphs (󰂎 → 󰁹), shows a charging icon (󰂄), and color-codes the level:

    State Color
    Charging or Full emerald #34d399
    AC hold mint #86efac
    ≤ 30% amber #fbbf24
    ≤ 15% bold crimson #f87171

✨ From v1.3.1 & v1.4.0: Frosted Glass, OLED, Sessionizer, Session Snapshots & GPU Tuner

  • Frosted-glass blur across platforms with --blur 0-100. It uses macos_window_background_blur on macOS, kde_window_background_blur on KDE and win32_system_backdrop on Windows 11.
  • Background and cursor overrides:
    • An OLED #000000 background override.
    • A custom cursor color that keeps WCAG contrast.
    • Automatic Symbols Nerd Font Mono + Emoji fallback chains.
  • Workspace switcher: a zero-dependency switcher for zoxide and Git projects.
  • Session snapshots: save and restore workspaces to wezterm_session.json from Ctrl+Shift+P, the CLI (wezterm-theme session) or the Web Studio.
  • GPU and rendering tuning:
    • front_end (WebGpu / OpenGL / Software), max_fps, animation_fps and Wayland controls.
    • DevOps quick_select_patterns (Ctrl+Shift+Space).
    • CPU and Software-renderer diagnostics in wezterm-theme doctor.
  • Conflict detection: wezterm-theme doctor, init and the Web Studio detect conflicting format-tab-title handlers, and the Web Studio offers a Fix Automatically button.
  • Web Studio layout: fixed card and button overflow on narrow and multi-column grids.

⚠ Upgrade Notes

  • Run wezterm-theme init once to upgrade an existing hook to the absolute-path version. Older hooks keep working in the meantime.
  • Reload any open Web Studio tab after upgrading. POST requests now need the session token embedded in the page.
  • Changes are serialized only inside one process. A CLI command run while wezterm-theme web is running is not serialized with the server.

📦 Upgrade / Install

pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-theme

🙏 Credits & Community Inspirations

Full Changelog: v1.3.0...v1.4.1

v1.3.0 — Command Palette, Visual Color-Scheme Swatches, AI Agent Radar, SSH Danger Tint & Zen Mode

Choose a tag to compare

@mvsoares mvsoares released this 19 Nov 22:33
fbadf8d

🚀 What's New in WezTerm Studio v1.3.0

⌨ Native In-WezTerm Command Palette (Ctrl+Shift+P) & Fuzzy Picker

  • Press Ctrl+Shift+P directly inside WezTerm (augment-command-palette + InputSelector + M.command_palette_entries) to:
    • Switch Tab Bar Theme across all 62 themes with inline ANSI swatches
    • Toggle Presentation / Zen Mode (+4pt font, hidden tab bar, 1.0 opacity, centered 48/24px padding via window:set_config_overrides)
    • Cycle Window Opacity (100% / 92% / 85% / 75%)
    • Toggle Programming Ligatures (calt / clig / liga)
    • Launch Browser Web Studio

🌈 Visual Swatch Explorer for All 1,100+ Terminal Color Schemes

  • Normalized #rrggbb extraction (bg, fg, cursor, ansi[1..8], is_dark) via wezterm.color.get_builtin_schemes() + srgba_u8() (~90ms cached, with 33 rich offline fallbacks).
  • New 🌈 Color Schemes tab in Browser Web Studio (wezterm-theme web) with live code/prompt swatch cards, All / 🌙 Dark / ☀ Light filters, and 1-click Apply Dark / Set Light actions.
  • Live ANSI TrueColor swatches in the TUI (wezterm-theme → [cs]) and CLI (wezterm-theme --list-schemes -f "dark catppuccin").

🤖 AI Coding Agent Status Radar & Completion Notifications

  • Automatically detects active AI coding CLIs (Claude Code, Gemini CLI, Antigravity, Codex, Aider, OpenCode, Goose, Cline, Amp), badges tabs with 🤖 / 🤖●, and triggers a one-shot window:toast_notification when an inactive agent tab finishes output (--agent-radar / --no-agent-radar).

⚠ SSH & Production Host Danger Tint

  • Automatically tints remote ssh/mosh tabs amber (󰣀) and production/root targets (prod*, prd*, root@*) crimson (#dc2626 + ⚠ PROD:<host>) across all 14 tab styles and the Studio right-status bar (--ssh-alert / --no-ssh-alert).

📦 Upgrade / Install

pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-theme

🙏 Credits & Community Inspirations

Full Changelog: v1.2.0...v1.3.0

v1.2.0 — Dynamic Themes, Studio Status Bar, $EDITOR Links & Full Web/TUI Parity

Choose a tag to compare

@mvsoares mvsoares released this 19 Nov 19:24

✦ WezTerm Studio (wezterm-theme) v1.2.0

Cross-platform release (Linux, macOS, and Windows) expanding WezTerm Studio to 62 Tab Bar Themes with dynamic scheme/workspace styles, an optional theme-tinted Studio Right-Status Bar, stack-trace click-to-$EDITOR hyperlinks, and full 1:1 feature parity across Web Studio, TUI, and CLI — zero external dependencies, Python >= 3.10.

📦 PyPI: https://pypi.org/project/wezterm-theme/


✨ Highlights in v1.2.0

  • 🎨 62 Tab Bar Themes (+2 New Dynamic Styles):
    • #61 Scheme-Adaptive Powerline (adaptive_gradient): synthesizes an Oklab Powerline gradient at runtime from config.resolved_palette with automatic WCAG foreground contrast across any active WezTerm color_scheme.
    • #62 Workspace Chameleon (workspace_color): deterministic per-window workspace accent hashing with an active [workspace] badge.
  • 🏷 Smarter Tab Title Engine & Hover Highlights:
    • Preserves manual tab.tab_title overrides before falling back to process|dir.
    • Reads cross-shell WEZTERM_PROG and WEZTERM_CMD alongside user_vars.cmd.
    • Surfaces native OSC 9;4 pane.progress (Percentage, Error, Indeterminate), split count (²–⁹), and zoom (🔍) within fixed TAB_TITLE_LEN (4–60 chars).
    • Adds WCAG-verified mouse hover highlights across all 62 theme styles.
  • 🧭 Optional Theme-Tinted Studio Right-Status Bar (--status-bar):
    • Instant ⚡ LEADER & active key-table modal pills (RESIZE, COPY, SEARCH), active workspace, non-local mux domain + remote latency, wezterm.GLOBAL cached per-cwd git branch via wezterm.run_child_process, battery, and clock (synced to status.enabled in JSON Loader mode).
  • ⚡ Smart $EDITOR Stack-Trace Links & Window Appearance Controls:
    • --editor & --open-in-editor: click file:line stack traces to open directly at line in $EDITOR (nvim, vim, hx, code, zed) + auto-linked owner/repo#123 GitHub issues/PRs.
    • --ligatures / --no-ligatures: 1-click HarfBuzz programming ligatures toggle (calt/clig/liga).
    • --light-scheme: automatic OS Dark/Light companion color scheme switching via wezterm.gui.get_appearance().
    • --dim-inactive, --gradient, --border, --tab-max-width, and --fancy-tabs / --no-fancy-tabs.
  • 🌐 Full 1:1 Web Studio, TUI & CLI Parity:
    • Dedicated ✦ Tab Symbols [s] top-level Web Studio tab, dedicated Editor & Tab Bar sizing cards, and full range (4–60 chars) tab width controls across Web, TUI, and CLI.

🙏 Credits & Community Inspirations


🚀 Upgrade / Install

pipx upgrade wezterm-theme
# or fresh install:
pipx install wezterm-theme
# or zero-install run:
uvx wezterm-theme@1.2.0

v1.0.0 — WezTerm Studio (Initial Stable Release)

Choose a tag to compare

@mvsoares mvsoares released this 19 Nov 14:15

✦ WezTerm Studio (wezterm-theme) v1.0.0

First stable cross-platform release (Linux, macOS, and Windows) of WezTerm Studio — zero external dependencies, Python >= 3.10.

📦 PyPI: https://pypi.org/project/wezterm-theme/

Highlights

  • 🎨 60 Tab Bar Themes across 6 curated categories (Google & Material, Powerline & Geometry, Developer Palettes, Synth & Cyberpunk, Nature & Earth Tones, and Minimal, Badges & CRT) with verified WCAG contrast and configurable fixed tab width.
  • ✦ CIE LCh Hue-Adaptive Symbol Builder — combine active tab prefixes, hue-matched markers, Powerline/chevron arrows, and inactive tab indicators.
  • 🔤 Live Font & Nerd Font Picker — automatic discovery across Linux (wezterm ls-fonts / FontConfig / Flatpak), macOS (CoreText / App bundle), and Windows (DirectWrite / Program Files / Scoop) with independent Editor and Tab Bar typography.
  • 🌐 3 Interfaces in 1 Package — Local Browser Web Studio (wezterm-theme web), Interactive ANSI TrueColor TUI (wezterm-theme), and fast CLI one-liners (wezterm-theme -s ...).
  • 💾 Safe Live Hot-Reload — pre-validates configs via wezterm, creates timestamped backups, and exports/imports portable OS-agnostic JSON presets.

Quick Install

pipx install wezterm-theme
# or run instantly without installing:
uvx wezterm-theme

wezterm-theme init
wezterm-theme web