How can I run removeEmptyWorkspace or removeEmptyWorkspaceAfter when a window is closed?
Thanks
Either a layout modifier using the emptyLayout hook (only works if it's the current workspace), or by watching for deleteWindow and possibly unmapWindow events in the handleEventHook and checking if the workspace is empty.