diff options
Diffstat (limited to 'scripts/.local/bin/sb-disk')
| -rwxr-xr-x | scripts/.local/bin/sb-disk | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/.local/bin/sb-disk b/scripts/.local/bin/sb-disk deleted file mode 100755 index c5629cd..0000000 --- a/scripts/.local/bin/sb-disk +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Status bar module for disk space -# $1 should be drive mountpoint, otherwise assumed /. - -location=${1:-/} - -[ -d "$location" ] || exit - -case "$location" in - "/home"* ) icon="H" ;; - "/mnt"* ) icon="M" ;; - *) icon="O";; -esac - -printf "%s: %s\n" "$icon" "$(df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2}')" |
