]> git.madduck.net Git - etc/awesome.git/blobdiff - widgets/cpu.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

readme updated
[etc/awesome.git] / widgets / cpu.lua
index cf0b76c911296596c172654a74c6eaf93f045349..3890e5ea2b22974334ccba6bd1b823b03dbfdb27 100644 (file)
@@ -32,7 +32,7 @@ function worker(args)
     local header = args.header or " Cpu "
     local header_color = args.header or beautiful.fg_normal or "#FFFFFF"
     local color = args.color or beautiful.fg_focus or "#FFFFFF"
-    local footer = args.footer or "%"
+    local footer = args.footer or "% "
 
     local w = wibox.widget.textbox()
 
@@ -62,7 +62,7 @@ function worker(args)
         local dtotal = total - cpu.last_total
         local dta = math.ceil((dactive / dtotal) * 100)
 
-        w:set_markup(markup(header_color, header) .. markup(color, dta .. footer) .. " ")
+        w:set_markup(markup(header_color, header) .. markup(color, dta .. footer))
 
         -- Save current data for the next run.
         cpu.last_active = active