From e815650ecceedc5e6b68d8e5571ed8839d1c8d3d Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Sun, 12 Jul 2015 11:22:10 +0200 Subject: [PATCH] uniform timers for single-instance widgets; #114 --- widgets/alsabar.lua | 4 ++-- widgets/cpu.lua | 2 +- widgets/mem.lua | 2 +- widgets/sysload.lua | 2 +- widgets/temp.lua | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 8ec5a00..c957dbb 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -56,7 +56,7 @@ function alsabar.notify() local preset = { title = "", text = "", - timeout = 4, + timeout = 5, screen = alsabar.notifications.screen, font = alsabar.notifications.font .. " " .. alsabar.notifications.font_size, @@ -90,7 +90,7 @@ end local function worker(args) local args = args or {} - local timeout = args.timeout or 4 + local timeout = args.timeout or 5 local settings = args.settings or function() end local width = args.width or 63 local height = args.heigth or 1 diff --git a/widgets/cpu.lua b/widgets/cpu.lua index 7c1ecb0..ec84101 100644 --- a/widgets/cpu.lua +++ b/widgets/cpu.lua @@ -28,7 +28,7 @@ local cpu = { local function worker(args) local args = args or {} - local timeout = args.timeout or 5 + local timeout = args.timeout or 2 local settings = args.settings or function() end cpu.widget = wibox.widget.textbox('') diff --git a/widgets/mem.lua b/widgets/mem.lua index 46bb5f9..f6213b2 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -23,7 +23,7 @@ local mem = {} local function worker(args) local args = args or {} - local timeout = args.timeout or 3 + local timeout = args.timeout or 2 local settings = args.settings or function() end mem.widget = wibox.widget.textbox('') diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 144ad0c..b10c5e2 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -22,7 +22,7 @@ local sysload = {} local function worker(args) local args = args or {} - local timeout = args.timeout or 5 + local timeout = args.timeout or 2 local settings = args.settings or function() end sysload.widget = wibox.widget.textbox('') diff --git a/widgets/temp.lua b/widgets/temp.lua index 5994f59..1e93848 100644 --- a/widgets/temp.lua +++ b/widgets/temp.lua @@ -21,7 +21,7 @@ local temp = {} local function worker(args) local args = args or {} - local timeout = args.timeout or 5 + local timeout = args.timeout or 2 local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp" local settings = args.settings or function() end -- 2.39.2