nixos-configs/configs/eww/scripts/disk.sh

3 lines
No EOL
86 B
Bash
Executable file

#!/usr/bin/env bash
df --output=pcent / | tail -n 1 | sed 's/%//g' | awk '{print $1}'