#!/sbin/openrc-run command=/usr/bin/swayidle command_args="-w timeout 601 'niri msg action power-off-monitors' timeout 600 'qs -c noctalia-shell ipc call lockScreen lock' before-sleep 'qs -c noctalia-shell ipc call lockScreen lock'" command_background="yes" pidfile="${XDG_RUNTIME_DIR}/${RC_SVCNAME}.pid" start_pre() { if [ -z "$WAYLAND_DISPLAY" ]; then eerror "$WAYLAND_DISPLAY unset, can't proceed." return 1 fi }