mirror of https://github.com/lcpz/lain.git
#66 removed hardcoded screen def in widgets notification
This commit is contained in:
parent
c4c149d2df
commit
99db3d7ac2
|
@ -77,12 +77,10 @@ function alsabar.notify()
|
|||
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
|
||||
|
|
|
@ -130,14 +130,12 @@ local function worker(args)
|
|||
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
|
||||
|
|
|
@ -99,7 +99,6 @@ function calendar:show(t_out, inc_offset)
|
|||
fg = calendar.fg,
|
||||
bg = calendar.bg,
|
||||
timeout = tims,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2010-2012, Peter Hofmann
|
||||
|
||||
--]]
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2013, Jan Xie
|
||||
|
||||
--]]
|
||||
|
@ -20,7 +19,7 @@ local tonumber = tonumber
|
|||
local setmetatable = setmetatable
|
||||
|
||||
-- Taskwarrior notification
|
||||
-- lain.widgets.task
|
||||
-- lain.widgets.contrib.task
|
||||
local task = {}
|
||||
|
||||
local task_notification = nil
|
||||
|
@ -52,7 +51,6 @@ function task:show()
|
|||
fg = task.fg,
|
||||
bg = task.bg,
|
||||
timeout = task.timeout,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -75,7 +73,6 @@ function task:prompt_add()
|
|||
fg = task.fg,
|
||||
bg = task.bg,
|
||||
timeout = task.timeout,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end,
|
||||
nil,
|
||||
|
@ -109,7 +106,6 @@ function task:prompt_search()
|
|||
fg = task.fg,
|
||||
bg = task.bg,
|
||||
timeout = task.timeout,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end,
|
||||
nil,
|
||||
|
|
|
@ -47,7 +47,6 @@ function fs:show(t_out)
|
|||
preset = fs_notification_preset,
|
||||
text = ws,
|
||||
timeout = t_out,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -100,7 +99,6 @@ local function worker(args)
|
|||
timeout = 8,
|
||||
fg = "#000000",
|
||||
bg = "#FFFFFF",
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
helpers.set_map("fs", true)
|
||||
else
|
||||
|
|
|
@ -77,7 +77,6 @@ local function worker(args)
|
|||
naughty.notify({
|
||||
preset = mail_notification_preset,
|
||||
text = nt,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -91,7 +91,6 @@ local function worker(args)
|
|||
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"
|
||||
|
|
|
@ -88,7 +88,6 @@ local function worker(args)
|
|||
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
|
||||
|
|
|
@ -167,7 +167,6 @@ function yawn.show(t_out)
|
|||
text = weather_data,
|
||||
icon = sky,
|
||||
timeout = t_out,
|
||||
screen = client.focus and client.focus.screen or 1
|
||||
})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue