You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a format for fs widget like this:
if size > 0 then
local units = math.floor(math.log(size)/math.log(1024))
fs_now[path] = {
units = fs.units[units],
percentage = math.floor(100 * used / size), -- used percentage
size = string.format("%.1f", size / math.pow(1024, units)),
used = string.format("%.1f", used / math.pow(1024, units)),
free = string.format("%.1f", free / math.pow(1024, units))
}
The text was updated successfully, but these errors were encountered:
Add a format for fs widget like this:
if size > 0 then
local units = math.floor(math.log(size)/math.log(1024))
fs_now[path] = {
units = fs.units[units],
percentage = math.floor(100 * used / size), -- used percentage
size = string.format("%.1f", size / math.pow(1024, units)),
used = string.format("%.1f", used / math.pow(1024, units)),
free = string.format("%.1f", free / math.pow(1024, units))
}
The text was updated successfully, but these errors were encountered: