Change position of mail widget

This commit is contained in:
crater2150 2014-04-25 15:15:11 +02:00
parent e392d4842d
commit 439425b698
2 changed files with 8 additions and 7 deletions

View file

@ -125,7 +125,7 @@ widgets.layout = get_layout
--------------------------------------------------------------------------------
-- mail widget
local function mailwidget(name, screen, parent_layout, mailboxes) --{{{
local function mailwidget(name, screen, parent_layout, mailboxes, notify_pos) --{{{
local widget = wibox.widget.textbox()
local bg = wibox.widget.background()
bg:set_widget(widget)
@ -134,7 +134,7 @@ local function mailwidget(name, screen, parent_layout, mailboxes) --{{{
naughty.notify({
title = "New mail arrived",
text = "Unread "..args[2].." / New "..args[1],
position = "top_left"
position = notify_pos or "top_left"
})
bg:set_bg(theme.bg_urgent)