Where Is the swayidle Config File?
swayidle reads timeout rules from a config file beside the sway tree on Linux. Common path, syntax and lock hookup.
Last updated
swayidle is a small daemon with timeout rules kept in a config file near the sway tree. Idle delays pair with lock, suspend or output commands plus resume counterparts.
Many setups pass rules on the command line from the sway config instead of using a file. Check both places when hunting a timeout. The file path below is the common location when one exists.
Where swayidle stores this, by platform
~/.config/swayidle/config
Common location for timeout and resume rules when a file is used. Many setups pass rules on the command line from the sway config instead, so check there when this file is absent. Restart the daemon after edits.
Frequently asked questions
How do I move swayidle settings?
Copy the swayidle config to the same relative path on the new machine. Timeout rules and resume commands travel with it. Locking itself stays delegated to swaylock or a compatible locker, so keep that pairing configured too.
Where do I set lock timeouts?
In the swayidle config with timeout lines naming seconds and commands. Each line pairs an idle delay with a lock, suspend or output action plus a resume counterpart. Reload the user service after edits.
Notice an outdated path? Let us know.