Giter Site home page Giter Site logo

rstatus's Introduction

rstatus - bar for tiling wms(i3, sway, etc)

Build Status MIT

Building

  • cargo build --release

Running

  • copy one of sample configs to actual config e.g. mkdir -p ~/.config/rstatus cp samples/simple.yaml ~/.config/rstauts/config.yaml ./rstatus
  • if everything goes ok you could paste rstatus command to config
    of your tiling wm

Dependencies

  • alsa(optional)
  • pipewire(optional)
  • pulseaudio(optional)

Sample screenshots

simple color_prefix powerline

Default Block options

  • interval - update interval in seconds
  • signal - signal for update block
  • name - block name
  • separator_width - width of separator after block
  • custom_separator - use custom symbol(s) for block separator
  • color - foreground color ('#RRGGBB')
  • bgcolor - background color ('#RRGGBB')
  • prefix - prefix of value
  • prefix_color - color of prefix if any
  • suffix - suffix of value
  • suffix_color - color of suffix
  • invalid - string displayed if value is invalid. if invalid value is displayed, prefix and suffix are ignored.
  • invalid_color - color of invalid value (red is default)
  • threshold_fix - if set to true, suffix and prefix changing colors accorgind to thresholds values
  • thresholds - change color of value depending on thresholds

Extending rstatus via custom block

See one of samples for syntax.
It asks from your binary/shell scripts for output. First line is for value, second is for color(optional)
Please also note, custom block executes command in the main thread. That means you shoud not make network
requests here. This could be implemented in async way, but it also means you have to detect network activity,
failure handlers and so on. Instead please check systemd timers, you always could send unix signal(kill/pkill) to
rstatus from process triggered by systemd.

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.