summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar/plugins/disk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/sketchybar/plugins/disk.sh')
-rw-r--r--mac/.config/sketchybar/plugins/disk.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/mac/.config/sketchybar/plugins/disk.sh b/mac/.config/sketchybar/plugins/disk.sh
deleted file mode 100644
index f2adc30..0000000
--- a/mac/.config/sketchybar/plugins/disk.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-source "$CONFIG_DIR/globalstyles.sh"
-
-COUNT="$(df -H | grep -E '^(/dev/disk3s5)' | awk '{ printf ("%s\n", $5) }' | sed 's/%//')"
-
-COLOR=$RED
-
-case "$COUNT" in
-[7-8][0-9]) # 70-89%
- COLOR=$PEACH
- ;;
-[5-6][0-9]) # 50-69%
- COLOR=$YELLOW
- ;;
-[3-4][0-9]) # 20-49%
- COLOR=$GREEN
- ;;
-[1-2][0-9]) # 10-19%
- COLOR=$LAVENDER
- ;;
-[0-9]) # 0-9%
- COLOR=$WHITE
- ;;
-esac
-
-sketchybar -m --set "$NAME" \
- label="$COUNT%" \
- icon.color=$COLOR