You are not logged in.

#76 2008-04-14 11:10:53

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: conky configs and screenshots!

soul.. wrote:
ST.x wrote:

^ wow, awesome, that's a monster!

yours good styling smile am - monster ? big_smile I'm surprised

hehe I like yours, more info is good if its important to you.

Offline

#77 2008-04-20 04:01:15

toomanymirrors
Member
Registered: 2007-11-06
Posts: 15

Re: conky configs and screenshots!

I started with drakosha's first post and added a few things and changed some alignments.
Here is the .conkyrc file, it uses two other scripts that just go in your user's ~.conky/ directory. Make sure you chmod +x .conky/now_playing.rb .conky/wether.sh too.
Here's the screenshot:

  
background no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=10
xftalpha 0.8
update_interval 5.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
double_buffer yes
minimum_size 280
draw_shades yes
draw_outline no
draw_graph_borders yes
stippled_borders 8
border_margin 4
border_width 1
maximum_width 160
default_color darkgrey
default_shade_color black
default_outline_color black
alignment tr
gap_x 4
gap_y 4
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no

TEXT
${font size=14}${color #5b6dad}${alignc}${time %-l:%M %p}
${font size=12}${alignc}${execi 300 ~/.conky/weather.sh 30310}
${alignc}${time %A %e %B}${font}${alignc}${execi 999 cal}
${font size=12}${color #5b6dad}${kernel} ${alignr}${uptime_short}
${font}${color #5b6dad}CPU: ${alignc}${color grey}$cpu%
${color #5b6dad} ${cpugraph 16,140 000000 7f8ed3}
${color #5b6dad}RAM: ${alignr}$color$mem/$memmax
${color #5b6dad} ${membar 6,140}
${color #5b6dad}Swap:${alignr}$color$swap/$swapmax
${color #5b6dad} ${swapbar 6,140}
${color #5b6dad}ETH0 Down:${alignr}$color${downspeed eth0}k/s
${color #5b6dad} ${downspeedgraph eth0 16,140 000000 7f8ed3 150}
${color #5b6dad}ETH0 Up:${alignr}$color${upspeed eth0}k/s
${color #5b6dad} ${upspeedgraph eth0 16,140 000000 7f8ed3 18}
${color #5b6dad}File systems:
${color #5b6dad}  / ${alignr}$color${fs_free /}
${color #5b6dad} ${fs_bar 6,140 /}
${color #5b6dad}  Home ${alignr}$color${fs_free /home}
${color #5b6dad} ${fs_bar 6,140 /home}
${color #5b6dad}  TV ${alignr}$color${fs_free /mnt/TV}
${color #5b6dad} ${fs_bar 6,140 /mnt/TV}
${color #5b6dad}  Movies ${alignr}$color${fs_free /mnt/movies}
${color #5b6dad} ${fs_bar 6,140 /mnt/movies}
${color #5b6dad}Processes:${alignr}$color$processes | $running_processes
${color}Cpu usage   ${alignr}CPU
${color #ddaa00} ${top name 1}${alignr}${top cpu 1}
${color #5b6dad} ${top name 2}${alignr}${top cpu 2}
${color #5b6dad} ${top name 3}${alignr}${top cpu 3}
${color #5b6dad} ${top name 4}${alignr}${top cpu 4}
${color}Mem usage${alignr}MEM
${color #ddaa00} ${top_mem name 1}${alignr}${top_mem mem 1}
${color #5b6dad} ${top_mem name 2}${alignr}${top_mem mem 2}
${color #5b6dad} ${top_mem name 3}${alignr}${top_mem mem 3}
${color #5b6dad} ${top_mem name 4}${alignr}${top_mem mem 4}
${alignc}${color #5b6dad}Connections
$color In: ${tcp_portmon 1 32767 count}  Out: ${tcp_portmon 32768 61000 count}${alignr}
${alignc}${color #5b6dad}Now Playing:
${color}${execi 5 ~/.conky/now_playing.rb}
${exec feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`}

This is weather.sh from http://bbs.archlinux.org/viewtopic.php?id=37381

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
        echo
        echo "USAGE: weather.sh <locationcode>"
        echo
        exit 0;
fi
curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'

This is the script I use to display what is playing on Amarok

#!/usr/bin/ruby

# by Brian Carper
# http://briancarper.net
#
# This script gets the currently playing artist
# and title from Amarok via DCOP.
#
# We trap STDERR because Amarok dumps an error to
# STDERR if nothing is playing, and I don't want
# conky to spew error text into my console (or
# anywhere else).

# Wrap to 35 characters at most, but break only
# at word boundaries.
def wrap(text)
    text.gsub(/[^\n]{1,22}(?=\s|$)/, "\\0\n")
end

stderr_bak = STDERR
STDERR.reopen('/dev/null', 'w')
output = `dcop amarok player nowPlaying`

if output.match(/\S/) then
    puts wrap(output)
else
    puts 'Nothing.'
end
STDERR = stderr_backup

Offline

#78 2008-05-15 00:08:22

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: conky configs and screenshots!

I've been searching and experimenting with the stippled border trying to get it to funtion as a line between text. I can get close with the offset funtion but the results are not so good. I guess it's just not designed to be used that way?

Last edited by Leigh (2008-05-15 00:09:38)


-- archlinux 是一个极好的 linux

Offline

#79 2008-05-15 03:09:48

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

I have seen this basic question asked before, but there was no answer?

I have been trying to find out if it is possible to make conky stay on top of other windows?  I have read the conky man page & poked about in other places, but can't find an obvious answer (to me anyway).

The purpose is to have a clock that is located on the screen so that it remains visible on top of any full screen title bars that happen along.

I can do this with the xfce4-panel, but I (currently at least) don't need a panel & feel it is a waste of resources to run one just for it's easy to locate (though ugly, because you can't make it's little window transparent) clock.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#80 2008-05-17 23:29:49

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: conky configs and screenshots!

My almost finished conky config.
I like to use moc, and my roomy likes using mpd + sonata, so I wanted conky to be able to display both mpd and moc output identically.

Edit: Even though the moc scripts work, using execi to call them with conky creates a endless loop. I don't really like not being able to completely close moc while conky is running. For now, it doesn't bother me much.

Edit 2. The moc scripts cause random errors in moc when scrolling files and directories. for now, I removed the moc entries my in conky config.

conky2.png

# conky config last updated 05/15/2008 (Allison)

# Notes.....

# "hddtemp" is needed for displaying disk temperatures.
# The hddtemp daemon needs started, and disks need to be listed
# in the /etc/config.d/hddtemp file. Then as normal user
# I'm able to get valid output with "hddtemp /dev/sda" or /dev/sdb.

# Scripts used for MOC cli player to duplicate mpd's output:
# mocinfo
# mocstate
# mocbitrate
# moctotaltime
# moccurrenttime
# I fiddled and fiddled creating them using the mocinfo script as
# reference. They probably need to be cleaned up, but they work.

# For mass-editing Colours:
# Latest colors used...
# Normal text ......... #CCCCCC
# Semi enhanced ....... #FFFFFF
# Highlighted ......... #89FFFF
# Borders / lines ..... #53B9BD

background no
use_xft yes
xftfont DejaVu Sans Mono:size=10
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 280 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 4
border_width 1
draw_borders no
default_color white
default_shade_color black
default_outline_color black
alignment top_right
maximum_width 388
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer yes
mpd_host localhost
mpd_port 6600

TEXT
${color #53B9BD}  | ${color #89FFFF}${font DejaVu Sans Mono:size=10}.::Allison....${time %B %e %G}....${time %T}::.
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  |- ${color #89FFFF}MPD${color #53B9BD}......${color #89FFFF}${mpd_status}${color #53B9BD}.......${color #89FFFF}${mpd_bitrate} Kbps
${color #53B9BD}  |- ${color #FFFFFF}${mpd_artist} - ${mpd_title}
${color #53B9BD}  |- ${color #CCCCCC}Length  ${color #89FFFF}${mpd_length}             ${color #CCCCCC}Elapsed  ${color #89FFFF}${mpd_elapsed}
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  |- ${color #89FFFF}MOC${color #53B9BD}......${color #89FFFF}${execi 10 ~/mocscripts/conky/mocstate}${color #53B9BD}.......${color #89FFFF}${execi 10 ~/mocscripts/conky/mocbitrate}
${color #53B9BD}  |- ${color #FFFFFF}${execi 10 ~/mocscripts/conky/mocinfo}
${color #53B9BD}  |- ${color #CCCCCC}Length  ${color #89FFFF}${execi 1 ~/mocscripts/conky/moctotaltime}             ${color #CCCCCC}Elapsed  ${color #89FFFF}${execi 1 ~/mocscripts/conky/moccurrenttime}
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  | ${color #89FFFF}.::System::.
${color #53B9BD}  |- ${color #CCCCCC}${sysname} Kernel${color #53B9BD}........${color #CCCCCC}${execi 1000 cat /etc/sabayon-release} $kernel $machine
${color #53B9BD}  |- ${color #CCCCCC}Intel(R) Pentium(R) D   CPU0   ${freq_g cpu1} GHz
${color #53B9BD}  |- ${color #CCCCCC}Intel(R) Pentium(R) D   CPU1   ${freq_g cpu2} GHz
${color #53B9BD}  |- ${color #CCCCCC}CPU0 ${color #FFFFFF}${cpu cpu1}% ${color #18696C}${cpubar cpu1}
${color #53B9BD}  |- ${color #CCCCCC}CPU1 ${color #FFFFFF}${cpu cpu2}% ${color #18696C}${cpubar cpu2}
${color #53B9BD}  |- ${color #CCCCCC}RAM  ${color #FFFFFF}$memperc% ${color #18696C}${membar}
${color #53B9BD}  |- ${color #CCCCCC}Ram  Total${color #53B9BD}................. ${color #CCCCCC}${memmax}
${color #53B9BD}  |- ${color #CCCCCC}CPU  temp${color #53B9BD}.................. ${color #CCCCCC}throttled
${color #53B9BD}  |- ${color #CCCCCC}Sys  Uptime${color #53B9BD}................ ${color #CCCCCC}${uptime}
${color #53B9BD}  |- ${color #CCCCCC}Sys  Load${color #53B9BD}.................. ${color #CCCCCC}${loadavg 1} - ${loadavg 3}
${color #53B9BD}  |- ${color #CCCCCC}Ram  Buffered${color #53B9BD}.............. ${color #CCCCCC}${buffers}
${color #53B9BD}  |- ${color #CCCCCC}Ram  Catched${color #53B9BD}............... ${color #CCCCCC}${cached}
${color #53B9BD}  |- ${color #CCCCCC}hd0  sda${color #53B9BD}................... ${color #CCCCCC}temp ${color #89FFFF}${hddtemp /dev/sda}
${color #53B9BD}  |- ${color #CCCCCC}hd1  sdb${color #53B9BD}................... ${color #CCCCCC}temp ${color #89FFFF}${hddtemp /dev/sdb}
${color #53B9BD}  |- ${color #CCCCCC}sda1 ${color #FFFFFF} ${fs_free_perc /boot}% ${color #18696C}${fs_bar 6 /boot}
${color #53B9BD}  |-------------${color #CCCCCC}Total ${fs_size /boot}  Used ${fs_used /boot}
${color #53B9BD}  |- ${color #CCCCCC}sda3 ${color #FFFFFF} ${fs_free_perc /}% ${color #18696C}${fs_bar 6 /}
${color #53B9BD}  |-------------${color #CCCCCC}Total ${fs_size /}  Used ${fs_used /}
${color #53B9BD}  |- ${color #CCCCCC}sdb4  ${color #FFFFFF}${fs_free_perc /home/lianli/sdb4}% ${color #18696C}${fs_bar 6 /home/lianli/sdb4}
${color #53B9BD}  |-------------${color #CCCCCC}Total ${fs_size /home/lianli/sdb4}  Used ${fs_used /home/lianli/sdb4}
${color #53B9BD}  |- ${color #CCCCCC}sda2 ${color #FFFFFF} $swapperc% ${color #18696C}${swapbar}
${color #53B9BD}  |- ${color #CCCCCC}Read... ${diskio_read /dev/sda}   Write... ${diskio_write /dev/sda}
${color #53B9BD}  |- ${color #CCCCCC}Upload Kb/s  ${upspeedf eth0}Download Kb/s  ${downspeedf eth0}
${color #53B9BD}  |- ${color #CCCCCC}Inbound: ${color #FFFFFF}${tcp_portmon 1 32767 count}    ${color #CCCCCC}Outbound: ${color #FFFFFF}${tcp_portmon 32768 61000 count}    ${color #CCCCCC}Total: ${color #FFFFFF}${tcp_portmon 1 65535 count}
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  | ${color #89FFFF}.::GPU0::...::Screen0::...::1680x1050::.
${color #53B9BD}  |- ${color #CCCCCC}Nvidia${color #53B9BD}...... ${color #CCCCCC}Geforce 7900${color #53B9BD}...... ${color #CCCCCC}512 MB
${color #53B9BD}  |- ${color #CCCCCC}PCI-E${color #53B9BD}....... ${color #CCCCCC}Bus ID 1:0:0${color #53B9BD}...... ${color #CCCCCC}temp ${color #89FFFF}${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}C
${color #53B9BD}  |- ${color #CCCCCC}Monitor${color #53B9BD}..... ${color #CCCCCC}Dell 2005${color #53B9BD}......... ${color #CCCCCC}DFP
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  | ${color #89FFFF}.::GPU1::...::Screen1::...::1680x1050::.
${color #53B9BD}  |- ${color #CCCCCC}Nvidia${color #53B9BD}...... ${color #CCCCCC}Geforce 6800${color #53B9BD}....... ${color #CCCCCC}256 MB
${color #53B9BD}  |- ${color #CCCCCC}PCI-E${color #53B9BD}....... ${color #CCCCCC}Bus ID 4:0:0${color #53B9BD}....... ${color #CCCCCC}temp ${color #89FFFF}${execi 30 nvidia-settings -q [gpu:1]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}C
${color #53B9BD}  |- ${color #CCCCCC}Monitor${color #53B9BD}..... ${color #CCCCCC}Dell 2005${color #53B9BD}.......... ${color #CCCCCC}DFP
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  | ${color #89FFFF}.::GPU2::...::Screen2::...::1280x1024::.
${color #53B9BD}  |- ${color #CCCCCC}Nvidia${color #53B9BD}...... ${color #CCCCCC}Geforce MX 440${color #53B9BD}..... ${color #CCCCCC}64 MB
${color #53B9BD}  |- ${color #CCCCCC}PCI${color #53B9BD}......... ${color #CCCCCC}Bus ID 3:4:0${color #53B9BD}....... ${color #CCCCCC}temp Null
${color #53B9BD}  |- ${color #CCCCCC}Monitor${color #53B9BD}..... ${color #CCCCCC}NEC Multisync${color #53B9BD}...... ${color #CCCCCC}CRT
  ${color #53B9BD}|${stippled_hr 2 1}
${color #53B9BD}  | ${color #89FFFF}.::Processes::.
${color #53B9BD}  |- ${color #89FFFF}Names...            PID     CPU%    MEM%
${color #53B9BD}  |-  ${color #CCCCCC}${top name 1}   ${top pid 1}  ${top cpu 1}  ${top mem 1}
${color #53B9BD}  |-  ${color #CCCCCC}${top name 2}   ${top pid 2}  ${top cpu 2}  ${top mem 2}
${color #53B9BD}  |-  ${color #CCCCCC}${top name 3}   ${top pid 3}  ${top cpu 3}  ${top mem 3}
${color #53B9BD}  |- ${color #89FFFF}Mem usage... 
${color #53B9BD}  |-  ${color #CCCCCC}${top_mem name 1}   ${top_mem pid 1}  ${top_mem cpu 1}  ${top_mem mem 1}
${color #53B9BD}  |-  ${color #CCCCCC}${top_mem name 2}   ${top_mem pid 2}  ${top_mem cpu 2}  ${top_mem mem 2}
${color #53B9BD}  |-  ${color #CCCCCC}${top_mem name 3}   ${top_mem pid 3}  ${top_mem cpu 3}  ${top_mem mem 3}

The scrips to display moc status

mocinfo

#!/bin/sh

  TITLE="`mocp -i | grep 'Title:' | sed -e 's/^.*: //'`";
  if [ "$TITLE" != "" ]; then
    ARTIST="`mocp -i | grep 'Artist:' | sed -e 's/^.*: //'`";
    SONGTITLE="`mocp -i | grep 'SongTitle:' | sed -e 's/^.*: //'`";
    if [ "$ARTIST" != "" ]; then ARTIST="$ARTIST - "; fi
    echo $ARTIST $SONGTITLE
  else echo ' -'
  fi

mocstate

#!/bin/sh

  TITLE="`mocp -i | grep 'Title:' | sed -e 's/\*//'`";
 if [ "$TITLE" != "" ]; then
    STATE="`mocp -Q %state`";
    if [ "$STATE" != "" ]; then STATE="$STATE"ING; fi
    echo $STATE
  else echo 'Stopped'
  fi

mocbitrate

#!/bin/sh

  TITLE="`mocp -i | grep 'Title:' | sed -e 's/\*//'`";
 if [ "$TITLE" != "" ]; then
    BITRATE="`mocp -Q %b`";
    if [ "$BITRATE" != "" ]; then BITRATE="$BITRATE kbps"; fi
    echo $BITRATE
  else echo '0 kbps'
  fi

moctotaltime

#!/bin/sh

  TITLE="`mocp -i | grep 'Title:' | sed -e 's/^.*: //'`";
  if [ "$TITLE" != "" ]; then
    TOTALTIME="`mocp -i | grep 'TotalTime:' | sed -e 's/^.*: //'`";
    if [ "$TOTALTIME" != "" ]; then TOTALTIME="$TOTALTIME"; fi
    echo $TOTALTIME
  else echo '0:00'
  fi

moccurrenttime

#!/bin/sh

  TITLE="`mocp -i | grep 'Title:' | sed -e 's/^.*: //'`";
  if [ "$TITLE" != "" ]; then
    CURRENTTIME="`mocp -i | grep 'CurrentTime:' | sed -e 's/^.*: //'`";
    if [ "$CURRENTTIME" != "" ]; then CURRENTTIME="$CURRENTTIME"; fi
    echo $CURRENTTIME
  else echo '0:00'
  fi

Last edited by Leigh (2008-05-20 01:27:51)


-- archlinux 是一个极好的 linux

Offline

#81 2008-05-18 07:25:06

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: conky configs and screenshots!

nowhere near done yet, but here's what i have so far...

Edit: Image removed... if I can find it again, I'll repost it.

and the code

# 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 right
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5
maximum_width 230
# 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

# Default colors and also border colors, grey90 == #e5e5e5
default_color lightgrey

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 30

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color steelblue}SYSTEM ${hr 2}$color
$nodename ${alignr}$sysname $kernel on $machine

${color steelblue}CPU ${hr 2}$color
${freq}MHz   ${alignr}Uptime:$color $uptime
$cpubar
${cpugraph 000000 ffffff}
Processes:$color $processes   Running: $running_processes 

Highest CPU:
${top cpu 1} - ${top name 1}
${top cpu 2} - ${top name 2}
${top cpu 3} - ${top name 3}

Highest RAM:
${top_mem mem 1} - ${top_mem name 1}
${top_mem mem 2} - ${top_mem name 2}
${top_mem mem 3} - ${top_mem name 3}

${color steelblue}MEMORY / DISK ${hr 2}$color
RAM:   $memperc%   ${membar 6}$color
Swap:  $swapperc%   ${swapbar 6}$color

Root:  ${fs_free_perc /}%   ${fs_bar 6 /}$color
Home:  ${fs_free_perc /home}%   ${fs_bar 6 /home}$color

${color steelblue}NETWORK (${addr wlan0}) ${hr 2}$color
Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0 
25,140 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

Last edited by Ghost1227 (2010-05-14 21:54:19)


.:[My Blog] || [My GitHub]:.

Offline

#82 2008-05-18 11:00:21

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: conky configs and screenshots!

I've seen in quite a few screenshots displaying of various combinations of: hostname, kernel version, processor type and family, etc. I'm just curious, what is the reasoning behind this? Do you need conky to constantly remind you of your kernel version or hostname or of various (usually) unchanging aspects of your hardware?

Actually, to tell you the truth, I'm not sure I can find many situations under which conky is actually useful. So it's constantly displaying memory and CPU usage.. why would you want it to do that? What are you doing with the various other pieces of info conky may display?

Last edited by sniffles (2008-05-18 11:02:23)

Offline

#83 2008-05-18 12:45:19

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

sniffles wrote:

I've seen in quite a few screenshots displaying of various combinations of: hostname, kernel version, processor type and family, etc. I'm just curious, what is the reasoning behind this? Do you need conky to constantly remind you of your kernel version or hostname or of various (usually) unchanging aspects of your hardware?

Actually, to tell you the truth, I'm not sure I can find many situations under which conky is actually useful. So it's constantly displaying memory and CPU usage.. why would you want it to do that? What are you doing with the various other pieces of info conky may display?

I spent a week playing around with conky about a 2 years ago, it was good fun creating different setups & all that. 

These days I find that I really have no need for anything that it does accept it's date & time, which I'd love to know how to keep as the top layer on my screen? smile

There are many reasons why someone may be very interested in the degree of usage / temperature of certain parts of their hardware...  & conky surely does a great job of displaying these stat's.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#84 2008-05-18 14:21:58

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: conky configs and screenshots!

handy wrote:

I have seen this basic question asked before, but there was no answer?

I have been trying to find out if it is possible to make conky stay on top of other windows?  I have read the conky man page & poked about in other places, but can't find an obvious answer (to me anyway).

The purpose is to have a clock that is located on the screen so that it remains visible on top of any full screen title bars that happen along.

I can do this with the xfce4-panel, but I (currently at least) don't need a panel & feel it is a waste of resources to run one just for it's easy to locate (though ugly, because you can't make it's little window transparent) clock.

Have you tried

own_window yes
own_window_hints above

Seemed to work fine with a quick test setup. Check man conky for the rest of the hints.
Sakari

Offline

#85 2008-05-18 14:42:47

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

sm4tik wrote:

Have you tried

own_window yes
own_window_hints above

Seemed to work fine with a quick test setup. Check man conky for the rest of the hints.
Sakari

Yes I have tried that, it does not work unfortunately, the windows of my app's still conceal the conky date & time?


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#86 2008-05-18 15:40:53

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: conky configs and screenshots!

sniffles wrote:

I've seen in quite a few screenshots displaying of various combinations of: hostname, kernel version, processor type and family, etc. I'm just curious, what is the reasoning behind this? Do you need conky to constantly remind you of your kernel version or hostname or of various (usually) unchanging aspects of your hardware?

Actually, to tell you the truth, I'm not sure I can find many situations under which conky is actually useful. So it's constantly displaying memory and CPU usage.. why would you want it to do that? What are you doing with the various other pieces of info conky may display?

For me, having things like CPU usage and RAM is pretty important, since sometimes when i'm compiling something i can tell when it's done without having to constantly check that specific terminal. Also, if I see that my processor is at 100% and there's no reason for it to be, I can fix the problem easily. And knowing what song you're playing with mpd+ncmpc is nice smile

But yea i have no idea why knowing the kernel version at a glance is useful... but hey, then again wobbly windows are completely pointless, and yet everyone with compiz uses them smile

Offline

#87 2008-05-18 15:52:57

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: conky configs and screenshots!

Yup, cpu usage and ram are definately usefull. I like to see hd space and network traffic too.

Hd space running out is a bad thing ^^ network traffic for obvious reasons.

Offline

#88 2008-05-18 16:01:23

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: conky configs and screenshots!

handy wrote:
sm4tik wrote:

Have you tried

own_window yes
own_window_hints above

Seemed to work fine with a quick test setup. Check man conky for the rest of the hints.
Sakari

Yes I have tried that, it does not work unfortunately, the windows of my app's still conceal the conky date & time?

..Strange. My test conkyrc looked like this

own_window yes
own_window_hints above,sticky
TEXT
${time}

and it seemed to work. Didn't mess around with it longer than that though.. Do you mind posting your current conkyrc? I'll get back to it when my wife's not on her computer, I've only fvwm installed.

Sakari

Offline

#89 2008-05-18 16:03:52

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: conky configs and screenshots!

sniffles wrote:

I've seen in quite a few screenshots displaying of various combinations of: hostname, kernel version, processor type and family, etc. I'm just curious, what is the reasoning behind this? Do you need conky to constantly remind you of your kernel version or hostname or of various (usually) unchanging aspects of your hardware?

Actually, to tell you the truth, I'm not sure I can find many situations under which conky is actually useful. So it's constantly displaying memory and CPU usage.. why would you want it to do that? What are you doing with the various other pieces of info conky may display?

Many people from time to time use my computer for various things. Normally these people haven't a clue as to what kind of system they're messing with. I'll open what ever apps they need and let them do thier thing. Besides that, I think it's helpful being reminded about various resources. at least for me it is. If I don't feel like being reminded about that stuff, it's certainly no big deal to just close conky and open it when ever I'm curious.

Last edited by Leigh (2008-05-18 16:05:14)


-- archlinux 是一个极好的 linux

Offline

#90 2008-05-19 05:41:18

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

sm4tik wrote:

..Strange. My test conkyrc looked like this

own_window yes
own_window_hints above,sticky
TEXT
${time}

and it seemed to work. Didn't mess around with it longer than that though.. Do you mind posting your current conkyrc? I'll get back to it when my wife's not on her computer, I've only fvwm installed.

Sakari

Thanks sm4tik for your interest in this little problem :-)

my conkyrc follows:

Code:

default_color 9C6518
default_shade_color black
default_outline_color black

# 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 AvantGarde LT Medium:size=20
#xftfont Domestic Manners:size=64
#xftfont Impact:size=56
#xftfont AXswar:size=56

xftalpha 1.0
# out_to_console no
# out_to_console no
mail_spool $MAIL
update_interval 3.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_colour 111111
own_window_hints above,sticky   ##,undecorated,skip_taskbar,skip_pager
double_buffer yes
minimum_size 0 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_margin 0
border_width 0

alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 0

uppercase no
override_utf8_locale no
use_spacer no

TEXT
${time %a %d %b %H:%M}


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#91 2008-05-20 20:40:39

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: conky configs and screenshots!

@handy
Let me just be sure I understood your problem correctly. You want conky to be on top of your windows all the time, (as in top layer, not like a panel located on top of the desktop) because your config does just that here?! The only exception was when ALT+F11 fullscreening apps. Either I'm very lucky or you're very unlucky.
Me puzzled...?

Offline

#92 2008-05-21 00:34:32

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

sm4tik wrote:

@handy
Let me just be sure I understood your problem correctly. You want conky to be on top of your windows all the time, (as in top layer, not like a panel located on top of the desktop) because your config does just that here?! The only exception was when ALT+F11 fullscreening apps. Either I'm very lucky or you're very unlucky.
Me puzzled...?

I believe you understand correctly.  I would like to have the conky date & time sit on my desktop in a position that if an app' like Firefox is running full screen, I would be able to see the date & time in Firefox's title bar.

As it is now, I'm using pypanel to make the space above the Firefox title bar, with the conky date/time positioned up one end.  (The reason I'm using conky instead of the pypanel date/time, is that the numerals in the pypanel clock overwrite themselves as they change!) roll


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#93 2008-06-28 07:50:28

amdarch64
Member
Registered: 2008-06-02
Posts: 67

Re: conky configs and screenshots!

I have a Phenom Quad core - is there a conky file compatible for me ?


freetards and fosstards visit http://linuxhaters.blogspot.com/

Offline

#94 2008-08-01 18:22:27

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: conky configs and screenshots!

Here is my conky . The only thing I dont have completed is the temperatures of each processor. Some of the code came from various sources. Also, I couldnt figure out how to use scrot to take a picture of just conky so I had to chop off the part of the desktop with gimp. The top conky is at the top-middle part of my screen.

Enjoy

conkyqh6.png
Here is a link to original one so you can see what it looks like fullscreen:
732880_bigthumb.png

Conky configs: Conkyrc  Update script  Modified conky-res

I borrowed the conky-res script from muunleit http://bbs.archlinux.org/viewtopic.php? … 34#p393234 Nice work muunleit

Thanks

Last edited by securitybreach (2008-08-01 19:46:26)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#95 2008-08-02 08:10:33

babypuncher
Member
From: .au
Registered: 2007-03-12
Posts: 114
Website

Re: conky configs and screenshots!

conkygq3.png
Minimalist config.

background no
own_window yes
own_window_transparent yes
own_window_type desktop
double_buffer yes
update_interval 1

use_xft yes
xftfont nu:size=8
xftalpha 0.5

border_margin 2
border_width 2
alignment bottom_right
gap_x 2
gap_y 2

TEXT
${color #606060}$acpitemp${color #404040}°C / ${color #606060}${battery}

Hardly worth posting, but thats all I need conky for nowdays.

Offline

#96 2008-08-02 10:31:11

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: conky configs and screenshots!

Hi folks!

I made some modifications to a Conky script I found here that didn't work for me, so I studied some sed and turned it into two scripts, one for Yahoo weather and one for general xml rss feeds. I hope they can be of use for someone.

The weather script:

#!/bin/bash
# Modified for Yahoo weather by Peter Thorstenson
# Based on a script written by Peter Garceau
# Originally based on the RDF Feed Display Script by Hellf[i]re v0.1
# 
# This script is designed for the Yahoo Weather XML RSS.
# Substitute "BRXX0201" with the code for your location
# This script depends on curl.
# pacman -Sy curl
#
# Usage:
# .conkyrc:    ${execi [time] /path/to/script/rss-weather.sh}


#RSS Setup
#the URI to the xml page 
URI=http://xml.weather.yahoo.com/forecastrss?p=BRXX0201\&u=c

#number of lines to display
LINES=5 

#Path to curl
EXEC="/usr/bin/curl -s"                

#Work Start
$EXEC $URI | sed -n -e '/<!\[CDATA\[/,/\]\]>/p' |  #print text between "<![CDATA[" and "]]>"
sed -e 's/<!\[CDATA\[//g' |                        #remove "<![CDATA[" to leave only clean html tags
sed -e 's/\]\]>//g' |                              #remove "]]>" for the same reason
sed -e 's/<[^>]*>//g' |                            #remove all html tags
head -n $(($LINES + 2)) |                          #trim off useless lines
tail -n $LINES

The XML RSS Feed script:

#!/bin/bash
# Modified by Peter Thorstenson
# on a script written by Peter Garceau which was
# based on the RDF Feed Display Script by Hellf[i]re v0.1
#
# This script is designed for xml rss feed used by BBC News.
# Also works with several other xml rss providers.
# 
# This script depends on curl.
# pacman -Sy curl
#
# Usage:
# .conkyrc:    ${execi [time] /path/to/script/conky-rss.sh}
#
# Usage Example        
#        ${execi 300 /home/youruser/scripts/rss.sh}


################## RSS Setup ####################
#URI of RSS Feed
URI=http://www.archlinux.org/feeds/packages/

#Number of headlines
LINES=7

#Number of lines before headlines begins
OFFSET=1   
                  
#Path to curl
EXEC="/usr/bin/curl -s"

########### This is where it's done ##############
$EXEC $URI | sed -e 's/<!\[CDATA\[//g' |         #remove eventual "<![CDATA[" to leave only clean html tags
sed -e 's/\]\]>//g' |                            #remove "}}>" to leave only clean html tags
tr -d '\n' |                                     #remove all linefeeds
sed -e 's/<\/title>/<\/title>\n/g' |             #insert linefeed
sed -n -e 's/.*<title>\(.*\)<\/title>.*/\1/p' |  #print only whats between title tags
head -n $(($LINES + $OFFSET)) |                  #trim head
tail -n $LINES                                   #trim tail

Enjoy! smile

Last edited by thunderogg (2008-08-02 10:32:38)

Offline

#97 2008-08-02 18:39:33

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: conky configs and screenshots!

Made a new tree linke one.

07_02_2008_by_PurposeOfReason.png

background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont Myraid Pro:pixelsize=10
own_window_transparent no
xftalpha 1.0
update_interval 1
own_window no
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_color f0f0f0
default_shade_color grey
default_outline_color black
gap_x 3
gap_y 3
alignment top_left
no_buffers yes
uppercase no
text_buffer_size 256


TEXT
   +--system
   |    |
   |    +--date: ${time %a,} ${time %B %e, %G}
   |    +--time: ${time %H:%M}
   |
   +--status
   |    |
   |    +--cpu
   |        |
   |        +--Intel Q6600
   |        +--frequency: ${freq}Mhz
   |        +--core1
   |            |
   |            +--thermal: ${execi 6 /usr/bin/sensors | grep Core\ 0| paste -s | cut -c15-16,19-20}
   |            +--usage: ${cpu cpu1}% ${goto 126}${cpugraph cpu1 8,50}
   |
   |        +--core2
   |            |
   |            +--thermal: ${execi 6 /usr/bin/sensors | grep Core\ 1| paste -s | cut -c15-16,19-20}
   |            +--usage: ${cpu cpu2}% ${goto 126}${cpugraph cpu2 8,50}
   |
   |        +--core3
   |            |
   |            +--thermal: ${execi 6 /usr/bin/sensors | grep Core\ 2| paste -s | cut -c15-16,19-20}
   |            +--usage: ${cpu cpu3}% ${goto 126}${cpugraph cpu3 8,50}
   |
   |        +--core4
   |            |
   |            +--thermal: ${execi 6 /usr/bin/sensors | grep Core\ 3| paste -s | cut -c15-16,19-20}
   |            +--usage: ${cpu cpu4}% ${goto 126}${cpugraph cpu4 8,50}
   |
   |    +--gpu
   |        |
   |        +--nVidia GeForce 9600GT
   |        +--thermal: ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}˚C
   |
   +--resources
   |    |
   |    +--capacity
   |        |
   |        +--arch: ${fs_free_perc /}% ${fs_bar 8,50 /}
   |        +--boot: ${fs_free_perc /boot}% ${fs_bar 8,50 /boot}
   |        +--bsd: ${fs_free_perc /bsd}% ${fs_bar 8,50 /bsd}
   |        +--gentoo: ${fs_free_perc /gentoo}% ${fs_bar 8,50 /gentoo}
   |        +--storage: ${fs_free_perc /storage}% ${fs_bar 8,50 /storage}
   |        +--vista: ${fs_free_perc /vista}% ${fs_bar 8,50 /vista}
   |
   |    +--memory
   |        |
   |        +--$memperc% ${membar 8,50}
   |
   +--network
   |    |
   |    +--down: ${downspeed eth0} k/s ${goto 120}${downspeedgraph eth0 8,60}
   |    +--up:   ${upspeed eth0} k/s ${goto 110}${upspeedgraph eth0 8,60}
   |
   +--mpd
   |   |
   |   +--artist: $mpd_artist
   |   +--title:  $mpd_title
   |   +--${mpd_bar 8,150}
   |   +--$mpd_status
   |
   +--weather
       |
${execi 1800 /home/shawn/.scripts/weather.sh 98374}

Offline

#98 2008-08-02 20:25:59

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: conky configs and screenshots!

Looks good! Is that the weather script I posted you are using?

Last edited by thunderogg (2008-08-02 20:26:42)

Offline

#99 2008-08-02 20:48:06

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: conky configs and screenshots!

thunderogg wrote:

Looks good! Is that the weather script I posted you are using?

It's one I found a year ago. I can try yours out to see what I can do with it if you'd like.

Mine:
http://ubuntuforums.org/showpost.php?p= … tcount=100

Last edited by Reasons (2008-08-02 20:49:41)

Offline

#100 2008-08-02 21:09:41

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: conky configs and screenshots!

I was just wondering because the output looks the same. smile The code is a lot different though. I missed that one. I thought I had looked everywhere.

Offline

Board footer

Powered by FluxBB