diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 04:19:59 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 04:19:59 +0530 |
| commit | 3a6e45ad18c519b21c9cadb2d374148647886b05 (patch) | |
| tree | c8ad94d5be285a770a319e6a6a6fdda6021b652a /modules/desktop/eww/bar/system-stats.lua | |
| parent | 574b4e4651495ed3fb14ef53a00374782d45b378 (diff) | |
| download | home-manager-config-3a6e45ad18c519b21c9cadb2d374148647886b05.tar.gz home-manager-config-3a6e45ad18c519b21c9cadb2d374148647886b05.zip | |
refactor: ran newly configured formatter for the whole project
Diffstat (limited to 'modules/desktop/eww/bar/system-stats.lua')
| -rw-r--r-- | modules/desktop/eww/bar/system-stats.lua | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/desktop/eww/bar/system-stats.lua b/modules/desktop/eww/bar/system-stats.lua index 9571d26..b651e2d 100644 --- a/modules/desktop/eww/bar/system-stats.lua +++ b/modules/desktop/eww/bar/system-stats.lua @@ -313,12 +313,7 @@ local function build_cpu_tooltip(overall_pct, per_core_list, freq_mhz, load_avg) lines[#lines + 1] = string.format("Freq: %d MHz", freq_mhz) end if load_avg ~= nil then - lines[#lines + 1] = string.format( - "Load: %.2f %.2f %.2f", - load_avg[1], - load_avg[2], - load_avg[3] - ) + lines[#lines + 1] = string.format("Load: %.2f %.2f %.2f", load_avg[1], load_avg[2], load_avg[3]) end for i, pct in ipairs(per_core_list) do lines[#lines + 1] = string.format("Core %d: %d%%", i - 1, pct) @@ -682,10 +677,7 @@ local function spawn_inotify() end posix.close(r) posix.close(w) - local ok, err = posix.execp( - "inotifywait", - { "inotifywait", "-m", "-e", "modify", "/run/systemd/netif/state" } - ) + local ok, err = posix.execp("inotifywait", { "inotifywait", "-m", "-e", "modify", "/run/systemd/netif/state" }) if not ok then io.stderr:write("inotifywait: " .. tostring(err) .. "\n") os.exit(1) |
