From 9433fc31ea304f3cdf739f694f7477ddb0ba4ae6 Mon Sep 17 00:00:00 2001 From: muon Date: Sun, 8 Mar 2026 14:41:32 +0000 Subject: [PATCH] Add window prefix --- modules/home/terminal/wezterm.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/home/terminal/wezterm.nix b/modules/home/terminal/wezterm.nix index b778ff7..86aee8d 100644 --- a/modules/home/terminal/wezterm.nix +++ b/modules/home/terminal/wezterm.nix @@ -240,6 +240,17 @@ in { return cells end + wezterm.on("format-window-title", function(tab, _pane, _tabs, _panes, _config) + local ok, win = pcall(function() return wezterm.mux.get_window(tab.window_id) end) + if ok and win then + local ws = win:get_workspace() + if ws ~= "default" then + return ws .. " — " .. tab.active_pane.title + end + end + return tab.active_pane.title + end) + wezterm.on("update-status", function(window, _pane) local kt = window:active_key_table() local mode = kt or "locked"