Git Product home page Git Product logo

dashlights's Introduction

Dashlights

Go Report Card

turn ENV vars into dashboard diagnostic lights for your shell

Dashlights is a simple binary that you drop somewhere in your PATH. It lets you turn this:

~export DASHLIGHT_HEXAGRAM_4DCB_FGRED="get up and stretch a bit" DASHLIGHT_LINK_1F517="VPN is up"

into this:

~
䷋  🔗
❯

Why?

From time to time, you may want to bring attention to the fact that you're operating in a certain state or mode, and highlight this in your shell. Dashlights provides a simple interface between shell functions or aliases and a dash display, via exported ENV vars.

Any time you export a var of the following form in your shell, dashlights can parse it and render a UTF-8 glyph, with optional foreground and background coloring applied:

 prefix            utf8 hexcode
DASHLIGHTS_BULBNAME_HEXSTRING_OPTIONALCOLORS...
             label              one or more color codes

Usage

Usage: dashlights [--obd] [--list] [--clear]

Options:
  --obd, -d              On-Board Diagnostics: display diagnostic info if provided.
  --list, -l             List supported color attributes.
  --clear, -c            Shell code to clear set dashlights.
  --help, -h             display this help and exit

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.