Git Product home page Git Product logo

swinn's Introduction

swinn

Implementation of Blezzing - blezz in pure Bash (4+ should be fine). image

Given a blezz-formatted file, it'll allow you to launch programs or start tasks by pressing a button or sequence of buttons. Should be compatible with Blezz files, and rofi-blezz as well.

Reasoning

I started using Blezz files to define launchers and I find it very convenient, specially as a Rofi plugin. I wanted something compatible with the same files for the console, and I thought that if I'm in a situation where I can't use Rofi, I'd probably be in some limited environment through SSH. So I made it as minimal as possible using only a modern-ish version of Bash (considered AWK, but bash is common enough!)

Syntax

directoryName:

Defines the contents of a directory. It's similar to a "goto" label. Anything before a label will be top level.

dir(key, dirName)

When pressing key it'll open the defined directory.

act(key, label, action)

When pressing key it'll start the defined action. Use sh-compatible syntax.

# Comment

Lines starting with a # will be commented out.

Keys

Any key you can type on your keyboard should work for the value of key, I've tested it with non-US characters, capitals and such without issue.

# This is a sample blezz file, and a comment.
dir(1, test)
act(2, Firefox, firefox)

test:
act(1, libreoffice)

Will let you press "2" to launch firefox, and "1, 1" to open libreoffice.

Keys

. to go back to a previous folder, or close the application if at top level. You may also quit with Escape and Ctrl+C. Any assigned key will perform its given action, and non-assigned keys should show an alert.

swinn's People

Contributors

magpie514 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.