Git Product home page Git Product logo

lemon's Introduction

🍋 Lemon

Lemon is a set of scripts that interact with lemonbar to provide a customizable status bar for your desktop environment.

🍋 Motivation

There are many options for status bars out there. Many of them semi-unique scripts living in folks’ dotfiles built from the ground up that interact with lemonbar. A lot of these implementations were built to get the job done and then forgotten about. I used borrowed versions of a few of these for a few years but then became frustrated when having to modify them due to lack of extensibility and modularity.

Another option which is great is polybar - check it out if you haven’t already. I used it for a while but ran into consistent high CPU usage spikes which may or may not be fixed in later versions. I also find bash scripting fun so I wanted to move to a set up that was more bare-bones where I could create a simple script and then plug it into the bar via a configuration file. That’s why this project exists.

🍋 Example

Here’s an example bar for what I’m running day-to-day: https://github.com/novcn/lemon/blob/master/screens/ss.png

Here’s the configuration I used for this bar: https://github.com/novcn/lemon/blob/master/screens/config-sample.png

Pretty straight-forward right?

As you can see the left, center, and right variables are set with a list of different values. Each of these strings reference a script in the juice directory. The script when called will set a font-awesome icon via utils/icon script and then some value.

🍋 Juice

If you’re going to use this project you’ll likely need to write some of your own juice scripts. Luckily that is easy to do. A great example of a functional simple juice is the clock script:

#!/bin/bash
icon clock

date '+%I:%M:%S %p'

All it does is set the icon to clock - this corresponds to font-awesome-clock and then prints out a formatted time.

For a slightly more complex example checkout juice/weather which requires a network request so it’ll cache to the filesystem in case network drops off and also to limit requests to 1 per minute.

🍋 Shoutout

Shoutout to @neeasade for the inspiration

lemon's People

Contributors

colingabr avatar colingabrielson-okta avatar

Stargazers

 avatar Case Duckworth avatar  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.