swayidle(1) General Commands Manual swayidle(1) (NAME) swayidle - Wayland (SYNOPSIS) swayidle [options] [events...] (OPTIONS) -C . : $XDG_CONFIG_HOME/swayidle/config $HOME/.swayidle/config. << (EVENTS)>> . . -h . -d (debug). -w before-sleep . : swayidle () . -S seat . seat . (DESCRIPTION) swayidle Wayland . . (EVENTS) timeout [resume ] timeout command . "resume " resume command . before-sleep systemd command systemd . : InhibitDelayMaxSec logind.conf(5) . . after-resume systemd command logind . lock systemd logind (session) command . unlock systemd logind (session) command . idlehint systemd IdleHint logind/elogind . idlehint swayidle SetIdleHint(false) . (shell) . (SIGNALS) swayidle : SIGTERM, SIGINT resume . swayidle . SIGUSR1 (idle) . (EXAMPLES) swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' before-sleep 'swaylock -f -c 000000' . . swayidle (inhibition lock) swaylock -w swayidle -f swaylock . (AUTHORS) Drew DeVault . swayidle . (SEE ALSO) sway(5) swaymsg(1) sway-input(5) sway-output(5) sway-bar(5) loginctl(1) 2025-11-06 swayidle(1)