Giter Club home page Giter Club logo

wleave's Introduction

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

wleave's People

Contributors

amnatty avatar earth-walker avatar bvr-yr avatar

Stargazers

drendog avatar  avatar Sergey A. avatar  avatar  avatar CIHIKU avatar Matheus Calegaro avatar Nicolas Maignan avatar epyon_avenger avatar  avatar  avatar  avatar Nimrod avatar LOSEARDES77 avatar  avatar  avatar Patryk Kielar avatar Evangelos Lioudakis avatar Gregor Grigorjan avatar killswitch avatar Daniel Phan avatar  avatar Lukas Stauersbøl avatar  avatar Yash Raj avatar  avatar  avatar 飘尘 avatar  avatar Matt avatar  avatar Aleksana avatar Ludovico avatar  avatar Felix Berger Cipriano avatar Philipp Schmitt avatar haxibami avatar Rowland Watkins avatar  avatar Dedguy21 avatar  avatar Abi avatar  avatar

Watchers

 avatar

wleave's Issues

Spawn window on all monitors

wleave spawn on only on current monitor. I would like to have wleave spawn window on every secondary monitor, then I would apply styles:

window {
  background-color: rgba(12, 12, 12, 0.8);
}

I do not want layout on secondary monitors.

Relative paths in CSS do not behave the same as wlogout

In CSS, the relative paths should be relative to the location of the style.css. This is how it works in wlogout. However in wleave, it seems as though the path may be relative to the executable for some reason. This means you are unable to reference images next to the style.css without a full path. This will cause issues with usernames being different.

The paths should be relative to the css file.

Feature request: hide UI before launching command

Hi there,

First, thanks for wleave, it's really nice :)

I'm often using wleave to start swaylock-effects (a fork of swaylock with fancy effects). Swaylock-effects is configured to show a blurred, greyscaled screenshot while active; the only issue is that that screenshot is taken before wleave exits, so instead of showing my desktop, it shows the wleave UI.

Would it be possible to add an option to hide the wleave UI before starting the command? (Or to do it all the time without an option if that makes more sense?)
Or would you be interested in merging a PR implementing this if I manage to do it myself? (I'm extremely new to Rust and Wayland programming 😅)

Thanks!

config filetype detection in editors

Can you please either

  1. change the config file name to layout.json
  2. allow comments in the json (jsonc) so I can use vim modeline magic to set the filetype (// vim: ft=jsonc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.