Giter Club home page Giter Club logo

stringbar's Introduction

stringbar

Crates.io Version GitHub Actions Workflow Status GitHub License

A dwm-style status bar (sets X root window name).

Features

  • Configurable layout
  • Hot config reloading

Runtime Dependencies

  • xsetroot

Installation

Using cargo

Execute cargo install stringbar

From source (x86_64 Linux only)

Build Dependencies

Building

Execute just release and copy the resulting ./stringbar binary to a directory in $PATH.

Configuration

  • Start stringbar once to generate the default configuration file.
  • Edit $XDG_CONFIG_HOME/stringbar/config.ron

Available modules

Name Description
CpuUsage Cpu utilization in percent
MemoryUsage Memory usage out of total
SwapUsage Swap usage out of total
Timestamp A custom formatted timestamp
ProcessCount Number of processes running
DiskUsage Amount of space used out of total on a specific disk
DiskUsageTotal Total amount of space used out of total on all storage devices

Example

#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
    separator: " | ",
    update_interval_ms: 1000,
    decimal_data_units: false,
    sections: [
        (
            module: MemoryUsage,
            decoration: (
                before: "dram ",
                after: None,
            ),
        ),
        (
            module: DiskUsage(
                name: "/dev/sda",
            ),
            decoration: (
                before: "sda ",
                after: None,
            ),
        ),
        (
            module: DiskUsageTotal(
                include_removables: false,
            ),
            decoration: (
                before: "total ",
                after: None,
            ),
        ),
        (
            module: Timestamp(
                template: "%d/%m/%Y %H:%M",
            ),
            decoration: (
                before: None,
                after: None,
            ),
        ),
    ],
)

stringbar's People

Contributors

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