- Notifications
You must be signed in to change notification settings - Fork0
Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
License
donRaphaco/i3status-rust
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
For available blocks and detailed documentation visit theWiki
This is a replacement for i3status, aiming to provide the most feature-complete and resource friendly implementation of the i3bar protocol available. We are currently looking for help in implementing more Blocks and Themes! It supports:
- flexibility through theming
- icons (optional)
- individual update intervals per block to reduce system calls
- click actions
- blocks can trigger updates asynchronously, which allows for things like dbus signaling, to avoid periodic refreshing of data that rarely changes (example: music block)
i3, rustc, libdbus-dev and cargo. Only tested on Arch Linux. Compilation is only tested with the latest Rust stable version. If you use a distro with old Rust packages (looking at you, Ubuntu!), fall back to rustup or find a precompiled package for your distro.
Optional:
alsa-utilsFor the volume blocklm_sensorsFor the temperature blockspeedtest-cliFor the speedtest block- Font Awesome, for
icons="awesome". Version 5 of the font is causing some issues (see#130), so for now we recommend version 4. If you have access to the AUR, check outttf-font-awesome-4. gperftoolsFor dev builds, needed to profile block performance and bottlenecks.powerline-fontsFor all themes using the powerline arrow char. Recommended. Seepowerline on GitHub
If you are using Arch Linux, you can install from the AUR:
i3status-rust-gitand proceed to step 3. Otherwise, clone the repository:git clone https://github.com/XYunknown/i3status-rust.gitrun
cd i3status-rust && cargo build --releaseEdit
example_config.tomlto your liking and put it to a sensible place (e.g.~/.config/i3/status.toml)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
fontparameter, as above. Check to make sure that "FontAwesome" will correctly identify the font by usingfc-match, e.g.$ fc-match FontAwesomefontawesome-webfont.ttf:"FontAwesome""Regular"
(Note that the name of the Font Awesome font may have changed in version 5. See#130 for some discussion.)
Reload i3:
i3 reload
i3status-rs is very much still in development, so breaking changes before a 1.0.0 release will occur. Following are guides on how to update your configurations to match breaking changes.
The battery block now uses the device name (usually BAT0) instead of the number after 'BAT'. This makes the block compatible with device names not starting with 'BAT'. To see your battery device(s) executels /sys/class/power_supply
Recently, the configuration has been changed:
- Switched from JSON to TOML
- Inlined the themes and icons configurations into the new main configuration
- Removed the command-line arguments
--themeand--icons
Update your configuration to match the structure of the currentexample_config.toml:
theme ="solarized-dark"icons ="awesome"[[block]]block ="disk_space"path ="/"alias ="/"info_type ="available"unit ="GB"interval =20[[block]]block ="memory"display_type ="memory"format_mem ="{Mup}%"format_swap ="{SUp}%"[[block]]block ="cpu"interval =1[[block]]block ="load"interval =1format ="{1m}"[[block]]block ="sound"[[block]]block ="time"interval =60format ="%a %d/%m %R"
Things to note:
- Every
[[block]]has to contain ablock-field to identify the block to create - Both
themeandiconscan be defined as tables, seeexample_theme.tomlandexample_icon.toml
About
Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Rust100.0%
