feat: add battery widget to waybar
This commit is contained in:
parent
11d2d51544
commit
5b81e86c5b
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue