mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 23:12:49 -05:00
Hyprland: filter all spacial workspaces (#398)
Filters all workspaces with IDs less than 0, regardless of their name (which is user-defined)
This commit is contained in:
@@ -30,9 +30,9 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
if (CompositorService.isHyprland) {
|
if (CompositorService.isHyprland) {
|
||||||
const baseList = getHyprlandWorkspaces()
|
const baseList = getHyprlandWorkspaces()
|
||||||
// Filter out special:scratch_term
|
// Filter out special workspaces
|
||||||
const filteredList = baseList.filter(ws => ws.name !== "special:scratch_term" && ws.id !== -98)
|
const filteredList = baseList.filter(ws => ws.id > -1)
|
||||||
return SettingsData.showWorkspacePadding ? padWorkspaces(baseList) : baseList
|
return SettingsData.showWorkspacePadding ? padWorkspaces(filteredList) : filteredList
|
||||||
}
|
}
|
||||||
return [1]
|
return [1]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user