From fa725e4d862f080c5c1b38d2d291544c69dcd2bf Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 22 Feb 2020 13:55:04 -0500 Subject: [fs-widget] few cosmetic changes --- fs-widget/fs-widget.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fs-widget/fs-widget.lua') diff --git a/fs-widget/fs-widget.lua b/fs-widget/fs-widget.lua index d719f60..4640c50 100644 --- a/fs-widget/fs-widget.lua +++ b/fs-widget/fs-widget.lua @@ -4,13 +4,13 @@ local wibox = require("wibox") local beautiful = require("beautiful") local gears = require("gears") -local storage_graph_widget = {} +local storage_bar_widget = {} local function worker(args) local args = args or {} local mounts = args.mounts or {'/'} - storage_graph_widget = wibox.widget { + storage_bar_widget = wibox.widget { max_value = 100, forced_height = 20, forced_width = 35, @@ -63,7 +63,7 @@ local function worker(args) popup:connect_signal("mouse::enter", function(c) is_update = false end) popup:connect_signal("mouse::leave", function(c) is_update = true end) - storage_graph_widget:buttons( + storage_bar_widget:buttons( awful.util.table.join( awful.button({}, 1, function() if popup.visible then @@ -75,7 +75,7 @@ local function worker(args) ) ) - local disk_widget = wibox.container.margin(wibox.container.mirror(storage_graph_widget, { horizontal = true }), 0, 0, 0, 2) + local disk_widget = wibox.container.margin(storage_bar_widget, 0, 0, 0, 0) local disks = {} watch([[bash -c "df | tail -n +2"]], 60, @@ -145,12 +145,12 @@ local function worker(args) widget = wibox.container.margin } end, - storage_graph_widget + storage_bar_widget ) return disk_widget end -return setmetatable(storage_graph_widget, { __call = function(_, ...) +return setmetatable(storage_bar_widget, { __call = function(_, ...) return worker(...) end }) -- cgit v1.2.3