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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user