diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-31 05:18:42 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-31 05:20:19 +0530 |
| commit | 0b28b5eddcb640d88367714b189f6d1944a5669a (patch) | |
| tree | df95741a2a1a0529bb23a62007671bc915d504b0 /modules/desktop/eww/bar/system-stats.lua | |
| parent | 47cbcf9ecdd0b9c78101c6f9acc47b38692e43b2 (diff) | |
| download | home-manager-config-0b28b5eddcb640d88367714b189f6d1944a5669a.tar.gz home-manager-config-0b28b5eddcb640d88367714b189f6d1944a5669a.zip | |
chore: added more language support and lsps in development flake
Diffstat (limited to 'modules/desktop/eww/bar/system-stats.lua')
| -rw-r--r-- | modules/desktop/eww/bar/system-stats.lua | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/modules/desktop/eww/bar/system-stats.lua b/modules/desktop/eww/bar/system-stats.lua index 514647f..c15cbdc 100644 --- a/modules/desktop/eww/bar/system-stats.lua +++ b/modules/desktop/eww/bar/system-stats.lua @@ -337,20 +337,6 @@ local function build_ram_tooltip(ram_pct, used, total, available, swap_pct, swap return table.concat(lines, "\n") end -local function build_sound_tooltip(percent, mute, sink) - local vol = tostring(percent) .. "%" - local lines = {} - if mute then - lines[#lines + 1] = string.format("Muted (%s)", vol) - else - lines[#lines + 1] = "Volume: " .. vol - end - if sink then - lines[#lines + 1] = "Sink: " .. sink - end - return table.concat(lines, "\n") -end - -- ------------------------------------------------ state collectors -- get_all_default_ifaces (`ip route`), get_iface_ip (`ip addr`), and the -- wifi branch of get_speed_mbps (`iw dev link`) each spawn a subprocess. @@ -390,7 +376,7 @@ local function check_net_status(force) local ifaces = net_slow_ifaces - if #ifaces == 0 then + if ifaces == nil or #ifaces == 0 then return { status = "down", tooltip = "Network Offline", routes = {} } end |
