Crates.io | robar |
lib.rs | robar |
version | 2.0.1 |
source | src |
created_at | 2018-09-18 05:40:20.040984 |
updated_at | 2021-09-14 04:04:24.869404 |
description | A simple, but flexible system overlay bar for the X Window System (X11). |
homepage | |
repository | https://gitlab.com/jeffrey-xiao/robar-rs |
max_upload_size | |
id | 85315 |
size | 37,768 |
robar
is a simple, but flexible system overlay bar for the X Window System (X11) using Unix
Sockets. Inspired by xob
.
robar
can be installed with Cargo.
$ cargo install robar
robar 2.0.0
Jeffrey Xiao <jeffrey.xiao1998@gmail.com>
A simple, but flexible system overlay bar for the X Window System (X11).
USAGE:
robar [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
hide Hides the bar.
show Shows bar with a specific value and in a specific color profile.
show-stream Shows bar using lines from standard input in the form of `profile value`
start Starts daemon that listens to requests.
stop Stops daemon.
When robar
is started (robar start
), it looks for a configuration file in the following order:
-c/--config
argument.$XDG_CONFIG_HOME/robar/robar.toml
if $XDG_CONFIG_HOME
is set.$HOME/.config/robar/robar.toml
Global configuration values are set under the global
section in the config ([global]
).
Name | Description | Default |
---|---|---|
x_center_relative |
The x coordinate of the center of the bar relative to the active screen. | 0 |
x_center_absolute |
The absolute offset of the center of the bar. | |
y_center_relative |
The y coordinate of the center of the bar relative to the active screen. | 0 |
y_center_absolute |
The absolute offset of the center of the bar. | |
margin |
The size of the margins. | 0 |
border |
The size of the borders. | 0 |
padding |
The size of the padding. | 0 |
height_relative |
The height of the bar relative to the active screen. | 0 |
height_absolute |
The absolute height of the bar. | |
width_relative |
The width of the bar relative to the active screen. | 0 |
width_absolute |
The absolute width of the bar. | |
timeout |
The number of milliseconds before the bar fades. If timeout is set to 0, then the bar persists. | 1000 |
fill_direction |
The direction to fill the bar (up, down, left, right) |
The height of the bar is defined as the height_relative + height_absolute
.
The width of the bar is defined as the width_relative + width_absolute
.
margin
, border
, and padding
behave the same as in css.
Color profile configuration values are set under the colors.<profile>
section in the config
([colors.<profile>]
) where
Name | Description |
---|---|
foreground |
The color of the foreground. |
background |
The color of the background. |
border |
The color of the border. |
All values must be in the format #RRGGBB
.
examples/robar.toml
[global]
x_center_relative = 0.9
x_center_absolute = 0
y_center_relative = 0.25
y_center_absolute = 0
height_absolute = 200
width_absolute = 30
padding = 2
border = 3
margin = 2
fill_direction = "up"
[colors.default]
foreground = "#eee8e5"
background = "#073642"
border = "#b58900"
See CHANGELOG for more details.
robar
is distributed under the terms of both the MIT License and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for more details.