18 lines
422 B
QML
18 lines
422 B
QML
pragma Singleton
|
|
|
|
import qs.components
|
|
import Quickshell
|
|
import Quickshell.Hyprland
|
|
|
|
Singleton {
|
|
property var screens: new Map()
|
|
property var bars: new Map()
|
|
|
|
function load(screen: ShellScreen, visibilities: DrawerVisibilities): void {
|
|
screens.set(Hypr.monitorFor(screen), visibilities);
|
|
}
|
|
|
|
function getForActive(): DrawerVisibilities {
|
|
return screens.get(Hypr.focusedMonitor);
|
|
}
|
|
}
|