summaryrefslogtreecommitdiff
path: root/cpu-widget/cpu-widget.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cpu-widget/cpu-widget.lua')
-rw-r--r--cpu-widget/cpu-widget.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua
index 70bf03d..c738a95 100644
--- a/cpu-widget/cpu-widget.lua
+++ b/cpu-widget/cpu-widget.lua
@@ -1,3 +1,13 @@
+-------------------------------------------------
+-- CPU Widget for Awesome Window Manager
+-- Shows the current CPU utilization
+-- More details could be found here:
+-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/cpu-widget
+
+-- @author Pavel Makhov
+-- @copyright 2017 Pavel Makhov
+-------------------------------------------------
+
local watch = require("awful.widget.watch")
local wibox = require("wibox")
@@ -11,7 +21,7 @@ local cpugraph_widget = wibox.widget {
widget = wibox.widget.graph
}
--- mirros and push up a bit
+-- mirros and pushs up a bit
local cpu_widget = wibox.container.margin(wibox.container.mirror(cpugraph_widget, { horizontal = true }), 0, 0, 0, 2)
local total_prev = 0