Code Monkey home page Code Monkey logo

swaystatus's Introduction

swaystatus

Status command for i3bar/swaybar written in async rust. Based on i3status-rust.

Blocks documentation

Formatting documentation

Compatibility

Refer to #4 for i3status-rust compatibility.

Differences

Blocks

Music

While it lacks many configuration options, music block allows switching between different players with mouse wheel.

Enhanced clicks handling abilities

Each block supports multiple click options to handle blocks' clicks.

Example:

[[block]]
block = "time"
[[block.click]]
button = "left" # Which button to handle
cmd = "kitty" # The shell command to run
sync = false # Whether to wait for command to finish before proceeding (default is false)
update = true # Whether to update the block after click (default is true)

There is also an experimental support for double clicks:

[[block]]
block = "time"
[[block.click]]
button = "double_left"
cmd = "alacritty"

Hsv color support

It is possible to specify theme's colors in HSV color space instead of RGB. The format is "hsv:<hue>:<saturation>:<value>[:<alpha>]", where hue is in range 0..360, saturation value and alpha are in range 0..=100.

[theme]
name = "modern"
[theme.overrides]
idle_bg = "hsv:190:60:30"

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.