diff --git a/wiki/linux/swayidle.md b/wiki/linux/swayidle.md new file mode 100644 index 0000000..42d293c --- /dev/null +++ b/wiki/linux/swayidle.md @@ -0,0 +1,23 @@ +# swayidle + +swayidle is an idle manager for [Wayland](/wiki/linux/wayland.md). + +## Installation + +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](/wiki/linux/systemd.md#change-suspend-and-hibernate-behaviour) +the system after 30 seconds. +Additionally a program [xss-lock](/wiki/linux/xss-lock.md) has to be used to let swayidle know to +use a specific lock command. + +```sh +#!/bin/sh + +exec swayidle -w \ + timeout 30 'systemctl suspend-then-hibernate' +``` diff --git a/wiki/linux/wayland.md b/wiki/linux/wayland.md new file mode 100644 index 0000000..7a12829 --- /dev/null +++ b/wiki/linux/wayland.md @@ -0,0 +1,4 @@ +# Wayland + +[Wayland](https://wayland.freedesktop.org/) is a replacement for the +[X11 window system](/wiki/linux/x_window_system.md). diff --git a/wiki/linux/xss-lock.md b/wiki/linux/xss-lock.md new file mode 100644 index 0000000..1283e17 --- /dev/null +++ b/wiki/linux/xss-lock.md @@ -0,0 +1,19 @@ +# xss-lock + +xss-lock is an external screen locker for [X11 Window Systems](/wiki/linux/x_window_system.md). +Using xwayland it can also be used for [Wayland](/wiki/linux/wayland.md) systems. + +## Installation + +On most Linux distributions swayidle can be installed with the `xss-lock` package. + +## Usage + +To run xss-lock it has to be called - preferably after the boot process. +An example of this will look like the following. +This command makes the system use `swaylock` if the system is put to +[sleep](/wiki/linux/systemd.md#change-suspend-and-hibernate-behaviour). + +```sh +xss-lock -- swaylock +```