summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 3b0478dd4e106f7f707a3f035b08a2e44e4f5ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
py3status
=========

py3status is an extensible i3status wrapper written in python

## Documentation
See the [wiki](https://github.com/ultrabug/py3status/wiki) for up to date documentation.

## Requirements
You must set the `output_format` to `i3bar` in the general section of your i3status.conf:

    general {
        output_format = "i3bar"
    }

## Installation (non Gentoo users)
Just clone the repository:

    $ git clone git@github.com:ultrabug/py3status.git .py3status

Get into the cloned directory:

    $ cd .py3status

And run the setup.py as root or via sudo:

    $ sudo python setup.py install

## Installation (Gentoo users)
Add the `ultrabug` overlay on layman:

    $ sudo layman -a ultrabug

Install py3status:

    $ sudo emerge -a py3status

## Installation (Arch users)
Thanks to @waaaaargh, py3status is present in the Arch User Repository using this URL:

    https://aur.archlinux.org/packages/py3status-git/

## Usage
In your i3 config file, simply change the `status_command` with:

    status_command py3status

Usually you have your own i3status configuration, just point to it:

    status_command py3status -c ~/.i3/i3status.conf

## Options
You can see the help of py3status by issuing `py3status -h`:

    -c I3STATUS_CONF  path to i3status config file
    -d                disable integrated transformations
    -i INCLUDE_PATH   user-based class include directory
    -n INTERVAL       polling interval in seconds (default 1 sec)
    -t CACHE_TIMEOUT  injection cache timeout in seconds (default 60 sec)

## Update
Just pull on your local clone to get the latest py3status:

    $ cd .py3status
    $ git pull
    $ sudo python setup.py install