You are not logged in.

#1 2011-12-17 09:29:54

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Can Conky really look this good?


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#2 2011-12-17 14:55:03

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Can Conky really look this good?

The third one, I'm sure of that is possible; you can find a description here: http://arpinux.org/x/doku.php/start:conky

A nice set of conky scripts if you like desktop bling bling.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#3 2011-12-17 15:13:34

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Can Conky really look this good?

Well I am looking at Conky Clock at the moment, it does look like bling

Reminds me of the old adesklets


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#4 2011-12-27 23:24:04

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Can Conky really look this good?

I just made a simple conky yesterday, actually I broke it up & made it into two separate parts. (Even so it took me all day!)

A couple of pictures of my Arch setup can be found here: http://www.users.on.net/~thehands/my-ve … -arch.html

If you need to you can RMB click on the screenshot you want to view & choose "View Image" from the Firefox menu, it will show in its own window where you can enlarge the image. They are a bit blurry as the software I use to make the web page decided to change their size for that particular kind of page layout.


In reply to you Mr Green, during my very recent conky study I learned that using lua & conky-lua: https://aur.archlinux.org/packages.php?ID=31589

Seems to be a requirement for many of the more exotic looking conky configs.


Boring as I may be, I don't desire the exotic in computer desktops, as I just need my (all) computers to be easy on my eyes, a result that I have mostly achieved on my own machines at least.

Below is a ~/.conkyrc & a 2nd ~/.conky2 script that are both from my 4 core box, the twin core is just the same thing modified where necessary. Below them is a bash script that is essential for the weather forecast to work, on my system it's path is ~/.conky/3.weathers.sh .

The reason I broke up the initial .conkyrc was because I really needed to have a wider space for some of the weather output, even though the following .conkyrc is pretty wide to start with. Anyway, it is always courses for horses. smile I've left the original few lines in .conkyrc they are just edited out (if anyone is interested in it anyway. lol):

## ~/.conkyrc for 1600x1200, 4x CPU, has simple weather  
## edited out & now incorporated in the ~/.conky2 which runs
## simultaneously.
##
## both start easily in ~/.config/openbox/autostart like this:
## 
## conky &
## conky -c .conky2 &
## 
## without the hash "#" signs of course. :)
##
## the essential bash weather script path is ~/.conky
## /3.weathers.sh


background no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=18
xftalpha 0.8
update_interval 3.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 50 5
maximum_width 500
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_width 1
default_color white
default_shade_color black
default_outline_color black
color1 slategrey
color2 ffffff
color3 7d7d7d
alignment top_left
gap_x 30
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
max_port_monitor_connections 256

TEXT
#${font Sans:bold:size=17}${color1}${time %A, %d %B %Y}  ${alignr}${time %T}
#
#${color3}${alignc}${execi 300 /home/handy/.conky/3.weathers.sh "OCN|AU|NSW|SYDNEY|"}
#
${font Sans:bold:size=17}${color1}
Kernel: ${color1}$kernel${color3}       ${alignr}Uptime: ${color1}$uptime 
${color3}Frequency: ${color1}${alignr}$freq_g GHz

${alignc}${color3}CPU Cores:${color1}

${cpu cpu0}% ${cpubar cpu0 10,190}${alignr}${cpu cpu1}% ${alignr}${cpubar cpu1 10,190}
${cpu cpu2}% ${cpubar cpu2 10,190}${alignr}${cpu cpu3}% ${alignr}${cpubar cpu3 10,190}


${color3}RAM: ${color1}${alignr}$memperc% ${alignr}${color1}${membar 15,350}

${color3}Disks:${alignr}sda:  ${execi 10 hddtemp /dev/sda |cut -c28-32}

${color1}/: ${alignr}${fs_used_perc /} % ${alignr}${fs_bar 10,200 /}
/home: ${alignr}${fs_used_perc /home} % ${alignr}${fs_bar 10,200 /home}
/spacy-2: ${alignr}${fs_used_perc /mnt/spacy-2} % ${alignr}${fs_bar 10,200 /mnt/spacy-2}


${color3}${alignc}Network:
${color1}Down: ${alignr}${downspeed eth0} k/s
Up:      ${alignr}${upspeed eth0} k/s
Total Down: ${alignr}${totaldown eth0}
Total Up: ${alignr}${totalup eth0}


${color3}Top Processes:${alignr}CPU   MEM${color1}

${top name 1} ${alignr} ${top cpu 1} ${top mem 1}
${top name 2} ${alignr} ${top cpu 2} ${top mem 2}
${top name 3} ${alignr} ${top cpu 3} ${top mem 3}
${top name 4} ${alignr} ${top cpu 4} ${top mem 4}
${top name 5} ${alignr} ${top cpu 5} ${top mem 5}

${color3}${alignc}System Log
${hr 1}
${font Sans:normal:size=13}${color1}${exec dmesg | uniq | tail -n 5}

