1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-09-13 18:41:35 +02:00
Files
wiki/wiki/linux/swayidle.md

656 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'