Giter VIP home page Giter VIP logo

waffy's Introduction

waffy

Wayland compatible, touch friendly application launcher

waffy-screenshot

Features

  • wlroots dedicated launcher
  • Touch support
  • Read all application locations
  • Respect hidden apps
  • Fuzzy find apps

Requirements

  • gtk-layer-shell - A library to write GTK applications that use Layer Shell

Building

Build with git and cmake

git clone https://github.com/wvffle/waffy.git
cd waffy
cargo build --release

waffy's People

Contributors

insertt avatar wvffle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

waffy's Issues

Add program options

-h --help            Display help info
-v                   Display version
--columns <num>      Number of columns
--prompt <string>    Prompt text
--wal                Enable pywal colors

Not all icons are found

Some of the application icons are missing. For example Alacritty or Discord.

The alacritty icon is defined as follows:

[Desktop Entry]
Icon=Alacritty

It's found by rofi and woki

Cleanup the code

  • move util functions into utils.c
  • move keyboard handling into keyboard.c
  • fix all * generated by intellij

Compilation errors

When I follow the commands in the readme with rustc 1.47.0 compliation fails with the following errors (warnings omitted):

error[E0596]: cannot borrow `res` as mutable, as it is a captured variable in a `Fn` closure
   --> src/grid.rs:123:17
    |
123 |                 res.cursor_set_index(i);
    |                 ^^^ cannot borrow as mutable

error[E0505]: cannot move out of `res` because it is borrowed
   --> src/grid.rs:122:47
    |
121 |         for (i, widget) in res.buttons.iter().enumerate() {
    |                            ----------- borrow of `res.buttons` occurs here
122 |             widget.connect_enter_notify_event(move |widget, _| {
    |                                               ^^^^^^^^^^^^^^^^ move out of `res` occurs here
123 |                 res.cursor_set_index(i);
    |                 --- move occurs due to use in closure

error[E0382]: use of moved value: `res`
   --> src/grid.rs:122:47
    |
112 |         let mut res = Self {
    |             ------- move occurs because `res` has type `grid::Grid`, which does not implement the `Copy` trait
...
122 |             widget.connect_enter_notify_event(move |widget, _| {
    |                                               ^^^^^^^^^^^^^^^^ value used here after move
123 |                 res.cursor_set_index(i);
    |                 --- use occurs due to use in closure
...
127 |             widget.connect_leave_notify_event(move |widget, _| {
    |                                               ---------------- value moved into closure here, in previous iteration of loop

error[E0505]: cannot move out of `res` because it is borrowed
   --> src/grid.rs:127:47
    |
121 |         for (i, widget) in res.buttons.iter().enumerate() {
    |                            ----------- borrow of `res.buttons` occurs here
...
127 |             widget.connect_leave_notify_event(move |widget, _| {
    |                                               ^^^^^^^^^^^^^^^^ move out of `res` occurs here
128 |                 res.cursor_hide();
    |                 --- move occurs due to use in closure

error[E0382]: use of moved value: `res`
   --> src/grid.rs:127:47
    |
112 |         let mut res = Self {
    |             ------- move occurs because `res` has type `grid::Grid`, which does not implement the `Copy` trait
...
122 |             widget.connect_enter_notify_event(move |widget, _| {
    |                                               ---------------- value moved into closure here
123 |                 res.cursor_set_index(i);
    |                 --- variable moved due to use in closure
...
127 |             widget.connect_leave_notify_event(move |widget, _| {
    |                                               ^^^^^^^^^^^^^^^^ value used here after move
128 |                 res.cursor_hide();
    |                 --- use occurs due to use in closure

... Which is unfortunate because it looks really cool :/

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.