From 150730393c2177a457d2820ecaf0885d78c22f43 Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 10 Jun 2026 21:01:06 +0200 Subject: [PATCH] fix to battery --- templates/hyprlock.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/hyprlock.conf b/templates/hyprlock.conf index 1ad67b9..c7e721d 100644 --- a/templates/hyprlock.conf +++ b/templates/hyprlock.conf @@ -82,7 +82,7 @@ label { # -- battery view -- label { monitor = - text = cmd[update:1000] bash -c 'cap=$(< /sys/class/power_supply/BAT0/capacity); stat=$(< /sys/class/power_supply/BAT0/status); if [ "$stat" = "Discharging" ]; then printf "󰂄 %s%%" "$cap"; else if [ "$stat" = "Charging" ]; then printf "󰁹 %s%%" "$cap"; else if [ "$stat" = "Full" ]; then printf "󰁹 %s%%" "$cap"; else printf ""; fi' + text = cmd[update:1000] bash -c 'cap=$(< /sys/class/power_supply/BAT0/capacity); stat=$(< /sys/class/power_supply/BAT0/status); if [ "$stat" = "Discharging" ]; then printf "󰁹 %s%%" "$cap"; else if [ "$stat" = "Charging" ]; then printf "󰂄 %s%%" "$cap"; else if [ "$stat" = "Full" ]; then printf "󰁹 %s%%" "Full"; else printf ""; fi' color = 0xFF{{ colors.surface_tint.default.hex_stripped }} font_size = 14 font_family = JetBrains Mono