mirror of https://github.com/lcpz/lain.git
uniform timers for single-instance widgets; #114
This commit is contained in:
parent
10cd5d629d
commit
e815650ecc
|
@ -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
|
||||
|
|
|
@ -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('')
|
||||
|
|
|
@ -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('')
|
||||
|
|
|
@ -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('')
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue