1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

Add option to only show apps in the current workspace in the running apps widget

niri only currently - but should be simple enough to add support for
others
This commit is contained in:
Gonen Gazit
2025-08-26 21:53:54 +03:00
parent 6e75e2b06c
commit baea0ecc92
5 changed files with 98 additions and 7 deletions

View File

@@ -70,6 +70,15 @@ Singleton {
detectCompositor()
}
// return only the toplevels on the current workspace on the given screen
function filterCurrentWorkspace(toplevels, screen){
if (useNiriSorting) {
return NiriService.filterCurrentWorkspace(toplevels, screen)
}
//fallback to returning everything
return toplevels
}
function detectCompositor() {
// Check for Hyprland first
if (hyprlandSignature && hyprlandSignature.length > 0) {
@@ -119,4 +128,4 @@ Singleton {
}
Hyprland.dispatch("exit")
}
}
}