blob: d33e2547d6395b7d9dd2d63856c06d70fb80518e (
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
|
# lowbat
Very small script that runs in the background and warns you when your battery is low until you plug your laptop in.
It also is POSIX-compliant, which is nice.
## Dependencies
+ `make`
+ `libnotify`
+ `espeak`
## Installation
Open a terminal and run these commands:
```shell
git clone https://github.com/JozanLeClerc/lowbat.git
cd lowbat
sudo make install
```
Next you must find a way to get the script running when loging in. Add this to your startup programs manager/rc file of choice:
```shell
lowbat > /dev/null 2>&1 &
```
## Options
Two options are available:
+ `--say [MESSAGE]`
+ `--silent`
### Definitions
`--say "message"` will allow you to set your own warning message lowbat is active.
#### Example:
```shell
lowbat --say "your custom message" > /dev/null 2>&1
```
`--silent` disables audio warnings.
#### Example:
```shell
lowbat --silent > /dev/null 2>&1
```
## Uninstallation
```shell
sudo make uninstall
```
## See also
For more informations, see:
```shell
man 1 lowbat
```
|