Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/widgets/(Widget)-GlazeWM-Workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
| `focused_empty_label` | string | `'{name}'` | Optional label for the currently focused workspace (has no windows opened). Falls back to `active_empty_label` if not set. |
| `hide_empty_workspaces` | boolean | `true` | Whether to hide empty workspaces. |
| `hide_if_offline` | boolean | `false` | Whether to hide workspaces widget if GlazeWM is offline. |
| `persistent_workspaces` | dict | `{}` | Number of workspaces to always show. Use `"*": N` for all monitors. Display_names from GlazeWM are cached. |
| `glazewm_server_uri` | string | `'ws://localhost:6123'` | Optional GlazeWM server uri. |
| `enable_scroll_switching` | boolean | `true` | Enable scroll switching between workspaces. |
| `reverse_scroll_direction` | boolean | `false` | Reverse scroll direction. |
Expand All @@ -27,6 +28,8 @@ glazewm_workspaces:
offline_label: "GlazeWM Offline"
hide_empty_workspaces: true
hide_if_offline: false
persistent_workspaces:
"*": 9 # Show 9 workspaces on all monitors (display_names are cached from GlazeWM)
enable_scroll_switching: true
btn_shadow:
enabled: true
Expand Down Expand Up @@ -62,6 +65,7 @@ glazewm_workspaces:
- **focused_empty_label:** Optional label for the currently focused workspace (has no windows opened). If not set, **active_empty_label** will be used, falling back to name or display_name from GlazeWM.
- **hide_empty_workspaces:** Whether to hide empty workspaces.
- **hide_if_offline:** Whether to hide workspaces widget if GlazeWM is offline.
- **persistent_workspaces:** Number of workspaces to always show. Use `"*": 9` for 9 workspaces on all monitors. Display_names are automatically cached from GlazeWM when workspaces become active.
- **glazewm_server_uri:** Optional GlazeWM server uri if it ever changes on GlazeWM side.
- **enable_scroll_switching:** Enable scroll switching between workspaces.
- **reverse_scroll_direction:** Reverse scroll direction for switching workspaces.
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/widgets/glazewm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Window:
class Workspace:
name: str
display_name: str
focus: bool = False
focus: bool = False # Global focus - only ONE workspace has this True
is_displayed: bool = False
num_windows: int = 0
windows: list[Window] = field(default_factory=list)
Expand Down
1 change: 1 addition & 0 deletions src/core/validation/widgets/glazewm/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GlazewmWorkspacesConfig(CustomBaseModel):
focused_empty_label: str | None = None
hide_empty_workspaces: bool = True
hide_if_offline: bool = False
persistent_workspaces: dict[str, int | str] = {}
glazewm_server_uri: str = "ws://localhost:6123"
enable_scroll_switching: bool = True
reverse_scroll_direction: bool = False
Expand Down
Loading