mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Add window prefix
This commit is contained in:
parent
6187422574
commit
9433fc31ea
1 changed files with 11 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue