dotfiles/localbin/.local/bin/dwmbattery

8 lines
214 B
Plaintext
Raw Normal View History

#!/bin/bash
icon=""
#battery="$(acpi | awk -F '[, :]' '{ print $6 " ~" $8":"$9 }')" # with time remaning
battery="$(acpi | awk -F '[, :]' '{ print $6 }')" # without time
printf " %s %s \\n" "$icon" "$battery"