summaryrefslogtreecommitdiff
path: root/ram-widget
diff options
context:
space:
mode:
authorSam Delmerico <svdelmerico@gmail.com>2018-11-26 16:21:48 -0500
committerSam Delmerico <svdelmerico@gmail.com>2018-11-26 16:21:48 -0500
commit2cf217dc6c45f206aef0e065fa3ede4c36d73e3b (patch)
treea257f029216862d7525ca7e6e1818982b4a03085 /ram-widget
parentf369e1cb28a308f6967d7bc31375c637755b1e3f (diff)
parent1eefac87faefa22b0d3941a9fd4c76010688f59e (diff)
merge biased battery levels
Diffstat (limited to 'ram-widget')
-rw-r--r--ram-widget/ram-widget.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/ram-widget/ram-widget.lua b/ram-widget/ram-widget.lua
index d352bd7..3072068 100644
--- a/ram-widget/ram-widget.lua
+++ b/ram-widget/ram-widget.lua
@@ -18,7 +18,6 @@ local w = wibox {
height = 200,
width = 400,
ontop = true,
- screen = mouse.screen,
expand = true,
bg = '#1e252c',
max_widget_size = 500
@@ -64,7 +63,7 @@ watch('bash -c "free | grep -z Mem.*Swap.*"', 1,
ramgraph_widget:buttons(
awful.util.table.join(
awful.button({}, 1, function()
- awful.placement.top_right(w, { margins = {top = 25, right = 10}})
+ awful.placement.top_right(w, { margins = {top = 25, right = 10}, parent = awful.screen.focused() })
w.pie.data_list = {
{'used ' .. getPercentage(used + used_swap), used + used_swap},
{'free ' .. getPercentage(free + free_swap), free + free_swap},