Giter Club home page Giter Club logo

zimple's Introduction

zimple

Zimple is a simple statusbar for any xsetroot supported WM.

example

Features

  • YAML configuration file
  • Blocks are run concurrnetly
  • Blocks can be conditionally enabled
  • Supports defining multiple update signals for a single block

Installation

go install github.com/alx99/zimple/cmd/zimple@latest

OR

git clone https://github.com/ALX99/zimple
cd zimple/
make build
sudo make install

Note: The main branch is considered stable and ready for use

Configuration

Configuration file

Note: The configuration should be placed in $XDG_CONFIG_HOME/zimple/config.yaml or ~/.config/zimple/config.yaml if $XDG_CONFIG_HOME is not set

settings:
  separator: " / "       # [Optional] A separator to use between the blocks
blocks:                  # [Mandatory] A list of blocks
  - command: date        # [Mandatory] The command to run
    interval: 1h         # [Optional] The max amount of time that a block can go without executing (default is 30days)
    icon: ""           # [Optional] An icon that is prefixed to the output
    enabled: "date"      # [Optional] A bash if condition. If it evaluates to true the block is enabled
    update_signals: [50] # [Optional] A list of signal number which causes the block to update
    args: [+%b %d]       # [Optional] Arguments to pass to the command

Example configuration

Note: Icons may not be properly be displayed in the browser. Make sure you have a nerd font installed.

settings:
  separator: " / "
blocks:
  - command: sh
    icon: ""
    enabled: "command xbacklight"
    update_signals: [50]
    args: [-c, printf "%.1f%%\n" "$(xbacklight)"]

  - command: date
    interval: 1h
    icon: ""
    args: [+%b %d]

  - command: date
    interval: 30s
    icon: ""
    args: [+%I:%M%p]

FAQ

Why?

Previously I used dwmblocks which worked well for a long time. However I wanted something that was easier to work with when modifying the look of the statusbar. If dwmblocks works for you, then this is most likely not interesting to you.

Project status

zimple's People

Contributors

alx99 avatar

Stargazers

 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.