33 lines
746 B
QML
33 lines
746 B
QML
pragma Singleton
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import Quickshell.Wayland
|
|
import "../../../../config"
|
|
|
|
Item {
|
|
// true = inhibit idle (prevent hypridle/lock/dpms), false = allow idle
|
|
property bool idle: false
|
|
property bool isIdle: idleMonitor.isIdle
|
|
|
|
property PanelWindow panelWindow: null
|
|
|
|
IdleInhibitor {
|
|
id: idleInhibitor
|
|
window: panelWindow
|
|
enabled: IdleState.idle
|
|
}
|
|
|
|
IdleMonitor {
|
|
id: idleMonitor
|
|
enabled: true
|
|
timeout: 30
|
|
respectInhibitors: true
|
|
}
|
|
|
|
// may need this in hypridle.conf
|
|
// general {
|
|
// ignore_wayland_inhibit = false # Make sure this is false or omitted
|
|
// ignore_dbus_inhibit=false
|
|
// }
|
|
} |