From 214ff1198e9f8a5651bc6061a6819b1c5e72e579 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Wed, 28 Oct 2020 09:56:20 -0400 Subject: [PATCH] readability improvements --- status | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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`" -- 2.39.2