widgets: screen notification setting added

This commit is contained in:
luke bonham 2014-10-11 14:45:14 +02:00
parent 724eaa3ad7
commit 02a50839c8
3 changed files with 7 additions and 2 deletions

View File

@ -41,7 +41,8 @@ local alsabar = {
font = beautiful.font:sub(beautiful.font:find(""), beautiful.font:find(" ")),
font_size = "11",
color = beautiful.fg_normal,
bar_size = 18
bar_size = 18,
screen = 1
},
_current_level = 0,
@ -55,6 +56,7 @@ function alsabar.notify()
title = "",
text = "",
timeout = 4,
screen = alsabar.notifications.screen,
font = alsabar.notifications.font .. " " ..
alsabar.notifications.font_size,
fg = alsabar.notifications.color

View File

@ -30,7 +30,7 @@ function calendar:hide()
end
end
function calendar:show(t_out, inc_offset)
function calendar:show(t_out, inc_offset, scr)
calendar:hide()
local offs = inc_offset or 0
@ -99,6 +99,7 @@ function calendar:show(t_out, inc_offset)
fg = calendar.fg,
bg = calendar.bg,
timeout = tims,
screen = scr or 1
})
end

View File

@ -45,6 +45,7 @@ local function worker(args)
local iface = args.iface or net.get_device()
local units = args.units or 1024 --kb
local notify = args.notify or "on"
local screen = args.screen or 1
local settings = args.settings or function() end
net.widget = wibox.widget.textbox('')
@ -88,6 +89,7 @@ local function worker(args)
position = "top_left",
icon = helpers.icons_dir .. "no_net.png",
fg = notify_fg or "#FFFFFF",
screen = screen
})
helpers.set_map(iface, false)
end