summaryrefslogtreecommitdiff
path: root/cpu-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-04-03 16:25:01 -0400
committerstreetturtle <streetturtle@gmail.com>2020-04-03 16:25:01 -0400
commit224c7a6acb2919d5c7f94bcfba95ac19692269d9 (patch)
tree05f42f68655ee2b7d11824ea2b479dbbc1a872df /cpu-widget
parent6bee8b688009ee35f6098abe9e5aee37c8a69b1c (diff)
[cpu] use margins instead of spacing in process rows
Diffstat (limited to 'cpu-widget')
-rw-r--r--cpu-widget/cpu-widget.lua33
1 files changed, 19 insertions, 14 deletions
diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua
index 7dfc5a7..e0dea4d 100644
--- a/cpu-widget/cpu-widget.lua
+++ b/cpu-widget/cpu-widget.lua
@@ -57,7 +57,7 @@ local function worker(args)
local is_update = true
local process_rows = {
- spacing = 8,
+ -- spacing = 8,
layout = wibox.layout.fixed.vertical,
}
@@ -192,29 +192,34 @@ local function worker(args)
local row = wibox.widget {
{
{
- text = pid,
- forced_width = 40,
- widget = wibox.widget.textbox
- },
- {
- text = comm,
- forced_width = 40,
- widget = wibox.widget.textbox
- },
- {
{
- text = cpu,
+ text = pid,
forced_width = 40,
widget = wibox.widget.textbox
},
{
- text = mem,
+ text = comm,
forced_width = 40,
widget = wibox.widget.textbox
},
+ {
+ {
+ text = cpu,
+ forced_width = 40,
+ widget = wibox.widget.textbox
+ },
+ {
+ text = mem,
+ forced_width = 40,
+ widget = wibox.widget.textbox
+ },
+ layout = wibox.layout.align.horizontal
+ },
layout = wibox.layout.align.horizontal
},
- layout = wibox.layout.align.horizontal
+ top = 4,
+ bottom = 4,
+ widget = wibox.container.margin
},
widget = wibox.container.background
}