From 00b780fcd8f208e9d5b79b50e6ec6d7670a4cf64 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 5 Jul 2018 10:29:57 -0400 Subject: [PATCH] acpi requirement removed --- .config/i3blocks/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 0fd119c..6de50da 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -51,7 +51,7 @@ label=📶 interval=10 [battery] -command=acpi | cut -d " " -f3-5 | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/❓/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g" +command=echo $(cat /sys/class/power_supply/BAT0/status | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/❓/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g") $(cat /sys/class/power_supply/BAT0/capacity) interval=5 [time]