diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-11 20:43:20 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-11 20:43:20 -0500 |
commit | ce020ab718b0ea09224dd15fc9a5796b3acc7904 (patch) | |
tree | 5d1ab3fb93f85d6fbf1b9fe84dfcd3484ce6ef33 /awesome/widgets/cpu.lua | |
parent | 5e84a09eb67772b07a73102538d2445ecb403613 (diff) | |
download | dotconfig-ce020ab718b0ea09224dd15fc9a5796b3acc7904.tar.xz dotconfig-ce020ab718b0ea09224dd15fc9a5796b3acc7904.zip |
overhaul awesome
Diffstat (limited to 'awesome/widgets/cpu.lua')
-rw-r--r-- | awesome/widgets/cpu.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/awesome/widgets/cpu.lua b/awesome/widgets/cpu.lua index cbd5916..d92bce8 100644 --- a/awesome/widgets/cpu.lua +++ b/awesome/widgets/cpu.lua @@ -1,7 +1,5 @@ local wibox = require("wibox") local widgets = require("util.widgets") -local osname = require("util.osname") - -- this is directly adapted from slstatus's cpu.c module local cpu_time = { 0,0,0,0,0,0,0 } -- user, nice, system, idle, iowait, irq, softirq @@ -32,7 +30,6 @@ function linux_cpu_usage(widget) widget:set_text(math.floor(usage)) end - -- return correct widget for os if osname == "Linux" then return widgets.watchfn(linux_cpu_usage, 5) |