From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Wed, 28 Oct 2020 13:56:20 +0000 (-0400) Subject: readability improvements X-Git-Tag: v0.0.1~98 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=214ff1198e9f8a5651bc6061a6819b1c5e72e579 readability improvements --- diff --git a/status b/status index 8c7c080..98e0614 100755 --- a/status +++ b/status @@ -1,16 +1,13 @@ #!/usr/bin/env bash function time_set() { - date +%A" "%B" "%e" | "%1l:%M:%S + date +%A", "%b" "%e" | "%r } function power_set() { - upower -d | grep percentage | tail -c 4 | head -c 3 + upower -d | grep percentage | tail -c 5 echo " battery," upower --dump | grep "time to empty" | tail -c 15 } -export TIME=$(time_set) -export POWER=$(power_set) - -notify-send -i "clock" "`echo $TIME`" "`echo $POWER`" +notify-send -i "clock" "`echo $(time_set)`" "`echo $(power_set) remaining`"