wayland/idle-notify: add idle notify

This commit is contained in:
outfoxxed 2025-09-04 02:44:22 -07:00
parent b8fa424f85
commit 6eb12551ba
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 329 additions and 0 deletions

View file

@ -0,0 +1,44 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
FloatingWindow {
color: contentItem.palette.window
IdleMonitor {
id: monitor
enabled: enabledCb.checked
timeout: timeoutSb.value
respectInhibitors: respectInhibitorsCb.checked
}
ColumnLayout {
Label { text: `Is idle? ${monitor.isIdle}` }
CheckBox {
id: enabledCb
text: "Enabled"
checked: true
}
CheckBox {
id: respectInhibitorsCb
text: "Respect Inhibitors"
checked: true
}
RowLayout {
Label { text: "Timeout" }
SpinBox {
id: timeoutSb
editable: true
from: 0
to: 1000
value: 5
}
}
}
}