diff options
| author | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 14:20:48 +0100 |
|---|---|---|
| committer | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 19:35:11 +0100 |
| commit | 5c298b6a3e59820b98b6de22240696c6aca2d20d (patch) | |
| tree | 5149d17d6c6f1e2ea87d60a1703c8bf655d1ea18 /scripts/.local/bin/sb-disk | |
| parent | e83844d94b10fb7994ff7bc4b5f9addd7c8d2102 (diff) | |
Drop statusbar scripts
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}')" |
