Coder Social home page Coder Social logo

dlauncher-extension's Introduction

Dlauncher Example Extension

In this repo you can find an example extension that should work for Dlauncher. Extensions as of now are pretty weird and jank, yet they do work.

The code is full of comments which should be helpful in guiding you to creating your own extension later.

Building

Dlauncher will need a .so file to run your extension, so you will need to have the following in your Cargo.toml

[lib]
crate-type = ["cdylib"]

This is already included in this example repository.

Go ahead and clone the repository and build it.

git clone https://github.com/diced/dlauncher-extension
cargo build --release

Running

After this you can find the file at target/release/libdlauncher_zws.so

You will need to modify your ~/.config/dlauncher/dlauncher.toml's main.extensions property to have libdlauncher_zws.so inside of its array.

[main]
# ...
extensions = ["libdlauncher_zws.so"]
# ...

Now copy the .so to ~/.config/dlauncher/extensions/ and restart Dlauncher.

cp target/release/libdlauncher_zws.so ~/.config/dlauncher/extensions/
pkill dlauncher
dlauncher

Now you can type "zero" and you can see it pop up at the bottom.

Extra Stuff

In the extension I added some stuff for prefixes and such, which aren't used in this extension, yet it is used as an example for extensions that want to use a prefix.

I encourage you to explore the dlauncher documentation to see what is possible, since you can do pretty much anything you want.

Docs: https://docs.rs/dlauncher

dlauncher-extension's People

Contributors

diced avatar

Watchers

 avatar

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.