Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soreau/wayland-logout

A utility designed to kill a single instance of a wayland compositor.
https://github.com/soreau/wayland-logout

wayland

Last synced: 3 months ago
JSON representation

A utility designed to kill a single instance of a wayland compositor.

Awesome Lists containing this project

README

        

![logout](/wayland-logout.png)

# Wayland Logout

Wayland Logout is a utility designed to kill any wayland compositor that uses libwayland-server. It looks up the PID for the socket file by checking the socket path environment variables and sends a SIGTERM signal. This is useful as a way to logout of a wayland compositor, as the name implies.

### Installing

```
$ meson build
$ ninja -C build
# ninja -C build install
```

### Example usage
To end the wayland compositor session:
```
wayland-logout
```
To end a particular compositor instance by socket file:
```
WAYLAND_DISPLAY=/run/user/1000/wayland-2 wayland-logout
```
To have the compositor exit after a running client completes, useful for using the compositor as a desktop manager:
```
gtkgreet -l && wayland-logout
```

### License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details