forked from Shinonome/dots-hyprland
hefty: bar: special ws indication
This commit is contained in:
@@ -282,6 +282,20 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
property QtObject elementMoveSmall: QtObject {
|
||||
property int duration: animationCurves.expressiveFastSpatialDuration
|
||||
property int type: Easing.BezierSpline
|
||||
property list<real> bezierCurve: animationCurves.expressiveFastSpatial
|
||||
property int velocity: 650
|
||||
property Component numberAnimation: Component {
|
||||
NumberAnimation {
|
||||
duration: root.animation.elementMoveSmall.duration
|
||||
easing.type: root.animation.elementMoveSmall.type
|
||||
easing.bezierCurve: root.animation.elementMoveSmall.bezierCurve
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property QtObject elementMoveEnter: QtObject {
|
||||
property int duration: 400
|
||||
property int type: Easing.BezierSpline
|
||||
|
||||
@@ -8,12 +8,16 @@ NestableObject {
|
||||
id: root
|
||||
|
||||
required property HyprlandMonitor monitor
|
||||
readonly property var liveMonitorData: HyprlandData.monitors.find(m => m.id === monitor.id)
|
||||
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel
|
||||
readonly property int activeWorkspace: monitor?.activeWorkspace?.id
|
||||
readonly property bool currentWorkspaceNotFake: activeWindow?.activated ?? false // Active empty workspace = fake. At least, that's how I like to call it.
|
||||
readonly property int fakeWorkspace: currentWorkspaceNotFake ? -9999 : activeWorkspace
|
||||
readonly property int shownCount: C.Config.options.bar.workspaces.shown
|
||||
readonly property int group: Math.floor((activeWorkspace - 1) / shownCount)
|
||||
readonly property var specialWorkspace: liveMonitorData?.specialWorkspace
|
||||
readonly property string specialWorkspaceName: specialWorkspace.name.replace("special:", "")
|
||||
readonly property bool specialWorkspaceActive: specialWorkspaceName !== ""
|
||||
|
||||
property list<bool> occupied: []
|
||||
property list<var> biggestWindow: occupied.map((_, index) => {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
radius: Math.min(width, height) / 2
|
||||
}
|
||||
Reference in New Issue
Block a user