summaryrefslogtreecommitdiff
path: root/fs-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-11-10 16:30:56 -0500
committerGitHub <noreply@github.com>2020-11-10 16:30:56 -0500
commit3756d3af4fc3911ff654e2daee735493729feb12 (patch)
treed96c404c984033ab5706e6effea2edda4cfe42ff /fs-widget
parent1a25099f55fa96ed1bb764ecb5efb0be48d8a275 (diff)
parent32e2bd04a947c29f21f21a63032649514acb34c3 (diff)
Merge pull request #208 from floli/improve-fs-widget
Improve fs widget
Diffstat (limited to 'fs-widget')
-rw-r--r--fs-widget/fs-widget.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs-widget/fs-widget.lua b/fs-widget/fs-widget.lua
index 343c9f3..613c472 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 = '<b>Mount</b>',
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,
@@ -56,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 = {}
@@ -131,8 +131,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