This commit is contained in:
Zacharias-Brohn
2025-10-15 12:09:09 +02:00
parent e8258d798a
commit 7325e09458
2 changed files with 0 additions and 15 deletions
-1
View File
@@ -47,7 +47,6 @@ Scope {
Layout.fillHeight: true Layout.fillHeight: true
Layout.topMargin: 6 Layout.topMargin: 6
Layout.bottomMargin: 6 Layout.bottomMargin: 6
screen: bar.screen
} }
AudioWidget { AudioWidget {
-14
View File
@@ -7,20 +7,6 @@ import Quickshell.Hyprland
Rectangle { Rectangle {
id: root id: root
required property ShellScreen screen
readonly property int activeWsId: ( Hyprland.monitorFor( screen ).activeWorkspace?.id ?? 1 )
readonly property var occupied: Hyprland.workspaces.values.reduce(( acc, curr ) => {
acc[ curr.id ] = curr.lastIpcObject.windows > 0;
return acc;
})
readonly property int groupOffset: Math.floor(( activeWsId - 1 ) / 10) * 10
readonly property int ws: 1 + groupOffset
readonly property bool isOccupied: occupied[ ws ] ?? false
implicitWidth: workspacesRow.implicitWidth + 10 implicitWidth: workspacesRow.implicitWidth + 10
implicitHeight: workspacesRow.implicitHeight + 7 implicitHeight: workspacesRow.implicitHeight + 7