From: luke bonham Date: Sat, 11 Oct 2014 12:45:14 +0000 (+0200) Subject: widgets: screen notification setting added X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/02a50839c84bed8920dd4c50971a82b3f4034658?ds=sidebyside;hp=--cc widgets: screen notification setting added --- 02a50839c84bed8920dd4c50971a82b3f4034658 diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 96d57b0..65a2b33 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -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 diff --git a/widgets/calendar.lua b/widgets/calendar.lua index f9aed39..bada79e 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -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 diff --git a/widgets/net.lua b/widgets/net.lua index 2bfd375..ed6a2ef 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -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