summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/disk
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-08-26 04:59:24 +0400
committerAndrew <saintruler@gmail.com>2020-08-26 04:59:24 +0400
commit70825f19ff5c8bd78780265ece1fc2c00a026f84 (patch)
treeca06eb21b52147f7ba6751e106c8c3648232a3c0 /.local/bin/statusbar/disk
parent75d736925fac9ab42c6015f2930a82c2eeee3235 (diff)
Changed icons in status bar scripts and added tmux to autostart in tty/terminal
Diffstat (limited to '.local/bin/statusbar/disk')
-rwxr-xr-x.local/bin/statusbar/disk6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk
index 67085e5..3e0f9ca 100755
--- a/.local/bin/statusbar/disk
+++ b/.local/bin/statusbar/disk
@@ -1,7 +1,7 @@
#!/bin/sh
getDiskSpace () {
- echo $(df -h | grep "$1$" | awk '{ print $4 }')
+ echo $(df -h | grep "$1$" | awk '{ print $3 "/" $2 }')
}
case $BLOCK_BUTTON in
@@ -10,7 +10,7 @@ esac
host=$(hostname -s)
if [ "$host" = "laptop1" ]; then
- echo "💽$(getDiskSpace "/")"
+ echo " /: $(getDiskSpace "/")"
else
- echo "💽$(getDiskSpace "/home")"
+ echo " /home: $(getDiskSpace "/home")"
fi