Bzed's awesome newsticker

From awesome
Jump to: navigation, search

Contents

AWESOMEFEEDER

This module for awesome provides a simple newsticker. It's the first time I've coded something in Lua, so please bear with me!

Although it's kinda hacky, awesomefeeder uses a small Python script to retrieve the rss feeds as I was too lazy to implement a feed parser in Lua :)

Screenshot

Awesomefeeder.png

Requirements

What you need to run:

  • python-beautifulsoup
  • python-cjson
  • python-feedparser
  • python-imaging
  • liblua5.1-json (The Debian package is waiting in NEW at the moment)

Usage

  • Download the tarball and extract it to ~/.config/awesome
  • Add something like the following code to your rc.lua:
    myfeed_text, myfeed_image = awesomefeeder.widgets("right", 12)
    ("right" is the widget alignment, 12 the number of seconds to wait before displaying the next news line).
    Then you can add myfeed_text and myfeed_image to the wiboxes of your choice.
  • Edit newsfeeder.cfg to configure the list of RSS feeds.

Download

The tarball and a Debian package of liblua5.1-json is available here: [1]

Bugs

Neither PIL nor PythonMagick seem to be able to handle alpha channels in .ico files properly. In case you find any other bugs - please send reports and patches to bzed@debian.org.

Copyright and License

Copyright (C) 2008 Bernd Zeimetz <bzed@debian.org>.
Licensed under GPL, either version 2 of the License, or (at your option) any later version.

The default feed image (images/feed.png) was taken from the Silk icon set and is licensed under a Creative Commons Attribution 2.5 License.

Personal tools