summaryrefslogtreecommitdiff
path: root/services/Visibilities.qml
blob: f7dc29e57bad3987fe0fd14b221aaead6aa1ea9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pragma Singleton

import Quickshell

Singleton {
    property var screens: ({})
    property var bars: ({})
    property var panels: ({})

    function getForActive(): PersistentProperties {
        return Object.entries(screens).find(s => s[0].slice(s[0].indexOf('"') + 1, s[0].lastIndexOf('"')) === Hyprland.focusedMonitor.name)[1];
    }
}