diff options
author | Florian Lindner <florian.lindner@xgm.de> | 2020-11-10 21:51:50 +0100 |
---|---|---|
committer | Florian Lindner <florian.lindner@xgm.de> | 2020-11-10 21:51:50 +0100 |
commit | 06a386f9eea02ace608052e825cc76d5d4302a2d (patch) | |
tree | b4ffea5d16b0d8e466e266066e96424d7361774c /fs-widget | |
parent | df01b80e209c92dd25c1d1c0cf2344a2dfee4874 (diff) |
Use a ratio layout for a more aligned appearance.
Diffstat (limited to 'fs-widget')
-rw-r--r-- | fs-widget/fs-widget.lua | 8 |
1 files changed, 5 insertions, 3 deletions
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 = '<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, @@ -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 |