From 224c7a6acb2919d5c7f94bcfba95ac19692269d9 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Fri, 3 Apr 2020 16:25:01 -0400 Subject: [cpu] use margins instead of spacing in process rows --- cpu-widget/cpu-widget.lua | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'cpu-widget') 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, } @@ -191,30 +191,35 @@ 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 } -- cgit v1.2.3