Even better

This commit is contained in:
David Heinemeier Hansson committed 2026-03-02 14:15:46 +01:00
1 parent 758e9d442f
commit 5e516be544
3 files changed
+21 -9

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Returns the battery full capacity in Wh (rounded to whole number).
# Used by omarchy-battery-status for displaying battery capacity.
battery_info=$(upower -i $(upower -e | grep BAT))
echo "$battery_info" | awk '/energy-full:/ {
printf "%d", $2
exit
}'