mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 16:29:26 -05:00
hefty: bar: special ws indication
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user