battery: power switch events

This commit is contained in:
Alexey Vladimirov
2026-02-12 01:14:16 +03:00
parent 03a77c592b
commit 3bcadfdf5a
2 changed files with 14 additions and 8 deletions

View File

@ -182,6 +182,7 @@ Every entry in the *events* object consists of a *<event-name>* (typeof: *string
- *on-<status>-<state>*
- *on-<status>-<capacity>*
- *on-<status>*
Where:
@ -204,6 +205,8 @@ Where:
"on-discharging-warning": "notify-send -u normal 'Low Battery'",
"on-discharging-critical": "notify-send -u critical 'Very Low Battery'",
"on-charging-100": "notify-send -u normal 'Battery Full!'"
"on-discharging": "notify-send -u normal 'Power Switch' Discharging"
"on-charging": "notify-send -u normal 'Power Switch' Charging'"
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],