From 46fd0ae413dfbe3771e25d9e007cd9a6571f528c Mon Sep 17 00:00:00 2001 From: max72bra <45419961+max72bra@users.noreply.github.com> Date: Sun, 12 Oct 2025 13:38:39 +0200 Subject: [PATCH] Hyprland: filter all spacial workspaces (#398) Filters all workspaces with IDs less than 0, regardless of their name (which is user-defined) --- Modules/DankBar/Widgets/WorkspaceSwitcher.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/DankBar/Widgets/WorkspaceSwitcher.qml b/Modules/DankBar/Widgets/WorkspaceSwitcher.qml index 130be90b..efaa5089 100644 --- a/Modules/DankBar/Widgets/WorkspaceSwitcher.qml +++ b/Modules/DankBar/Widgets/WorkspaceSwitcher.qml @@ -30,9 +30,9 @@ Rectangle { } if (CompositorService.isHyprland) { const baseList = getHyprlandWorkspaces() - // Filter out special:scratch_term - const filteredList = baseList.filter(ws => ws.name !== "special:scratch_term" && ws.id !== -98) - return SettingsData.showWorkspacePadding ? padWorkspaces(baseList) : baseList + // Filter out special workspaces + const filteredList = baseList.filter(ws => ws.id > -1) + return SettingsData.showWorkspacePadding ? padWorkspaces(filteredList) : filteredList } return [1] }