diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
| commit | ea8ff6d7638cdd1f36cc978f1734759158b969b0 (patch) | |
| tree | 18893c91594a2d58bb6757f592a076c5496e300e /.local/bin/statusbar/disk | |
Initial commit
Diffstat (limited to '.local/bin/statusbar/disk')
| -rwxr-xr-x | .local/bin/statusbar/disk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk new file mode 100755 index 0000000..7d6b84d --- /dev/null +++ b/.local/bin/statusbar/disk @@ -0,0 +1,11 @@ +#!/bin/sh + +getDiskSpace () { + echo $(df -h | grep "$1$" | awk '{ print $4 }') +} + +case $BLOCK_BUTTON in + 1) setsid -f "$TERMINAL" -e ncdu '/home/andrew' ;; +esac + +echo "💽$(getDiskSpace "/home")" |