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.
21 lines
473 B
QML
21 lines
473 B
QML
import QtQuick
|
|
import qs.Ui
|
|
|
|
BarIndicator {
|
|
id: root
|
|
|
|
readonly property var idleService: bar?.shell?.firstPartyServiceFor("omarchy.idle")
|
|
|
|
active: idleService ? idleService.stayAwake : false
|
|
activeText: ""
|
|
inactiveText: ""
|
|
activeTooltipText: "Allow Idle Lock & Screensaver"
|
|
inactiveTooltipText: "Stay Awake"
|
|
|
|
function toggle() {
|
|
if (root.idleService) root.idleService.setIdleEnabled(root.active)
|
|
}
|
|
|
|
onPressed: function() { root.toggle() }
|
|
}
|