This is the now separated date, time & weather section (tips for getting your location code for the weather are in the beginning of the 3.weathers.sh script that follows this one):

## weather & time for 1600x1200 res':

background no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=18
xftalpha 0.8
update_interval 3.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 50 5
maximum_width 1600
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_width 1
default_color white
default_shade_color black
default_outline_color black
color1 slategrey
color2 ffffff
color3 7d7d7d
alignment top_left
gap_x 760
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
max_port_monitor_connections 256

TEXT
${font Sans:bold:size=17}${color1}
${time %A, %d %B %Y}  ${alignr}${time %T}


${color3}${alignc}${execi 300 /home/handy/.conky/3.weathers.sh "OCN|AU|NSW|SYDNEY|"} 

This is a modified script that gives me a fairly simple weather forecast that is called by .conky2 above:

# !/usr/bin/bash
#
## I used www.accuweather.com to get the weather for my 
## location, it is free to use.
##
## be sure to place the location code you use inside of quotes
## like this: 3.weathers.sh "OCN|AU|NSW|SYDNEY|"
## if you don't use the quotes then it won't work.


METRIC=1 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
    echo "USAGE: 3.weathers.sh like so - OCN|AU|NSW|SYDNEY|"
    exit 0;
fi

wget -q http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 -O - | awk \
'/Currently:/ {CurWeather=$0}
/[0-9] Forecast<\/title>/ {nr=NR+5}
NR==nr    {postIndx[++x]=$0}
# x>2    {exit}
END{
    split(CurWeather,tmp,"Currently: ")
    split(tmp[2],tmp1,"<")
    CurWeather=sprintf("%s",tmp1[1])
    sub(":",",",CurWeather)
    for(x in postIndx){
    split(postIndx[x],tmp,";|&")
    split(tmp[1],tmp,">")
    split(tmp[2],statement," C ") # substitute C for F if metric differs
    split(tmp[2],temp)
    forecast[++y]=sprintf("%d-%dC %-15s",temp[5],temp[2],statement[3])
    }
#    printf("WEATHER: %s\n%s\n%s",CurWeather,forecast[1],forecast[2])
    printf("WEATHER:\nNow: %s\nToday: %s\nTomorrow: %s",CurWeather,forecast[1],forecast[2])
}' 

For any new conky users, you should know a few very simple things that can help a beginner get started. It is very easy to position the conky displays via changing the numbers in the following items that are all found in the first sections of any .conkyrc or secondary conky file that is being called, though of course not in any scripts such as the weather one above:

maximum_width <number here>
gap_x <number here>
gap_y <number here>

Beyond the above, if you change the size of the font you may want to then alter the above 3, particularly maximum_width.

Just play around with the numbers & as you get used to the simple script you can find that you have found another way to make your days disappear... wink


[edit:] I've added the use of hddtemp you have to have it installed to make use of this.

Also use this command on hddtemp to make it free of needing sudo:  $  sudo chmod u+s /usr/sbin/hddtemp . Then run this command: $ hddtemp /dev/sda which will give you too much info', so then you have to count & cut, this works for me: hddtemp /dev/sda |cut -c28-32 giving me 31C with the degrees symbol too. smile I'll get around to updating the screenshot another day.


[edit2:] Here is a couple of screenshots of a complicated weather forecast.lua conky that I over the last couple of days, with some good help I might add:


http://www.users.on.net/~thehands/windowshot.html

Last edited by handy (2011-12-31 07:24:48)

Offline

#5 2011-12-28 05:26:17

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Can Conky really look this good?

Thanks for the write up and please add a screen shot, for example at http://imgur.com/


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#6 2011-12-28 20:09:17

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Can Conky really look this good?

pablokal wrote:

Thanks for the write up and please add a screen shot, for example at http://imgur.com/

I edited my previous post & added a link to photos just for you pablokal. smile

I added a picture of my desktop & another of my custom Worker setup to my web site which was initially setup to make images available to another forum that I belong to.

Its my website & I can put whatever I want on it, slot cars & Arch Linux! lol

Offline

#7 2011-12-28 23:41:18

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Can Conky really look this good?

I've added hddtemp to the script & an edit for anyone interested or who may benefit from it. I'll update the screenshots another time.

Last edited by handy (2011-12-29 04:20:24)

Offline

#8 2011-12-29 05:07:27

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Can Conky really look this good?

Thanks!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#9 2011-12-29 08:51:23

ratcheer
Member
Registered: 2011-10-08
Posts: 114

Re: Can Conky really look this good?

I wish I understood this stuff. hmm

Tim

Offline

#10 2011-12-29 09:24:42

Kruppt
Moderator
From: Blue Ridge Mountains, NC
Registered: 2010-12-20
Posts: 299

Re: Can Conky really look this good?

@Handy
Thanks

Offline

#11 2011-12-29 09:47:42

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Can Conky really look this good?

Add to wiki please Handy

Thanks for sharing


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB