Conkyrc_main
PHP Code:
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft no
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
# minimum_size 250 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 9
# border width
border_width 10
#show borders around the graphs
draw_graph_borders no
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_colour brown
own_window_transparent yes
# 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
gap_x 10
gap_y 10
# stuff after 'TEXT' will be formatted on screen
TEXT
$color
${color #FF4E00}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine
UpTime: ${uptime} Load: ${loadavg}
${color #FF4E00}CPU ${hr 2}$color
${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
Temp: ${acpitemp}C CPU: ${freq}mhz
${cpugraph cpu0 000000 FF4E00}
CPU0: ${cpu cpu1}%
${cpubar cpu1}
CPU1: ${cpu cpu2}%
${cpubar cpu2}
Processes:${color #C0C8CD} $processes ${color #C0C8CD} Running:${color #C0C8CD} $running_processes
NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #FF4E00}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color
NAME PID CPU% MEM%
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
Ubuntu: ${fs_free /}/${fs_size /} ${fs_bar 6 /}
Vista : ${fs_free /media/Vista}/${fs_size /media/Vista} ${fs_bar 6 /media/Vista}$color
${color #FF4E00}BATTERY ${hr 2}$color
Power:${alignr}${color}${acpiacadapter}
Status:${alignr}${color}${battery BAT0}
Time:${alignr}${color}${battery_time BAT0}
${color #FF4E00}NETWORK: ${execi 300 /home/kyle/.local/essid.sh} ${hr 2}$color
${addr eth0}
Signal: ${color}${linkstatus eth0}%
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 00ff00} ${alignr}${upspeedgraph eth0
25,140 000000 ff0000}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
${color #FF4E00}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50
comkyrc_amarok
PHP Code:
double_buffer yes
update_interval 1.0
background yes
own_window yes
own_window_transparent yes
own_window_type override
#own_window_type root
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
override_utf8_locale no
#xftfont Bitstream Vera Sans Mono-7:pixelsize=10A
xftfont Dejavu Sans:size=12
xftalpha 0.8
draw_shades no
draw_outline yes
draw_borders no
uppercase no
use_spacer no
border_margin 9
border_width 0
default_color white
default_outline_color #FF4E00
alignment bottom_left
gap_x 3
gap_y 32
TEXT
${if_running amarokapp}${offset 1} ${voffset 2}${execi 1 dcop amarok player currentTime} ${alignc}${execi 1 dcop amarok player title} ${execi 1 dcop amarok player artist} ${alignr}${execi 1 dcop amarok player totalTime}${voffset -2}
${color #FF4E00}${execibar 1 /home/kyle/amarok_conky.sh pro}${else} ${offset 15}
${color #FF4E00}${execibar 10 /home/kyle/amarok_conky.sh zer}$endif
conkyrc_clock
PHP Code:
# conky config
# edited by notwen @ efnet
# set to yes if you want Conky to be forked in the background
background yes
# 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 10.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 yes
# If own_window is yes, you may use type normal, desktop or override
own_window_type override
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink
# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 130 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color white
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 12
gap_y 35
# 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 =(
TEXT
${font Dejavu Sans:bold:size=15}${alignr}${color }${time %I:%M %P}
${font Dejavu Sans:bold:size=11}${alignr}${color }${time %a.} ${time %B %e, %G}
Scripts
amarok-conky.sh
PHP Code:
#!/bin/bash
# amaroK info conky script
case "$1" in
pro)
stat=`dcop amarok player status`
if (( $stat == 0 )); then
expr 100
else
curr=`dcop amarok player trackCurrentTime`
tot=`dcop amarok player trackTotalTime`
if (( $tot )); then
expr $curr \* 100 / $tot
fi
fi
;;
zer)
expr 100
;;
esac
conkyalbum.display >>by way of Desklets
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<display id="d2010media" window-flags="below, sticky">
<control id="myexec" interface = "IExec:8es4mvgrwsac7mp9lexx82qs9-2"/>
<image id="pc_art" uri="" width="150" height="140" anchor="nw" x="0" y="0" />
<script><![CDATA[
def timer():
myexec.command = "dcop amarok player coverImage"
Dsp.pc_art.uri = myexec.output
return True
add_timer(2000,timer)
]]></script>
</display>
Bookmarks