diff --git a/src/core/event_enums.py b/src/core/event_enums.py index 7c0ee35..47672fd 100644 --- a/src/core/event_enums.py +++ b/src/core/event_enums.py @@ -20,6 +20,7 @@ class KomorebiEvent(Event): KomorebiDisconnect = "KomorebiDisconnect" FocusWorkspaceNumber = "FocusWorkspaceNumber" FocusMonitorWorkspaceNumber = "FocusMonitorWorkspaceNumber" + FocusNamedWorkspace = "FocusNamedWorkspace" FocusChange = "FocusChange" ChangeLayout = "ChangeLayout" ToggleTiling = "ToggleTiling" @@ -36,6 +37,7 @@ class KomorebiEvent(Event): Unmanage = "Unmanage" MoveContainerToMonitorNumber = "MoveContainerToMonitorNumber" MoveContainerToWorkspaceNumber = "MoveContainerToWorkspaceNumber" + MoveContainerToNamedWorkspace = "MoveContainerToNamedWorkspace" MoveWorkspaceToMonitorNumber = "MoveWorkspaceToMonitorNumber" NewWorkspace = "NewWorkspace" SendContainerToMonitorNumber = "SendContainerToMonitorNumber" diff --git a/src/core/widgets/komorebi/workspaces.py b/src/core/widgets/komorebi/workspaces.py index dd0c47e..37c6a0f 100644 --- a/src/core/widgets/komorebi/workspaces.py +++ b/src/core/widgets/komorebi/workspaces.py @@ -81,13 +81,15 @@ def __init__( KomorebiEvent.CycleFocusMonitor.value, KomorebiEvent.FocusMonitorWorkspaceNumber.value, KomorebiEvent.FocusMonitorNumber.value, - KomorebiEvent.FocusWorkspaceNumber.value + KomorebiEvent.FocusWorkspaceNumber.value, + KomorebiEvent.FocusNamedWorkspace.value ] self._update_buttons_event_watchlist = [ KomorebiEvent.EnsureWorkspaces.value, KomorebiEvent.Manage.value, KomorebiEvent.MoveContainerToWorkspaceNumber.value, + KomorebiEvent.MoveContainerToNamedWorkspace.value, KomorebiEvent.NewWorkspace.value, KomorebiEvent.ReloadConfiguration.value, KomorebiEvent.SendContainerToMonitorNumber.value,