1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-22 08:20:59 +02:00

Fix battery i3block

This commit is contained in:
Arti Zirk 2020-02-28 13:20:50 +02:00
parent 4a3c61b212
commit 465c27b3a2

View File

@ -4,7 +4,7 @@
status=$(busctl get-property org.freedesktop.UPower /org/freedesktop/UPower/devices/DisplayDevice org.freedesktop.UPower.Device State | cut -d' ' -f2) status=$(busctl get-property org.freedesktop.UPower /org/freedesktop/UPower/devices/DisplayDevice org.freedesktop.UPower.Device State | cut -d' ' -f2)
charge_f=$(busctl get-property org.freedesktop.UPower /org/freedesktop/UPower/devices/DisplayDevice org.freedesktop.UPower.Device Percentage | cut -d' ' -f2) charge_f=$(busctl get-property org.freedesktop.UPower /org/freedesktop/UPower/devices/DisplayDevice org.freedesktop.UPower.Device Percentage | cut -d' ' -f2)
echo -ne "$charge_f %" echo -e "$charge_f %"
#if [[ "$charge_f" -lt 20 ]]; then #if [[ "$charge_f" -lt 20 ]]; then
# printf '\uf244' # printf '\uf244'