xmobar: A Statusbar for the XMonad Window Manager

[ bsd3, library, program, system ] [ Propose Tags ]

Xmobar is a minimal status bar for the XMonad Window Manager.

It was inspired by the Ion3 status bar, and supports similar features.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.3, 0.3.1, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.9.1, 0.9.2, 0.10, 0.11, 0.11.1, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.20.1, 0.21, 0.22, 0.22.1, 0.23, 0.23.1, 0.24, 0.24.1, 0.24.2, 0.24.3, 0.24.4, 0.24.5, 0.25, 0.26, 0.27, 0.28, 0.28.1, 0.29, 0.29.1, 0.29.2, 0.29.3, 0.29.4, 0.29.5, 0.30, 0.31, 0.32, 0.33, 0.34, 0.35, 0.35.1, 0.36, 0.37, 0.38, 0.39, 0.40, 0.41, 0.42, 0.43, 0.44, 0.44.1, 0.44.2, 0.45, 0.46, 0.47, 0.47.1, 0.47.2, 0.47.3, 0.47.4, 0.48
Dependencies base (>=2.0), filepath (>=1.0), mtl (>=1.0), parsec (>=2.0), unix (>=1.0), X11 (>=1.2.1) [details]
License BSD-3-Clause
Author Andrea Rossato
Maintainer andrea.rossato@unibz.it
Category System
Home page http://gorgias.mine.nu/repos/xmobar/
Uploaded by AndreaRossato at 2007-07-08T10:40:24Z
Distributions Arch:0.47.3, Debian:0.36, Fedora:0.46, FreeBSD:0.23.1, NixOS:0.47.4, openSUSE:0.47.3
Reverse Dependencies 1 direct, 0 indirect [details]
Executables xmobar
Downloads 61593 total (367 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-04 [all 8 reports]

Readme for xmobar-0.5

[back to package description]
XMobar - a status bar for the XMonad Window Manager

ABOUT
=====

Xmobar is a minimalisti, text based, status bar, designed for the
XMonad Window Manager.

It was inspired by the Ion3 status bar, and supports similar features.
See xmobar.config-sample for a sample configuration.

Try it with:
xmobar xmobar.config-sample

INSTALLATION
============

tar xvfz xmobar-0.5
runhaskell Setup.lhs configure --prefix=/usr/local
runhaskell Setup.lhs build
runhaskell Setup.lhs haddock (optional for building the code documentation)
runhaskell Setup.lhs install (possibly to be run as root)

Run with:
xmobar /path/to/config $

CONFIGURATION
=============

Quick Start
-----------

See xmobar.config-sample for an example.

For the output template:

- %command% will execute command and print the output. The output may
  contain markups to change the characters' color.

- <fc=#FF0000>string</fc> will print "string" with #FF0000 color (red).

Other configuration options:

font: Name of the font to be used
bgColor: Backgroud color
fgColor: Default font color
xPos: x position (origin in the upper left corner) of the XMobar window 
yPos: y position
width: width of the XMobar window 
height: height
align: text alignment 
refresh: Refresh rate in tenth of seconds
commands: For setting the options of the programs to run (optional)
sepChar: The character to be used for indicating commands in the
         output template (default '%')
template: The output template 

The Output Template
-------------------

The output template must contain at least one command. XMobar will
parse the template and will search for the commands to be executed in
the "commands" configuration option. First an "alias" will be search
(internal commands such as Weather or Network have default aliasing,
see below). After that the command name will be tried. If a command is
found, its arguments will be used. If no command is found in the
commands list, then XMobar will try to execute the program with the
name found in the template. If the execution is not successful an
error will be reported.
   
The "commands" Configuration Option
-----------------------------------

The "commands" configuration option is a list of commands for storing
information to be used by XMobar wen parsing the template. Each member
of the list consists in a tuple formed by a command with arguments and
a number, the refresh rate in tenth of second.

Available commands are: Weather, Network, memory, Swap, Cpu, Battery,
and Exec. This last one is used to execute external programs.

Es: (Memory ["-t","Mem: <usedratio>%"], 10)

Internal Commands and Aliases
-----------------------------

Each command in the "commands" configuration option has an alias to be
used in the template.

Internal commands have default aliases:
Weather StationID Args
- aliases to the Station ID: so Weather "LIPB" [] can be used in template as %LIBP%
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "station", "stationState", "year", "month", "day", "hour",
	    "wind", "visibility", "skyCondition", "tempC", "tempF",
	    "dewPoint", "rh", "pressure"
- Default template: "<station>: <tempC>C, rh <rh>% (<hour>)"

Network Interface ARGS
- aliases to the interface name: so Network "eth0" [] can be used as %eth0%
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "dev", "rx", "tx"
- Default template: "<dev>: <rx>|<tx>"

Memory Args
- aliases to "memory"
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "total", "free", "buffer", "cache", "rest", "used", "usedratio"
- Default template: "Mem: <usedratio>% (<cache>M)"

Swap Args
- aliases to "swap"
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "total", "used", "free", "usedratio"
- Default template: "Swap: <usedratio>%"

Cpu Args
- aliases to "cpu"
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "total", "user", "nice", "system", "idle"
- Default template: "Cpu: <total>"

Battery Args
- aliases to "battery"
- Args: the argument list (see below)
- Variables that can be used with the "-t"/"--template" argument: 
	    "left"
- Default template: "Batt: <left>"

Internal Commands Arguments
---------------------------

These are the arguments that can be used for internal commands in the
"commands" configuration option:

-H number           --High=number               The high threshold
-L number           --Low=number                The low threshold
                    --high=color number         Color for the high threshold: es "#FF0000"
                    --normal=color number       Color for the normal threshold: es "#00FF00"
                    --low=color number          Color for the low threshold: es "#0000FF"
-t output template  --template=output template  Output template

Commands must be set as a list. Es:
(Weather "EGPF" ["-t","<station>: <tempC>C"], 36000)

Executing External Commands
---------------------------

In order to execute an external command you can either write the
command name in the template, in this case it will be executed without
arguments, or you can configure it in the "commands" configuration
option with the Exec command:

Exec ProgarmName Args Alias
- ProgramName: the name of the program
- Args: the arguments to be passed to the program at execution time
- Alias: a name to be used in the template. If the alias is en empty
  string the program name can be used in the template.
Es:
(Exec "uname" ["-s","-r"] "", 36000)
can be used in the output template as %uname%
(Exec "date" ["+\"%a %b %_d %H:%M\""] "mydate", 600)
can be used in the output template as %mydate%

AUTHOR
======

Andrea Rossato <andrea.rossato@unibz.it>

CREDITS
=======

XMobar incorporates patches from:
Krzysztof Kosciuszkiewicz

LINKS
=====

The XMobar home page:
http://gorgias.mine.nu/repos/xmobar/

XMobars darcs repository:
http://gorgias.mine.nu/repos/xmobar/

The XMonad Window Manager
http://xmonad.org