WAYLAND-LOGOUT(1)
π WAYLAND-LOGOUT π
okay bestie, so wayland-logout is a general commands manual moment β it's the generic logout utility for wayland compositors β¨ like, one little command and your compositor is out the door, periodt.
π¦ NAME π¦
wayland-logout β the generic logout utility for wayland compositors π«Ά
πΈ DESCRIPTION πΈ
wayland-logout is a compositor agnostic utility for simulating a logout with any wayland compositor. no cap, it does not care which one you're running, it just shows up and does the thing π
the way it works? it sends a SIGTERM signal(3) to the running compositor PID β and it figures out that PID by looking at the βenvironmentβ variables. that's it, that's the whole vibe π
β¨ ENVIRONMENT β¨
wayland-logout uses the WAYLAND_DISPLAY and XDG_RUNTIME_DIR environment variables to get the socket(2) corresponding to the compositor instance π¦
so yeah β those two little vars are literally carrying the whole operation on their backs. icon behavior, honestly π
π EXIT STATUS π
wayland-logout exits with non-zero if an error has occurred, and it'll hand you the error reasoning along with it π (so helpful of it). on success? it exits with 0. slay π
π EXAMPLES π
want to kill the current compositor instance? run this inside the compositor environment:
$ wayland-logout
and here's a typical use case β killing a specific compositor instance belonging to another user (with uid=1002), run as the other user (or as root):
$ env -i XDG_RUNTIME_DIR=/run/user/1002 WAYLAND_DISPLAY=wayland-4
wayland-logout
or, alternatively:
$ WAYLAND_DISPLAY=/run/user/1002/wayland-4 wayland-logout
ok but fr fr, peep that uid=1002 in there β you're reaching into somebody else's runtime dir, so make sure you're running as that user or as root before you go sending signals around π«Ά no chaos, just vibes.
and that's the whole page, bestie π this one came from Debian, dated November 27, 2020 β go log out of something, you've earned it β¨π
π¦ where this page comes from
- arch rolling: wf-shell 0.11.0-1 Β· MIT
- debian trixie: wf-shell 0.9.0+ds-2 Β· MIT
- fedora 43: wayland-logout 1.4-11.fc43 Β· MIT
- fedora 44: wayland-logout 1.4-12.fc44 Β· MIT
- nixos 26.05: wayland-logout 1.4
- nixpkgs unstable: wayland-logout 1.4
- nixpkgs unstable: wf-shell 0.10.0
- ubuntu noble: wf-shell 0.8.0+ds-1build2 Β· MIT
- ubuntu questing: wf-shell 0.9.0+ds-2
- ubuntu resolute: wf-shell 0.10.0+ds-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms