dots: public mirror (history reset after licence cleanup)

This commit is contained in:
Coja committed 2026-11-09 18:19:14 +01:00
commit 693822ad5f
226 files changed
+22502

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Battery readout for the hyprlock label. Prints nothing on machines without a
# battery (wm desktop), so the label just stays empty there.
for bat in /sys/class/power_supply/BAT*; do
[ -r "$bat/capacity" ] || continue
cap=$(<"$bat/capacity")
glyph="󰁹"
[ "$(cat "$bat/status" 2>/dev/null)" = "Charging" ] && glyph="󰂄"
printf '%s %s%%' "$glyph" "$cap"
exit 0
done