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]