1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-04-15 16:54:48 +02:00
Files
wiki/wiki/linux/swayidle.md
2026-04-01 00:09:27 +02:00

655 B

swayidle

swayidle is an idle manager for Wayland.

Setup

On most Linux distributions swayidle can be installed with the swayidle package.

Usage

To run swayidle it has to be called - preferably after the boot process. An example of this will look like the following. This will suspend-then-hibernate the system after 30 seconds. Additionally a program xss-lock has to be used to let swayidle know to use a specific lock command.

#!/bin/sh

exec swayidle -w \
         timeout 30 'systemctl suspend-then-hibernate'