Files
pastilhas 460e2ebaa8 Baseline: omarchy.indicators as shipped
Indicators.qml and the six indicator files exactly as they ship in
omarchy-dev 4.0.0.r1744.gf002044, alongside the manifest `omarchy plugin
clone` generates.

Kept on its own branch so `git diff stock..master` shows precisely what
this fork changes.
2026-08-17 01:48:32 +01:00

23 lines
581 B
QML

import QtQuick
import qs.Commons
import qs.Ui
BarIndicator {
id: root
readonly property var notificationService: bar?.shell?.firstPartyServiceFor("omarchy.notifications")
readonly property bool dnd: notificationService ? notificationService.doNotDisturb : false
active: dnd
activeText: "󰂛"
inactiveText: "󰂛"
activeTooltipText: "Allow Notifications"
inactiveTooltipText: "Silence Notifications"
onPressed: function() {
if (root.notificationService) {
root.notificationService.setDoNotDisturb(!root.notificationService.doNotDisturb)
}
}
}