blob: c3109a815d6b2caeddd654ac653a0ba25a047aa0 (
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
|
# Statusbar script
This is a small set of C files that writes the current ethernet status, battery
level and date in "%F %R" format to standard out.
## Compiling
To compile the status and controller programs, run
```
cc -g -lrt status.c -o status
cc -g -lrt status_update.c -o status_ctl
```
## Usage
Run the status script as part of your WM init, my fork of dwl reads status from
stdin, so I run `dwl` like `./status | dwl`.
To manually update an element, run `./status_ctl update <ELEMENT>`. ELEMENT can
be one of the elements defined in `config.def.h`, or `all` to update every
element.
You modify `config.def.h` to change which elements and in which the order
they're shown, as well as how often they're automatically updated.
The `status_ctl` script is neat to update elements on events, eg. when you
connect to wifi or change the volume or brightness of your monitor.
|