Skip to content

MaxAntony/awesomeWM

Repository files navigation

deps

  • pamixer
  • jetbrains font
  • picom-pijulius-git
  • pavucontrol
  • nitrogen
  • polkit-gnome

Patch

net-speed.lua

local function convert_to_h(bytes)
  local speed
  local dim
  local bits = bytes
  if bits < 1024 then
    speed = bits
    dim = 'B'
  elseif bits < 1024 * 1024 then
    speed = bits / 1024
    dim = 'kB'
  elseif bits < 1024 * 1024 * 1024 then
    speed = bits / (1024 * 1024)
    dim = 'mB'
  elseif bits < 1024 * 1024 * 1024 * 1024 then
    speed = bits / (1024 * 1024 * 1024)
    dim = 'gB'
  else
    speed = tonumber(bits)
    dim = 'b'
  end
  return math.floor(speed * 10) / 10 .. dim
end

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published