tweaks for eww
This commit is contained in:
parent
8c1c70df2b
commit
79053fa847
6 changed files with 34 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue