mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-21 16:00:59 +02:00
Fix battery i3block
This commit is contained in:
parent
4a3c61b212
commit
465c27b3a2
@ -4,7 +4,7 @@
|
||||
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)
|
||||
|
||||
echo -ne "$charge_f %"
|
||||
echo -e "$charge_f %"
|
||||
|
||||
#if [[ "$charge_f" -lt 20 ]]; then
|
||||
# printf '\uf244'
|
||||
|
Loading…
Reference in New Issue
Block a user