]> git.armaanb.net Git - bin.git/blobdiff - status
add 0x0
[bin.git] / status
diff --git a/status b/status
index 292d714ecf49afd90b20ba21c0085c7bb9eaa1e3..bfc4ba341897beed83a522a2d1c643afc2cee113 100755 (executable)
--- a/status
+++ b/status
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# Sends a notification with battery level and time
 
 function time_set() {
   date +%A", "%b" "%e", "%r
@@ -8,7 +9,7 @@ function power_set() {
   upower -d | grep percentage | tail -c 5
   if [[ $(upower -d | grep "discharging") ]]; then
     echo " battery,"
-    echo $(upower -d | grep "time to empty" | tail -c 15) remaining
+    echo "$(upower -d | grep "time to empty" | tail -c 15) remaining"
   else
     echo " battery"
   fi