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

import Quickshell

Singleton {
    property var screens: ({})

    property var bar

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