1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

RunningApps widget

- Sorts by monitor, workspace, then position (on a new enough niri
  version)
This commit is contained in:
bbedward
2025-08-18 11:17:33 -04:00
parent 4414b863c7
commit be9bd388c2
5 changed files with 344 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import Quickshell.Wayland
import Quickshell.Widgets
import qs.Common
import qs.Modules
import qs.Modules.TopBar
import qs.Services
import qs.Widgets
@@ -285,6 +286,8 @@ PanelWindow {
return true
case "focusedWindow":
return true
case "runningApps":
return true
case "clock":
return true
case "music":
@@ -330,6 +333,8 @@ PanelWindow {
return workspaceSwitcherComponent
case "focusedWindow":
return focusedWindowComponent
case "runningApps":
return runningAppsComponent
case "clock":
return clockComponent
case "music":
@@ -651,6 +656,23 @@ PanelWindow {
}
}
Component {
id: runningAppsComponent
RunningApps {
section: {
if (parent && parent.parent === leftSection)
return "left"
if (parent && parent.parent === rightSection)
return "right"
if (parent && parent.parent === centerSection)
return "center"
return "left"
}
parentScreen: root.screen
}
}
Component {
id: clockComponent