aughty = require("naughty")
>>> naughty.notify_ = naughty.notify
>>> naughty.notify = function (args,...)
>>>for i = 1, screen.count() do
>>>args.screen = i
>>> naughty.notify_(args,...)
>>>end
>>> end
>>>
>>>
>>>
>>>
d
>> end
>>
>>
>>
>>
>>
>> … code correctly, would you even need to modify naughty.lua?
>>
>>
>>
>>
>>
>> Regards
>>
>>
>>
>> Dave
>>
>>
>> -
end
> end
>
>
>
>
>
> … code correctly, would you even need to modify naughty.lua?
>
>
>
>
>
> Regards
>
>
>
> Dave
>
>
> --
>
> *From:* Alexis BRENON [mailto:brenon.ale...@gmail.com]
> *Sent:* Fri
aughty.lua?
Regards
Dave
_
From: Alexis BRENON [mailto:brenon.ale...@gmail.com]
Sent: Friday, 5 June 2015 11:07 PM
To: Abraham Baker
Cc: Elv1313 .; awesome
Subject: Re: Naughty Notifications on multiple monitors
Instead of hidding the error just replace line 600 from
Instead of hidding the error just replace line 600 from:
local id = naughty.notify(args).id
to
naughty.notify(args)
You don't need the id any more if you don't use it. This way, no more error.
Le ven. 5 juin 2015 à 14:57, Abraham Baker a
écrit :
> Hi,
>
> My goal is to get every notification to
Hi,
My goal is to get every notification to show up on all monitors. This
isn't critical; it just makes switching between standing/sitting easier.
I don't use often-updating notifications, so I (for now) don't care about
the notification id's. So, I'm thinking Elv1313's solution + hiding the
na
Hi Abraham,
I'm sorry, I don't understand what and when did commented out ?
Can you please post your config file on pastebin (http://pastebin.com/) or
something like that (github?).
To fix the error about 'insert' method, you can replace the line :
notifications:insert(i, naughty.notify_(args,...
Hi,
When I commented out 600 and 601 of naughty.lua *before* changing rc.lua, I
got:
naughty.lua:604: bad arg #1 to 'ipairs' (table expected, got nil)
on both screens.
Then, when I added the updated naughy.notify function to rc.lua, I got:
rc.lua:22 attempt to call a nil value (method 'insert')
o
Hum, well, you will have to update a little bit your config!
First, the default naughty.notify function returns a table representing the
notification, but your new notify function doesn't, so update it :
naughty.notify_ = naughty.notify
naughty.notify = function (args,...)
notifications = {}
That actually works, but also generates an error (in the form of a critical
notification on both screens) at the same time:
/usr/share/awesome/lib/naughty.lua:600: attempt to index a nil value
For context, line 600 is:
local id = naughty.notify(args).id
Looks like this is close to working right!
This should help:
local naughty = require('naughty')
naughty.notify_ = naughty.notify
naughty.notify = function (args,...)
for i = 1, screen.count() do
args.screen = i
naughty.notify_(args,...)
end
end
On 3 June 2015 at 10:42, Abraham Baker wrote:
> I tried adding that code r
I tried adding that code right after the local naughty = require("naughty")
that was already there, but it didn't work and actually stopped any
notifications from showing on any monitor.
I doubt it was the cause, but some other functions in my rc.lua also use
local i as a counter; these shouldn't
Hi Abraham,
you have to call the anughty.notift() function twice, once for each screen.
Maybe you can define a function which do it for you :
local naughty = require('naughty')
naughty.notify = function (args)
local i = 1
while i <= screen.count() do
args.screen = i
naughty.notify(args)
e
13 matches
Mail list logo