Improvements in the theme for a better appearance, I hope you like, added the option of downloading the battery for a better style.

Improvements in the theme for a better appearance, I hope you like,
added the option of downloading the battery for a better style.
This commit is contained in:
Luis Felipe Sánchez
2017-04-28 13:55:38 -05:00
parent e275c62767
commit 13f30838ba
4 changed files with 43 additions and 35 deletions

View File

@@ -13,6 +13,18 @@ ac_adapter_connected(){
fi
}
ac_adapter_disconnected(){
if command_exists acpi;
then
acpi -a | grep -q "off-line"
return $?
elif command_exists ioreg;
then
ioreg -n AppleSmartBattery -r | grep -q '"ExternalConnected" = No'
return $?
fi
}
battery_percentage(){
about 'displays battery charge as a percentage of full (100%)'
group 'battery'