Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
log watcher for awesome wm
Lua
Tree: 01a9e35370

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.markdown
init.lua

README.markdown

lognotify...

... is log watcher for awesome wm.

It will show a naughty popup each time something changes in one of the predefined log files.

REQUIREMENTS

awesome for sure :)

linotify luarocks install inotify

luasocket luarocks install luasocket

SETUP

  • Make and install luainotify.
  • Clone lognotify in to your config directory. (~/.config/awesome):

    cd $XDG_CONFIG_HOME/awesome && git https://Mic92@github.com/Mic92/lognotify.git

    or rename init.lua to lognotify.lua and put into awesome's loadpath:

    wget --no-check-certificate https://github.com/Mic92/lognotify/blob/master/init.lua -O $XDG_CONFIG_HOME/awesome/lognotify.lua

USAGE

  • Require the module in your rc.lua

require("lognotify")

  • Initialize and configure it. Here an example:
ilog = lognotify{
   logs = { mpd = { file = "/home/bob/.mpd/log", },
    aptitude = { file = "/var/log/aptitude", },
    -- Check, whether you have the permissions to read your log files!
    -- You can fix this by configure syslog deamon in many case.
    syslog    = { file = "/var/log/syslog", ignore = { "Changing fan level" },
    },
    awesome  = { file = "/home/bob/log/awesome",
        ignore = {
            "/var/lib/dpkg", -- aptwidget failure when aptitude running
            "wicd", "wired profiles found", -- wicd junk
            "seek to:", "Close unzip stream", -- gmpc junk
            "^nolog"},
        },
   -- Delay between checking in seconds. Default: 1
   interval = 1,
   -- Time in seconds after which popup expires. Set 0 for no timeout. Default: 0
   naughty_timeout = 15
}
  • run it:

ilog:start()

  • if you tired of it, you can stop it and start later at any time again

ilog:stop()

Something went wrong with that request. Please try again.