diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-07 17:43:45 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-07 17:43:45 +0400 |
| commit | 4b43dedb78c7a0b956015c833e96460ffe1fd18c (patch) | |
| tree | 64d44e1892aecaf0dcbf3a1ba935699ee6caa419 /.local/bin/statusbar/disk | |
| parent | 8b7ceb75e293ce8229666e405aea6aa6b1dbd616 (diff) | |
added host-specific configuration
Diffstat (limited to '.local/bin/statusbar/disk')
| -rwxr-xr-x | .local/bin/statusbar/disk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk index 7d6b84d..67085e5 100755 --- a/.local/bin/statusbar/disk +++ b/.local/bin/statusbar/disk @@ -8,4 +8,9 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e ncdu '/home/andrew' ;; esac -echo "💽$(getDiskSpace "/home")" +host=$(hostname -s) +if [ "$host" = "laptop1" ]; then + echo "💽$(getDiskSpace "/")" +else + echo "💽$(getDiskSpace "/home")" +fi |