tweaks for eww

This commit is contained in:
Chris Cochrun 2025-04-29 14:57:27 -05:00
parent 8c1c70df2b
commit 79053fa847
6 changed files with 34 additions and 7 deletions

View file

@ -1,5 +1,9 @@
#!/usr/bin/env nu
def main [] {
btrfs file df / | lines | first | split column -r '\s' | get column4 | str replace 'used=' '' | first
if (hostname) == "kaladin" {
df -h / | lines | get 1 | split column -r '\s' | get column5 | first
} else {
btrfs file df / | lines | first | split column -r '\s' | get column4 | str replace 'used=' '' | first
}
}