Skip to content

AMNatty/wleave

Repository files navigation

wleave

AUR version GitHub

A Wayland-native logout script written in Gtk3

Basically a fork of wlogout, rewritten in Rust.

wleave is compatible with wlogout configuration files.

The default Wleave menu look

Installation

Arch Linux

wleave can be installed from the AUR:

paru -S wleave-git

Building from sources

Dependencies:

  • gtk-layer-shell
  • gtk3
  • a stable version of the Rust toolchain

You can run the application using cargo run --release or GNU make:

make
./target/release/wleave

Usage

The command line options are identical to wlogout. See --help for a list of options.

Help, how do I close the menu

The <Esc> key closes the menu, an option to change this may be added eventually.

Keybinds reference

See https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gdk/keynames.txt for a list of valid keybinds.

Enhancements

  • New pretty icons by @earth-walker
  • Autoclose when window focus is lost (the -f/--close-on-lost-focus flag)
  • Mnemonic labels (the -k/--show-keybinds flag)
  • Pretty gaps by default
  • Less error-prone
  • Keybinds accept modifier keys and Unicode characters
  • Easier to extend