Use psutil instead of upower/acpi

This commit is contained in:
Piotr Miller
2021-02-22 14:49:36 +01:00
parent 7ae1fe5f0c
commit 5c90aecd2d
12 changed files with 1724 additions and 65 deletions

View File

@@ -20,8 +20,6 @@ app_dirs = []
dependencies = {
"pyalsa": False,
"psutil": False,
"upower": False,
"acpi": False,
"netifaces": False,
"amixer": False
}
@@ -29,8 +27,6 @@ dependencies = {
icons_path = "" # "icons_light", "icons_dark" or "" (GTK icons)
commands = {
"get_battery": "upower -i $(upower -e | grep BAT) | grep --color=never -E 'state|to\\\\ full|to\\\\ empty|percentage'",
"get_battery_alt": "acpi",
"get_bt_name": "bluetoothctl show | awk '/Name/{print $2}'",
"get_bt_status": "bluetoothctl show | awk '/Powered/{print $2}'",
"get_brightness": "light -G",