From 06a386f9eea02ace608052e825cc76d5d4302a2d Mon Sep 17 00:00:00 2001 From: Florian Lindner Date: Tue, 10 Nov 2020 21:51:50 +0100 Subject: Use a ratio layout for a more aligned appearance. --- fs-widget/fs-widget.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'fs-widget') diff --git a/fs-widget/fs-widget.lua b/fs-widget/fs-widget.lua index 343c9f3..ce4ab8b 100644 --- a/fs-widget/fs-widget.lua +++ b/fs-widget/fs-widget.lua @@ -35,7 +35,7 @@ local function worker(args) layout = wibox.layout.fixed.vertical, } - local disk_header = { + local disk_header = wibox.widget{ { markup = 'Mount', forced_width = 150, @@ -47,8 +47,9 @@ local function worker(args) align = 'left', widget = wibox.widget.textbox, }, - layout = wibox.layout.align.horizontal + layout = wibox.layout.ratio.horizontal } + disk_header:ajust_ratio(1, 0, 0.3, 0.7) local popup = awful.popup{ ontop = true, @@ -131,8 +132,9 @@ local function worker(args) .. math.floor(disks[v].perc) .. '%)', widget = wibox.widget.textbox }, - layout = wibox.layout.align.horizontal + layout = wibox.layout.ratio.horizontal } + row:ajust_ratio(2, 0.3, 0.3, 0.4) disk_rows[k] = row end -- cgit v1.2.3 From 32e2bd04a947c29f21f21a63032649514acb34c3 Mon Sep 17 00:00:00 2001 From: Florian Lindner Date: Tue, 10 Nov 2020 22:07:20 +0100 Subject: Remove explicit setting of bg color. So that the default is taken. Gives a more unified appearence to the other widgets. --- fs-widget/fs-widget.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'fs-widget') diff --git a/fs-widget/fs-widget.lua b/fs-widget/fs-widget.lua index ce4ab8b..613c472 100644 --- a/fs-widget/fs-widget.lua +++ b/fs-widget/fs-widget.lua @@ -57,7 +57,6 @@ local function worker(args) shape = gears.shape.rounded_rect, border_width = 1, border_color = beautiful.bg_normal, - bg = beautiful.bg_focus, maximum_width = 400, offset = { y = 5 }, widget = {} -- cgit v1.2.3