1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -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

@@ -18,7 +18,12 @@ Rectangle {
readonly property real horizontalPadding: SettingsData.topBarNoBackground ? 2 : Theme.spacingS
// The visual root for this window
property Item windowRoot: (Window.window ? Window.window.contentItem : null)
readonly property var sortedToplevels: CompositorService.sortedToplevels
readonly property var sortedToplevels: {
if (SettingsData.runningAppsCurrentWorkspace){
return CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, parentScreen.name)
}
return CompositorService.sortedToplevels
}
readonly property int windowCount: sortedToplevels.length
readonly property int calculatedWidth: {
if (windowCount === 0)