Skip to content

Commit 37cf147

Browse files
committed
1 parent ca08b2b commit 37cf147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/battery_percentage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ print_battery_percentage() {
1313
echo $(cat $(find /sys/class/power_supply/*/capacity | tail -n1))%
1414
fi
1515
elif command_exists "pmset"; then
16-
pmset -g batt | grep -o "[0-9]\{1,3\}%"
16+
pmset -g batt | grep --color=never -o "[0-9]\{1,3\}%"
1717
elif command_exists "acpi"; then
1818
acpi -b | grep -m 1 -Eo "[0-9]+%"
1919
elif command_exists "upower"; then

0 commit comments

Comments
 (0)