evg_krsk: my canto config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from canto.extra import *
link_handler("url_handler.sh \"%u\"")
image_handler("qiv \"%u\"", fetch=True)
link_handler("xpdf \"%u\"", fetch=True, ext="pdf")
def my_resize(cfg):
cfg.columns = 2
resize_hook = my_resize
def start_hook(gui):
gui.set_collapse_all()
class show_read():
def __str__(self):
return "Show read"
def __call__(self, tag, item):
return item.wasread()
filterlist=[show_unread(), show_read(), None]
default_rate(5)
default_keep(40)
keys['x'] = ["just_read","next_item"]
keys['1'] = search(".*[Ll]inux.*", regex=True)
keys['2'] = search("Obama")
reader_keys['q'] = "quit"
reader_keys[' '] = ["destroy","next_item","reader"]
reader_keys['backspace'] = ["destroy","prev_item","reader"]
colors[0] = ("green","black")
colors[1] = ("green","black")
colors[2] = ("yellow","black")
add("http://www.24au.ru/Rss.ashx?feed=n")
add("http://www.24au.ru/Rss.ashx?feed=l&cat=1001")
add("http://www.24au.ru/Rss.ashx?feed=l&cat=1002")