from canto.extra import * import os # The format of these: # The first lookup "browser" or "image" corresponds to # or content, respectively. # The second is the extension, or "default" # Each of these is set to a tuple # tuple[0] is the program name in your path # tuple[1] is 1 if the program is a terminal based program # tuple[2] is 1 if the program needs the content to be fetched # to a temp file for it. if os.getenv("TERM") == "linux": handlers["browser"]["default"] = ("elinks \"%u\"", 1, 0) handlers["image"]["default"] = ("fbi \"%u\"", 1, 1) else: handlers["browser"]["default"] = ("iceweasel \"%u\"", 0, 0) handlers["image"]["default"] = ("xli \"%u\"", 0, 1) handlers["browser"]["pdf"] = ("evince \"%u\"", 0, 1) select_hook = set_xterm_title end_hook = clear_xterm_title # Valid values: "left" "right" "top" "bottom" or None reader_orientation = "left" # Resize hook to keep the reader size to 50% of the screen # Note that the reader_lines value will have no effect if # the reader_orientation is None. def my_resize_hook(cfg): cfg.reader_lines = cfg.width / 2 cfg.columns = (cfg.width / 2) / 70 resize_hook = my_resize_hook # Continue with older options... filterlist=[None, show_unread()] reader_keys["."] = ["destroy","next_unread","reader"] reader_keys[","] = ["destroy","prev_unread","reader"] keys['x'] = ["just_read","next_item"] keys['1'] = search(".*[Ll]inux.*", regex=True) keys['2'] = search("Obama") keys['Q'] = None #keys[' '] = ["reader","toggle_show_links"] add_feed(None, "http://rss.slashdot.org/slashdot/Slashdot") add_feed(None, "script:slashdotpolls -external") add_feed(None, "http://osnews.com/files/recent.xml") add_feed(None, "http://www.damninteresting.com/?feed=rss2") add_feed("Reddit", "http://reddit.com/.rss") add_feed("Proggit", "http://programming.reddit.com/.rss") add_feed(None, "http://lambda-the-ultimate.org/rss.xml") add_feed(None, "http://feeds.theonion.com/theonion/daily") add_feed(None, "http://syndication.thedailywtf.com/TheDailyWtf") add_feed(None, "http://stuffwhitepeoplelike.wordpress.com/feed/") add_feed(None, "http://kerneltrap.org/node/feed") add_feed(None, "http://mithridates.blogspot.com/feeds/posts/default") add_feed(None, "http://codezen.org/canto/feeds/latest") add_feed(None, "http://torvalds-family.blogspot.com/feeds/posts/default") add_feed(None, "http://reallifecomics.com/index.xml") add_feed(None, "http://www.rsspect.com/rss/threeps.xml") add_feed(None, "http://feeds.penny-arcade.com/pa-mainsite") add_feed(None, "http://www.robandelliot.cycomics.com/robandelliotrss.php") add_feed(None, "http://xkcd.org/rss.xml") add_feed(None,"http://www.change.gov/rss-blog") add_feed(None,"http://git.debian.net/?p=debian/canto.git;a=rss")