Add IdleInhibitor

This commit is contained in:
Ly-sec 2025-08-20 14:22:29 +02:00
parent bfc2adfca4
commit e7577ed488
6 changed files with 231 additions and 1 deletions

View file

@ -31,6 +31,17 @@ NBox {
}
}
// Idle Inhibitor
NIconButton {
icon: IdleInhibitorService.isInhibited ? "coffee" : "bedtime"
tooltipText: IdleInhibitorService.isInhibited ? "Disable Keep Awake" : "Enable Keep Awake"
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mPrimary
onClicked: {
IdleInhibitorService.manualToggle()
}
}
// Wallpaper
NIconButton {
icon: "image"