From: Matthew Owens Date: Thu, 30 Jul 2020 09:20:35 +0000 (+0100) Subject: updated dwmbar to display battery percentage X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=34bddfeaca79423284de8421dd9c827e57e6160e;p=scripts.git updated dwmbar to display battery percentage --- diff --git a/dwmbar b/dwmbar index e9c1106..7095e6f 100755 --- a/dwmbar +++ b/dwmbar @@ -2,6 +2,9 @@ # statusbar loop while true; do - xsetroot -name "$(date +"%F %T")" + date=$(date +"%F %T") + bat=$(bat) + + xsetroot -name "$bat | $date" sleep 1s done