uniform timers for single-instance widgets; #114

This commit is contained in:
Luke Bonham 2015-07-12 11:22:10 +02:00 committed by copycat-killer
parent 72556c9cd1
commit 2119b79449
5 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ function alsabar.notify()
local preset = { local preset = {
title = "", title = "",
text = "", text = "",
timeout = 4, timeout = 5,
screen = alsabar.notifications.screen, screen = alsabar.notifications.screen,
font = alsabar.notifications.font .. " " .. font = alsabar.notifications.font .. " " ..
alsabar.notifications.font_size, alsabar.notifications.font_size,
@ -90,7 +90,7 @@ end
local function worker(args) local function worker(args)
local args = args or {} local args = args or {}
local timeout = args.timeout or 4 local timeout = args.timeout or 5
local settings = args.settings or function() end local settings = args.settings or function() end
local width = args.width or 63 local width = args.width or 63
local height = args.heigth or 1 local height = args.heigth or 1

View File

@ -28,7 +28,7 @@ local cpu = {
local function worker(args) local function worker(args)
local args = args or {} local args = args or {}
local timeout = args.timeout or 5 local timeout = args.timeout or 2
local settings = args.settings or function() end local settings = args.settings or function() end
cpu.widget = wibox.widget.textbox('') cpu.widget = wibox.widget.textbox('')

View File

@ -23,7 +23,7 @@ local mem = {}
local function worker(args) local function worker(args)
local args = args or {} local args = args or {}
local timeout = args.timeout or 3 local timeout = args.timeout or 2
local settings = args.settings or function() end local settings = args.settings or function() end
mem.widget = wibox.widget.textbox('') mem.widget = wibox.widget.textbox('')

View File

@ -22,7 +22,7 @@ local sysload = {}
local function worker(args) local function worker(args)
local args = args or {} local args = args or {}
local timeout = args.timeout or 5 local timeout = args.timeout or 2
local settings = args.settings or function() end local settings = args.settings or function() end
sysload.widget = wibox.widget.textbox('') sysload.widget = wibox.widget.textbox('')

View File

@ -21,7 +21,7 @@ local temp = {}
local function worker(args) local function worker(args)
local args = args or {} 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 tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp"
local settings = args.settings or function() end local settings = args.settings or function() end