wayland/idle-notify: add idle notify
This commit is contained in:
parent
b8fa424f85
commit
6eb12551ba
8 changed files with 329 additions and 0 deletions
44
src/wayland/idle_notify/test/manual/idle_notify.qml
Normal file
44
src/wayland/idle_notify/test/manual/idle_notify.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue