Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/soreau/wayland-logout
- Owner: soreau
- License: other
- Created: 2020-09-09T23:59:20.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T20:25:39.000Z (over 2 years ago)
- Last Synced: 2024-07-14T13:32:28.171Z (4 months ago)
- Topics: wayland
- Language: C
- Homepage: https://github.com/soreau/wayland-logout
- Size: 39.1 KB
- Stars: 17
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - soreau/wayland-logout - A utility designed to kill a single instance of a wayland compositor. (others)
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