Talk:Naughty log watcher

From awesome
Jump to: navigation, search

Nice and clean. However, in the other version, logs are displayed colored. Do you think it could be added? Then we could remove my version that relies on dirty bash...


Yes. I've been actually working on something like that yesterday and I have some preliminary coloring done: http://silenceisdefeat.com/~koniu/awesome/shots/2009-05-27-050515_1024x768_scrot.png

Currently I use a loop of string.gsub's which is quite limited (due to Lua's patterns limitations) and dodgy (due to my poor pattern skills). I'm thinking of trying Lpeg or lrexlib (improved text processing modules for Lua) to make this fool-proof and, once it is, releasing it as a re-usable awesome extension.

Another issue I haven't resolved yet is that the inotify handles are never closed so after a number of awesome reloads it throws an error and stops working.

--User:koniu 15:29, 27 May 2009 (UTC)

Personal tools