mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
disk: Replace hardcoded partition with root ('/')
This commit is contained in:
parent
911be8ae08
commit
841ba379d8
1 changed files with 2 additions and 2 deletions
|
|
@ -7,10 +7,10 @@ local helpers = require("helpers")
|
|||
|
||||
local update_interval = 180 -- every 3 minutes
|
||||
|
||||
-- Use /dev/sdxY according to your setup
|
||||
-- To get disk space for any partition, replace '/' with the partition (e.g. '/dev/sda1')
|
||||
local disk_script = [[
|
||||
bash -c "
|
||||
df -kH -B 1MB /dev/sda1 | tail -1 | awk '{printf \"%d@%d\", $4, $3}'
|
||||
df -kH -B 1MB / | awk 'END {printf \"%d@%d\", $4, $3}'
|
||||
"
|
||||
]]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue