repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
quickshell/nuguland/features/brightness/fixtures/services/AmbientLight.qml
Rawimport QtQuick
Item {
// No sensor: discovery finds nothing and a read request never starts a helper.
property bool monitoring: false
property bool found: false
property string status: "idle"
readonly property bool busy: false
property int reads: 0
signal sampleFinished
function requestRead() {
reads++;
}
function stateJson() {
return JSON.stringify({
"status": status,
"found": found,
"busy": busy
});
}
function fixtureState() {
return {
"monitoring": monitoring,
"found": found,
"reads": reads
};
}
}