dotfiles/localbin/.local/bin/dwmscript/dwmbattery

8 lines
214 B
Bash
Executable File

#!/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"