We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7cfed commit d64c7feCopy full SHA for d64c7fe
scripts/battery_remain.sh
@@ -27,7 +27,7 @@ pmset_battery_remaining_time() {
27
local remaining_time="$(echo $status | grep -o '[0-9]\{1,2\}:[0-9]\{1,2\}')"
28
if battery_discharging; then
29
if $short; then
30
- echo $remaining_time | awk '{printf "~%s"}'
+ echo $remaining_time | awk '{printf "~%s", $1}'
31
else
32
echo $remaining_time | awk '{printf "- %s left", $1}'
33
fi
0 commit comments