naughty calendar is naughty

2011-11-08 Thread Matija Žeželj
hello group, i need help with my calendar widget. widget: -- }}} local calendar = nil local offset = 0 function remove_calendar() if calendar ~= nil then naughty.destroy(calendar) calendar = nil offset = 0 end end function

Re: naughty calendar is naughty

2011-11-08 Thread Uli Schlachter
Hi, On 08.11.2011 15:33, Matija Žeželj wrote: [..] function add_calendar(inc_offset) local save_offset = offset remove_calendar() offset = save_offset + inc_offset local datespec = os.date(*t) datespec = datespec.year * 12 + datespec.month - 1 +

Re: naughty calendar is naughty

2011-11-08 Thread Julien Danjou
On Tue, Nov 08 2011, Uli Schlachter wrote: cal uses shell escape sequences to highlight the current date. Those only work in the shell. So the real fix would be to figure out how to match those shell escapes and replace them with pango markup. And no, don't ask me about details, I don't

Re: naughty calendar is naughty

2011-11-08 Thread Alexander Yakushev
Hello, Matija The problem is that your version of cal highlights the current day in the terminal buy adding a special symbol before it. Lua doesn't recognize it, takes it for some other symbol and all crashes. Try it, run cal in your terminal. It would probably highlight the current day. To

Re: naughty calendar is naughty

2011-11-08 Thread Jörg Thalheim
There exists also several pure lua calender implementation, which does not depend external application: shameless_self_plug https://github.com/Mic92/awesome-dotfiles/blob/master/cal.lua /shameless_self_plug 2011/11/8 Matija Žeželj matij...@gmail.com: hello group, i need help with my

Re: naughty calendar is naughty

2011-11-08 Thread Matija Žeželj
Thank you guys, cal -h did the job. problem is that i am currently running ubuntu on my desktop and it has messed up cal. i'll migrate to arch in few days and then all should work well. thank you all for your answers! matija On Tue, Nov 8, 2011 at 17:03, Jörg Thalheim jthalh...@gmail.com wrote:

[awesome bugs] #938 - Setting wallpaper_cmd to empty table causes infinite recursion (Attachment added)

2011-11-08 Thread awesome
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY. A new Flyspray task has been opened. Details are below. User who did this - perry (bioe007) Attached to Project - awesome Summary - Setting wallpaper_cmd to empty table causes infinite recursion Task Type - Bug Report Category - Core Status -