|
NAMExob - A lightweight overlay volume/backlight/progress/anything bar for the X Window System.SYNOPSISxob [-m maximum] [-t timeout] [-c configfile] [-s style] [-q]DESCRIPTIONxob (the X Overlay Bar) displays numerical values fed through the standard input on a bar that looks like the volume bar on a television screen. When a new integer value is read on the standard input, the bar is displayed over other windows for a configurable amount of time and then disappears until it is fed a new value. When a value is followed by a bang `!', an alternative color is used. This feature makes it possible to provide visual feedback for alternative states (e.g. unmuted/muted, auto/manual). The appearance is configurable through options described in this manual. The way overflows (when the value exceeds the maximum) are displayed is also configurable. The program ends when it reads “end” or “quit” (or actually anything else than a number).OPTIONS
USAGEGENERAL CASEUse a program that listens to events (such as a change in audio volume levels) and issues new values on the standard output automatically. Launch the_listener_program | xob. Ready to use input programs for audio volume and screen backlight are available on the xob project homepage: https://github.com/florentc/xobFALLBACK METHODIn case no input program fits your needs, you may trigger changes manually. Append new values in a named pipe (a pipe that persists as a special file on the filesystem) and have xob consume them as they arrive.Create a named pipe, e.g. /tmp/xobpipe, on your filesystem.
Have xob consume new values as they arrive on the pipe.
Write values to the pipe when you deem it relevant. In the classic audio volume bar example, that would be after the user has pressed a button and you changed the volume (usually set up as a keybinding in your window manager or desktop environment).
To try it manually, issue a test value such as echo 43 >> /tmp/xobpipe. CONFIGURATION FILEThe configuration file only specifies styles (appearances) for the bar. The maximum value and timeout are set by -m and -t. When starting, xob looks for the configuration file in the following order:
SYNTAXThe configuration file adheres to the libconfig syntax. An option is set up using “=” or “:”. The options are separated using “;”.
Commented lines start with “#”.
Options can be grouped together inside curly brackets. Some options expect a group as a value.
OPTIONS
In the following, a dot “.” means “suboption”. For instance “color.normal.fg” means “The suboption fg of the suboption normal of option color”.
Each of the following have three suboptions “.fg”, “.bg”, and “.border” corresponding to hexadecimal RGB or RGBA specifications (e.g. #ff0000 or #ff0000ff) of the colors of the foreground, the backgroud, and the border. If xob is built without transparency support, the alpha channel is ignored.
STYLESAll the options described above must be encompassed inside a style specification. A style consists of a group of all or some of the options described above. The name of the style is the name of an option at the root level of the configuration file. When an option is missing from a style, the default values are used instead. A configuration file may specify several styles (at least 1) to choose using the -s argument.This example configuration file provides two styles “volume” and “backlight”. Instances of xog launched with -s volume and -s backlight will look according to the corresponding style.
DEFAULT CONFIGURATION FILE
FAQ“How should I display different sources of information (e.g. volume and brightness)?” “What happens if several bars are displayed at the same time?” You can run and distinguish two or more instances of xob with different styles (including color, position, extreme values, etc.). To do so, specify and use different styles from your configuration file (or use different configuration files). To prevent the bars from overlapping, make use of the offset options. For instance you can offset a bar to the top or bottom (see the example provided in the STYLES section). “Can I integrate xob in a panel of my desktop environment or window manager?” There is no support for panel integration. You can however use absolute positioning and no timeout (timeout set at 0) to mimic this behaviour in simple situations. “How to set up xob with multiple monitors?” xob works well under multihead setups but there is no easy way to configure the position of the bar for now. For example, in a dual monitor setup with the default configuration, the horizontal centering is not local to one of the two monitors. It is global. The bar might be split in two: one part on each screen. Stick to a corner or use absolute positioning. If you want an xob instance to be centered (horizontally) on the far-right monitor, set x.relative to 1.0 (anchored on the far right) and the x.offset to minus half the width of that screen. CONTRIBUTIONSFeedback and contributions are welcome.AUTHORSFlorent Ch.
Visit the GSP FreeBSD Man Page Interface. |