repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
eww/scripts/disk.nu
Raw
let root = (sys disks | where mount == '/' | get 0)
let used = $root.free / $root.total * 100 | math round
echo $used
bugabingas dorkfiles
let root = (sys disks | where mount == '/' | get 0)
let used = $root.free / $root.total * 100 | math round
echo $used