active_workspace

On this page
  1. window:active_workspace()

window:active_workspace()#

Returns the name of the active workspace.

This example demonstrates using the launcher menu to select and create workspaces, and how the workspace can be shown in the right status area.

local wakterm = require 'wakterm'

wakterm.on('update-right-status', function(window, pane)
  window:set_right_status(window:active_workspace())
end)

return {
  keys = {
    {
      key = '9',
      mods = 'ALT',
      action = wakterm.action.ShowLauncherArgs { flags = 'FUZZY|WORKSPACES' },
    },
  },
}
Edit this page