alsabar._notify = naughty.notify ({
replaces_id = alsabar._notify.id,
preset = preset,
- screen = client.focus and client.focus.screen or 1
})
else
alsabar._notify = naughty.notify ({
preset = preset,
- screen = client.focus and client.focus.screen or 1
})
end
end
bat.id = naughty.notify({
preset = bat_notification_critical_preset,
replaces_id = bat.id,
- screen = client.focus and client.focus.screen or 1
}).id
elseif nperc <= 15
then
bat.id = naughty.notify({
preset = bat_notification_low_preset,
replaces_id = bat.id,
- screen = client.focus and client.focus.screen or 1
}).id
end
end
fg = calendar.fg,
bg = calendar.bg,
timeout = tims,
- screen = client.focus and client.focus.screen or 1
})
end
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
- * (c) 2010-2012, Peter Hofmann
--]]
--[[
Licensed under GNU General Public License v2
- * (c) 2013, Luke Bonham
* (c) 2013, Jan Xie
--]]
local setmetatable = setmetatable
-- Taskwarrior notification
--- lain.widgets.task
+-- lain.widgets.contrib.task
local task = {}
local task_notification = nil
fg = task.fg,
bg = task.bg,
timeout = task.timeout,
- screen = client.focus and client.focus.screen or 1
})
end
fg = task.fg,
bg = task.bg,
timeout = task.timeout,
- screen = client.focus and client.focus.screen or 1
})
end,
nil,
fg = task.fg,
bg = task.bg,
timeout = task.timeout,
- screen = client.focus and client.focus.screen or 1
})
end,
nil,
preset = fs_notification_preset,
text = ws,
timeout = t_out,
- screen = client.focus and client.focus.screen or 1
})
end
timeout = 8,
fg = "#000000",
bg = "#FFFFFF",
- screen = client.focus and client.focus.screen or 1
})
helpers.set_map("fs", true)
else
naughty.notify({
preset = mail_notification_preset,
text = nt,
- screen = client.focus and client.focus.screen or 1
})
end
preset = mpd_notification_preset,
icon = "/tmp/mpdcover.png",
replaces_id = mpd.id,
- screen = client.focus and client.focus.screen or 1
}).id
end
elseif mpd_now.state ~= "pause"
position = "top_left",
icon = helpers.icons_dir .. "no_net.png",
fg = notify_fg or "#FFFFFF",
- screen = client.focus and client.focus.screen or 1
})
helpers.set_map(iface, false)
end
text = weather_data,
icon = sky,
timeout = t_out,
- screen = client.focus and client.focus.screen or 1
})
end