You are not logged in.
Pages: 1
Now that conky is available in the AUR, I'd like to share my conkyrc and related scripts:
~/.conkyrc:
# conky configuration
# edited by timcowchip@gmail.com
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8
# Text alpha when using Xft
xftalpha 0.8
# Print everything to console?
# out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
#minimum_size 1000 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color darkred
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 10
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(
# stuff after 'TEXT' will be formatted on screen
TEXT
${offset 240}${color slate grey}${time %a, } $alignr ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z, } $alignr ${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: $alignr ${color }$uptime
${offset 240}${color slate grey}Kern: $alignr ${color }$kernel
${offset 240}${color slate grey}CPUs: $alignr ${color } ${cpu cpu0}% ${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}%
${offset 240}${cpugraph 20,165 000000 ffffff}
${offset 240}${color slate grey}Temps:
$alignr ${color }${execpi 30 ./coretemp}
${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} $alignr ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} $alignr ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} $alignr ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} $alignr ${top name 4}${top cpu 4}
${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} $alignr ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} $alignr ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} $alignr ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} $alignr ${top_mem name 4}${top_mem mem 4}
${offset 240}${color slate grey}MEM: $alignr ${color } $memperc% $mem/$memmax
${offset 240}${membar 3,165}
${offset 240}${color slate grey}SWAP: $alignr ${color }$swapperc% $swap/$swapmax
${offset 240}${swapbar 3,165}
${offset 240}${color slate grey}ROOT: $alignr ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,165 /}
${offset 240}${color slate grey}NET:
${offset 240}${color}Up: ${color }${upspeed eth0} k/s
${offset 240}${upspeedgraph re0 20,165 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 240}${downspeedgraph re0 20,165 000000 ffffff}
${offset 240}${color slate grey}Chris@opensuse: $alignr ${color } ${execpi 30 python ~/opensuse.py}
${offset 240}${color slate grey}Timcowchip@gmail: $alignr ${color } ${execpi 30 python ~/gmail.py}
coretemp:
#!/bin/sh
echo `sysctl -n dev.cpu.0.temperature` `sysctl -n dev.cpu.1.temperature` `sysctl -n dev.cpu.2.temperature` `sysctl -n dev.cpu.3.temperature`
gmail.py:
import urllib.request
from xml.etree import ElementTree as etree
# Enter your username and password below within quotes below, in place of ****.
# Set up authentication for gmail
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_password(realm='New mail feed',
uri='https://mail.google.com/',
user= '****',
passwd= '****')
opener = urllib.request.build_opener(auth_handler)
# ...and install it globally so it can be used with urlopen.
urllib.request.install_opener(opener)
gmail = 'https://mail.google.com/gmail/feed/atom'
NS = '{http://purl.org/atom/ns#}'
with urllib.request.urlopen(gmail) as source:
tree = etree.parse(source)
fullcount = tree.find(NS + 'fullcount').text
print(fullcount + ' new')
to use conky with mbmon instead of coretemp:
replace
${offset 240}${color slate grey}Temps:
$alignr ${color }${execpi 30 ./coretemp}
${offset 240}${color slate grey}Temp:${execi 60 mbmon -c 1 | grep Temp | cut -c 7-11}C
Last edited by °C (2013-08-24 13:51:16)
Offline
Pages: 1