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
= 60
[[]]
# Order of actions doesn't matter - they get sorted by percentage at runtime
= 0.5
= "./powersave.sh enable"
# The entire `[action.notify]` section is optional
# Notify of discharging battery when below 80% battery level
[[]]
# `percentage` is required
= 0.8
# `command` is optional
# command = "./powersave.sh enable"
[]
= "Battery discharging"
= "Battery level below $percentage%"
# Below values are optional
# urgency = "Normal"
# icon = "battery-discharging"
# timeout = 2000
# Show persistent notification and run custom command on battery level falling below 25%
[[]]
= 0.25
= "./powersave.sh set-mode agressive"
[]
# `summary` is required if there is an `[action.notify]` section
= "Battery low!"
= "Battery level below $percentage%!"
= "Critical"
= "battery-caution"
# `0` means never time out
= 0
# Special action to run after connecting to AC
# Options are the same as for regular actions
[]
# Only run if battery level above this threshold; for `[on_ac]` this is optional
= 0.10
= "./powersave.sh disable"
[]
= "Battery charging"
= "Low"
= "battery-good-charging"
= 300