summaryrefslogtreecommitdiffstats
path: root/gentoo.conf
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo.conf')
-rw-r--r--gentoo.conf63
1 files changed, 63 insertions, 0 deletions
diff --git a/gentoo.conf b/gentoo.conf
new file mode 100644
index 0000000..b992037
--- /dev/null
+++ b/gentoo.conf
@@ -0,0 +1,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}