1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
2023-11-10 13:55:20 +01:00

12 lines
228 B
Bash
Executable File

#!/bin/sh
# Status bar module for disk space
# $1 should be drive mountpoint
disk="/"
[ ! -z "$1" ] && disk="$1"
icon="$disk"
printf "^b#282828^^c#dfdfdf^ 󰗮 ^d^ %s\n" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"