diff --git a/waybar/config b/waybar/config index 6fdc45f..ed563e9 100644 --- a/waybar/config +++ b/waybar/config @@ -16,6 +16,7 @@ "hyprland/language", "custom/notifications", "custom/idle-inhibit", + "battery", "custom/power" ], @@ -114,6 +115,23 @@ "format": " ⏻ ", "tooltip": false, "on-click": "wlogout --protocol layer-shell" + }, + + "battery": { + "bat": "BAT0", + "interval": 60, + "states": { + "warning": 30, + "critical": 15 + }, + "events": { + "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!'" + }, + "format": "{capacity}% {icon}", + "format-icons": ["", "", "", "", ""], + "max-length": 25 } }