Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

sysrqmagician/stringbar

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
            ),
        ),
    ],
)

About

A dwm-style status bar

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.