GithubHelp home page GithubHelp logo

lemonjsx's Introduction

Lemonjsx

Build Status dependencies Status devDependencies Status Code Climate Test Coverage Issue Count

JSX pragma for generating formatted input for lemonbar.

<bar>
  <section
    align="l"
  >
    {left}
  </section>
  <section
    align="r"
  >
    {right}
  </section>
</bar>

lemonjsx's People

Contributors

roman-holovin avatar

Watchers

 avatar

lemonjsx's Issues

Implement all formatting attributes

  • l - Aligns the following text to the left side of the screen.
  • c - Aligns the following text to the center of the screen.
  • r - Aligns the following text to the right side of the screen.
  • Owidth - Offset the current position by width pixels in the alignment direction.
  • Bcolor - Set the text background color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.
  • Fcolor - Set the text foreground color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.
  • Tindex - Set the font used to draw the following text. The parameter index can either be - or the 1-based index of the slot which contains the desired font. If the parameter is - lemonbar resets to the normal behavior (matching the first font that can be used for the character). If the selected font can't be used to draw a character, lemonbar will fall back to normal behavior for that character
  • Ucolor - Set the text underline color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.
  • Abutton:command: - Create a clickable area starting from the current position, when the area is clicked command is printed on stdout. The area is closed when a A token, not followed by : is encountered.
  • Sdir - Change the monitor the bar is rendered to. dir can be either

+/-
Next/previous monitor.
f/l
First/last monitor.
0-9
Nth monitor.

Attribute modifiers
+attribute
Set the attribute attribute for the following text.
-attribute
Unset the attribute attribute for the following text.
!attribute
Toggle the attribute attribute for the following text.
Where attribute is one of the following

  • o - Draw a line over the text.
  • u - Draw a line under the text.

Implement all tags

  • - reverse %{R}content%{R}
  • - underline %{+u}content%{-u}
  • - action %{Anumber:command:}content%{A}

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.