Coder Social home page Coder Social logo

remi-dupre / i3status-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greshake/i3status-rust

0.0 1.0 0.0 3.25 MB

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust

License: GNU General Public License v3.0

Rust 100.00%

i3status-rust's Introduction

i3status-rust

demo1

i3status-rs is a feature-rich and resource-friendly replacement for i3status, written in pure Rust. It provides a way to display "blocks" of system information (time, battery status, volume, etc) on the i3 bar. It is also compatible with sway.

For a list of available blocks, see the block documentation. Further information can be found on the Wiki.

Requirements

The Rust language and the cargo package manager are required to build the binary.

We also require Libdbus 1.6 or higher. On some older systems this may require installing libdbus-1-dev. See #194 if you are having dbus-related compilation issues.

Compilation is only tested with very recent stable versions of rustc. If you use a distro with older Rust packages, consider using rustup to install a newer toolchain.

Most blocks assume you are running Linux, and some have their own system requirements; these are mentioned in the block documentation.

Optional:

  • Font Awesome 4.x is required when using the icons config name = "awesome". For version 5, use name = "awesome5". On Arch Linux version 4 is available in the AUR, and version 5 is available here.
  • Powerline Fonts are required for all themes using the powerline arrow char.
  • gperftools is required for building with the "profiling" feature flag (disabled by default).

Getting Started

Stable releases are packaged on some distributions:

  • On Arch Linux, you can install from the AUR: i3status-rust or i3status-rust-git.

  • On Fedora 31+: sudo dnf install i3status-rs For older releases and CentOS, you can install from the COPR.

  • On Void Linux: xbps-install -S i3status-rust

  • On NixOS: nix-env -iA nixos.i3status-rust

Otherwise, you can install from source:

$ git clone https://github.com/greshake/i3status-rust
$ cd i3status-rust && cargo build --release
# Optional:
$ cp target/release/i3status-rs ~/bin/i3status-rs

Now you need to create a configuration. Edit the example configuration to your liking and put it to a sensible place (e.g. ~/.config/i3/status.toml).

Next, edit your i3 bar configuration to use i3status-rust. For example:

bar {
    font pango:DejaVu Sans Mono, FontAwesome 12
    position top
    status_command path/to/i3status-rs path/to/config.toml
    colors {
        separator #666666
        background #222222
        statusline #dddddd
        focused_workspace #0088CC #0088CC #ffffff
        active_workspace #333333 #333333 #ffffff
        inactive_workspace #333333 #333333 #888888
        urgent_workspace #2f343a #900000 #ffffff
    }
}

In order to use the built-in support for the Font Awesome icon set, you will need to include it in the font parameter, as above. Check to make sure that "FontAwesome" will correctly identify the font by using fc-match, e.g.

$ fc-match FontAwesome
fontawesome-webfont.ttf: "FontAwesome" "Regular"

(Note that the name of the Font Awesome font may have changed in version 5. See #130 for some discussion.)

Finally, reload i3: i3 reload.

Contributing

We welcome new contributors! Take a gander at CONTRIBUTING.md.

License

This project is licensed under the GPLv3. See the LICENSE.md file for details.

i3status-rust's People

Contributors

1wilkens avatar ammgws avatar atheriel avatar carloabelli avatar drogglbecher avatar etrombly avatar fbreitwieser avatar flying7eleven avatar frececroka avatar freswa avatar ghedamat avatar greshake avatar grim7reaper avatar jlevesy avatar jonascir avatar keeslinp avatar kennylevinsen avatar lausek avatar matthiaskrgr avatar onemorebyte avatar picojr avatar pitkley avatar rtxm avatar sashomasho avatar se-spiess avatar shazow avatar snicket2100 avatar svmnotn avatar thra11 avatar uinput 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.