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

import Quickshell
import Quickshell.Hyprland

Singleton {
    property var screens: new Map()

    function load(screen: ShellScreen, visibilities: var): void {
        screens.set(Hyprland.monitorFor(screen), visibilities);
    }

    function getForActive(): PersistentProperties {
        return screens.get(Hyprland.focusedMonitor);
    }
}