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 ca08b2b commit 37cf147Copy full SHA for 37cf147
scripts/battery_percentage.sh
@@ -13,7 +13,7 @@ print_battery_percentage() {
13
echo $(cat $(find /sys/class/power_supply/*/capacity | tail -n1))%
14
fi
15
elif command_exists "pmset"; then
16
- pmset -g batt | grep -o "[0-9]\{1,3\}%"
+ pmset -g batt | grep --color=never -o "[0-9]\{1,3\}%"
17
elif command_exists "acpi"; then
18
acpi -b | grep -m 1 -Eo "[0-9]+%"
19
elif command_exists "upower"; then
0 commit comments