import QtQml import Quickshell import Quickshell.Wayland import qs.Services import Custom as Custom Scope { IdleMonitor { id: idleMonitor30 timeout: 30 onIsIdleChanged: Custom.Systemd.setIdleHint(idleMonitor30.isIdle) } IdleMonitor { id: idleMonitor540 timeout: 540 onIsIdleChanged: { if (idleMonitor540.isIdle) NiriService.sendCommand({ "Action": "PowerOffMonitors" }); } } Connections { target: Custom.Systemd function onSleep(before: bool) { if (!before) NiriService.sendCommand({ "Action": "PowerOnMonitors" }); } } }