X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e0d4a89435d68714c0cee849625e0b14edca3d1c..49a4df385e953156e6d1e2ee0bcfd07d8501d0f4:/widgets/pulsebar.lua diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index 284b886..db03b24 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -51,8 +51,8 @@ local function worker(args) pulsebar.notifications = args.notification_preset if not pulsebar.notification_preset then - pulsebar.notification_preset = naughty.config.defaults - pulsebar.notification_preset.font = "Monospace 11" + pulsebar.notification_preset = {} + pulsebar.notification_preset.font = "Monospace 10" end pulsebar.bar = wibox.widget { @@ -136,10 +136,7 @@ local function worker(args) end) end - - timer_id = string.format("pulsebar-%s", pulsebar.sink) - - helpers.newtimer(timer_id, timeout, pulsebar.update) + helpers.newtimer(string.format("pulsebar-%s", pulsebar.sink), timeout, pulsebar.update) return pulsebar end