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

import Quickshell

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

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