Skip to content

Commit

Permalink
add /s to units
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirOnGH committed Sep 5, 2024
1 parent df6190b commit 7696aec
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion desktop/multiline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local function default_style()
margin = { 0, 0, 0, 0 },
digits = 3,
dislabel = "OFF",
unit = { { "B", -1 }, { "KB", 1024 }, { "MB", 1024 ^ 2 }, { "GB", 1024 ^ 3 } },
unit = { { "B/s", -1 }, { "KB/s", 1024 }, { "MB/s", 1024 ^ 2 }, { "GB/s", 1024 ^ 3 } },
color = { main = "#C38F8F", wibox = "#161616", gray = "#404040" },
}
return modutil.table.merge(style, modutil.table.check(beautiful, "desktop.multiline") or {})
Expand Down
2 changes: 1 addition & 1 deletion desktop/singleline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local function default_style()
digits = 3,
icon = nil,
iwidth = 120,
unit = { { "B", -1 }, { "KB", 1024 }, { "MB", 1024 ^ 2 }, { "GB", 1024 ^ 3 } },
unit = { { "B/s", -1 }, { "KB/s", 1024 }, { "MB/s", 1024 ^ 2 }, { "GB/s", 1024 ^ 3 } },
color = { main = "#C38F8F", wibox = "#161616", gray = "#404040" },
}
return modutil.table.merge(style, modutil.table.check(beautiful, "desktop.singleline") or {})
Expand Down
2 changes: 1 addition & 1 deletion desktop/speedmeter/compact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local function default_style()
chart = {},
height = { chart = 50 },
digits = 2,
unit = { { "B", -1 }, { "KB", 1024 }, { "MB", 1024 ^ 2 }, { "GB", 1024 ^ 3 } },
unit = { { "B/s", -1 }, { "KB/s", 1024 }, { "MB/s", 1024 ^ 2 }, { "GB/s", 1024 ^ 3 } },
color = { main = "#C38F8F", wibox = "#161616", gray = "#404040" },
}
return modutil.table.merge(style, modutil.table.check(beautiful, "desktop.speedmeter.compact") or {})
Expand Down
2 changes: 1 addition & 1 deletion desktop/speedmeter/normal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local function default_style()
fullchart_height = 78,
digits = 2,
image_gap = 20,
unit = { { "B", -1 }, { "KB", 1024 }, { "MB", 1024 ^ 2 }, { "GB", 1024 ^ 3 } },
unit = { { "B/s", -1 }, { "KB/s", 1024 }, { "MB/s", 1024 ^ 2 }, { "GB/s", 1024 ^ 3 } },
color = { main = "#C38F8F", wibox = "#161616", gray = "#404040" },
}
return modutil.table.merge(style, modutil.table.check(beautiful, "desktop.speedmeter.normal") or {})
Expand Down
2 changes: 1 addition & 1 deletion float/top.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ local function default_style()
button_margin = { 140, 140, 22, 22 },
keytip = { geometry = { width = 400 } },
title_font = "Fira Code 14 bold",
unit = { { "KB", -1 }, { "MB", 1024 }, { "GB", 1024 ^ 2 } },
unit = { { "KB/s", -1 }, { "MB/s", 1024 }, { "GB/s", 1024 ^ 2 } },
color = {
border = "#575757",
text = "#aaaaaa",
Expand Down
2 changes: 1 addition & 1 deletion widget/net.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
function net.new(args, style)
-- Initialize vars
local storage = {}
local unit = { { "B", 1 }, { "KB", 1024 }, { "MB", 1024 ^ 2 }, { "GB", 1024 ^ 3 } }
local unit = { { "B/s", 1 }, { "KB/s", 1024 }, { "MB/s", 1024 ^ 2 }, { "GB/s", 1024 ^ 3 } }
args = modutil.table.merge(default_args, args or {})
style = modutil.table.merge(default_style(), style or {})

Expand Down

0 comments on commit 7696aec

Please sign in to comment.