diff --git a/aurup.lua b/aurup.lua deleted file mode 100644 index 771d018..0000000 --- a/aurup.lua +++ /dev/null @@ -1,33 +0,0 @@ --- {{{ init environment -local wakka = {} -local capi = { - mouse = mouse, - screen = screen -} - --- {{{ display --- formats the lines for the notify -local function display() - local lines = "AUR Updates:\n" - local f = io.popen("cower -u", "r") - local s = f:read('*all') - line = lines .. "\n" .. s .. "\n" - f:close() - return line -end --- }}} --- }}} - -function wakka.addToWidget(mywidget) - mywidget:add_signal('mouse::enter', function () - usage = naughty.notify({ - text = string.format('%s', "monospace", display()), - timeout = 0, - hover_timeout = 0.5, - screen = capi.mouse.screen - }) - end) - mywidget:add_signal('mouse::leave', function () naughty.destroy(usage) end) -end - -return wakka \ No newline at end of file diff --git a/gfxtemp.lua b/gfxtemp.lua deleted file mode 100644 index 3dba7c7..0000000 --- a/gfxtemp.lua +++ /dev/null @@ -1,33 +0,0 @@ --- {{{ init environment -local wakka = {} -local capi = { - mouse = mouse, - screen = screen -} - --- {{{ display --- formats the lines for the notify -local function display() - local lines = "GFX Temp:\n" - local f = io.popen("ssh setkeh@192.168.1.8 /opt/bin/aticonfig --odgt | grep Temperature | cut -c 43-52", "r") - local s = f:read('*all') - line = lines .. "\n" .. s .. "\n" - f:close() - return line -end --- }}} --- }}} - -function wakka.addToWidget(mywidget) - mywidget:add_signal('mouse::enter', function () - usage = naughty.notify({ - text = string.format('%s', "monospace", display()), - timeout = 0, - hover_timeout = 0.5, - screen = capi.mouse.screen - }) - end) - mywidget:add_signal('mouse::leave', function () naughty.destroy(usage) end) -end - -return wakka diff --git a/gmail_parser.py b/gmail_parser.py deleted file mode 100644 index 4000a5b..0000000 --- a/gmail_parser.py +++ /dev/null @@ -1,47 +0,0 @@ -## check-gmail.py -- A command line util to check GMail -*- Python -*- -## modified to display mailbox summary for conky - -# ====================================================================== -# Copyright (C) 2006 Baishampayan Ghose -# Modified 2008 Hunter Loftis -# Time-stamp: Mon Jul 31, 2006 20:45+0530 -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# ====================================================================== - -import sys -import urllib # For BasicHTTPAuthentication -import feedparser # For parsing the feed -from textwrap import wrap - -_URL = "https://mail.google.com/gmail/feed/atom" - -uname = sys.argv[1] -password = sys.argv[2] -maxlen = sys.argv[3] - -urllib.FancyURLopener.prompt_user_passwd = lambda self, host, realm: (uname, password) - -def auth(): - '''The method to do HTTPBasicAuthentication''' - opener = urllib.FancyURLopener() - f = opener.open(_URL) - feed = f.read() - return feed - - -def readmail(feed, maxlen): - '''Parse the Atom feed and print a summary''' - atom = feedparser.parse(feed) - print '${color1} %s new email(s)\n' % (len(atom.entries)) - for i in range(min(len(atom.entries), maxlen)): - print ' ${color2}%s' % atom.entries[i].title -#uncomment the following line if you want to show the name of the sender -# print ' ${color2}%s' % atom.entries[i].author - if len(atom.entries) > maxlen: - print ' ${color}more...' - -if __name__ == "__main__": - f = auth() # Do auth and then get the feed - readmail(f, int(maxlen)) # Let the feed be chewed by feedparser diff --git a/html.lua b/html.lua deleted file mode 100644 index 3ed9469..0000000 --- a/html.lua +++ /dev/null @@ -1,95 +0,0 @@ -function HTML_ToText (text) - -- Declare variables, load the file. Make tags lowercase. - text = string.gsub (text,"(%b<>)", - function (tag) - return tag:lower() - end) - --[[ - First we kill the developer formatting (tabs, CR, LF) - and produce a long string with no newlines and tabs. - We also kill repeated spaces as browsers ignore them anyway. - ]] - local devkill= - { - ["("..string.char(10)..")"] = " ", - ["("..string.char(13)..")"] = " ", - ["("..string.char(15)..")"] = "", - ["(%s%s+)"]=" ", - } - for pat, res in pairs (devkill) do - text = string.gsub (text, pat, res) - end - -- Then we remove the header. We do this by stripping it first. - text = string.gsub (text, "(<%s*head[^>]*>)", "") - text = string.gsub (text, "(<%s*%/%s*head%s*>)", "") - text = string.gsub (text, "(,*<%/head>)", "") - -- Kill all scripts. First we nuke their attribs. - text = string.gsub (text, "(<%s*script[^>]*>)", "") - text = string.gsub (text, "(