uniform timers for single-instance widgets; #114

This commit is contained in:
Luke Bonham 2015-07-12 11:22:10 +02:00
parent 10cd5d629d
commit e815650ecc
5 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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('')

View File

@ -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('')

View File

@ -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('')

View File

@ -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