feat: add battery and weather script

This commit is contained in:
2026-02-25 00:16:54 +01:00
parent de1e39b5c4
commit c21e5736d8
6 changed files with 183 additions and 4 deletions

View File

@@ -51,14 +51,24 @@ label {
# BATTERY
label {
monitor =
text = cmd[update:30000] echo "󰁹 $(cat /sys/class/power_supply/BAT1/capacity)%"
font_family = Lexend
text = cmd[update:1000] echo "$(~/.config/waybar/scripts/battery.sh)"
font_family = lexend
font_size = 14
position = -100, 100
halign = right
valign = bottom
}
label {
monitor =
text = cmd[update:600000] echo "$(~/.config/waybar/scripts/weather.sh | jq -r .text)"
font_family = lexend
font_size = 14
position = -200, 100
halign = right
valign = bottom
}
input-field {
monitor =
size = 300, 50