summaryrefslogtreecommitdiffstats
path: root/gentoo.conf
blob: b9920378a24d58ab43f0e4a8ec42fca9a25a3df3 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
update_interval 5
alignment top_left
own_window		yes
own_window_transparent	no
own_window_type		override
own_window_hints	undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour	21449c

minimum_size 1000 0
maximum_width 1000

double_buffer yes
background no

text_buffer_size 4096

use_xft yes
xftfont DejaVu Sans Mono:size=9
xftalpha 0.8
override_utf8_locale yes

gap_x 1500
gap_y 0

# 2 - standard width in characters
# 3 - network timeout 
# 5 - interactive apps (xmms)
# 6 - local apps 
# 7 - networking
# 8 - ping + remote scripts
template2 100
template3 2
template5 120
template6 300
template7 800
template8 900

#template0 ${if_match ${execi $template8 /etc/conky/scripts/ping.pl \1:3389} > 0}${color green}${else}${color red}${endif}*${color}
template0 ${lua_parse check_server_status \1 3389 -}

#lua_load /etc/conky/support.lua

TEXT
${color yellow}Gentoo ${hr}${color gray}
${color white}Last Sync        ${color gray}${execi $template6 /etc/conky/scripts/lastsync.pl}
${color white}Current Status   ${color gray}${execi $template5 /etc/conky/scripts/emerge-status.sh}
${color white}Current Progress ${color green}${execibar $template5 /etc/conky/scripts/emerge-progress.sh}
${color white}Current Packages ${color gray}${execi $template5 /etc/conky/scripts/emerge-current.sh 8 | fmt -w $template2 }

${color yellow}Security ${hr}${color gray}
${color gray}${execi $template7 rsstail -n 8 -1 -u https://security.gentoo.org/glsa/feed.rss | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $template2 }

${color yellow}New Packages ${hr}${color gray}
${color gray}${execi $template7 rsstail -n 8 -1 -u https://packages.gentoo.org/packages/added.atom | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $template2 }

${color yellow}Gentoo Planet ${hr}${color gray}
${execi $template7 rsstail -n 8 -1 -u http://planet.gentoo.org/rss20.xml | cut -d ':' -f 3- | cut -c 2- | fmt -t -w $template2 }

${color yellow}LWN Headlines ${hr}${color gray}
${execi $template7 rsstail -n 8 -1 -u http://lwn.net/headlines/rss | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $template2 }

${color yellow}IBM Developerworks ${hr}${color gray}
${execi $template7 rsstail -n 8 -1 -u 'http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=AIX&zone_by=Linux&zone_by=Open+source&type_by=Articles&type_by=Tutorials&search_by=&day=1&month=01&year=2008&max_entries=10&feed_by=rss&encoding=UTF-8&isGUI=true&Submit.x=41&Submit.y=15' | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $template2}