1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-07-11 18:27:45 +02:00

linux: added wayland basics for idling and locking screen

This commit is contained in:
tiyn 2025-07-06 06:33:41 +02:00
parent d0aa1faeec
commit c3c37929a8
3 changed files with 46 additions and 0 deletions

23
wiki/linux/swayidle.md Normal file
View File

@ -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'
```

4
wiki/linux/wayland.md Normal file
View File

@ -0,0 +1,4 @@
# Wayland
[Wayland](https://wayland.freedesktop.org/) is a replacement for the
[X11 window system](/wiki/linux/x_window_system.md).

19
wiki/linux/xss-lock.md Normal file
View File

@ -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
```