free space in bar
authorMart Lubbers <mart@martlubbers.net>
Thu, 28 Jun 2018 10:20:02 +0000 (12:20 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 28 Jun 2018 10:20:02 +0000 (12:20 +0200)
x/.local/bin/bar

index ddff365..8d8d053 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/sh
-echo -n \
-       $(date +"%Y-%m-%d %H:%M:%S")
+echo \
+       "$(date +"%Y-%m-%d %H:%M:%S")"\
+       "       $(df -h | grep '/$' | awk '{print $4"/"$2}')"