HybridBar: Only get first battery returned from acpi

This commit is contained in:
Abdulmujeeb Raji 2023-04-14 17:35:22 +01:00
parent 515e502c81
commit f310796e9c

View file

@ -52,9 +52,9 @@
},
"right-label_bat": {
"text": ": ",
"command": "acpi -b | awk '{print $4}' | sed 's/,//'",
"command": "acpi -b | head -n 1 | awk '{print $4}' | sed 's/,//'",
"tooltip": "Battery is ",
"tooltip_command": "acpi -b | awk '{print $3}' | sed 's/,//'"
"tooltip_command": "acpi -b | head -n 1 | awk '{print $3}' | sed 's/,//'"
},
"right-spacing_battomem": {
"spacing_start": 0,