You are not logged in.

#461 2017-03-31 16:45:43

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Temetka wrote:

So after revisiting my 80's conky and using S11's palm tree (resized 50% in gimp) and consulting the wife on colors as well as googling color palettes and judicious use of the gcolor2 picker and it's color code, I present this:

Note: I haven't decided if I want to add the weather in here or not. My concern is the color palette may or may not work with color schemes of Teo's png's. It would be like totally NOT cool if the colors clashed. As if. That would be majorly lame.

Sweet - the megenta is your wife's choice?

Add weather info without the images.  No conflict.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#462 2017-03-31 16:47:31

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

^ Sector11

https://forums.bunsenlabs.org/viewtopic … 148#p48148

I think this is a class of its own.
This is an artistic composition! Perfect!
Thanks for pointing to Teo's weather script. http://www.en.kolobok.us/smiles/big_standart/good2.gif

Not done with it yet, next maybe some HDD info and then the weather.

Local weather: Light today and dark tonight.   ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#463 2017-03-31 18:09:25

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

^ fvirgola80

congratulation.
Class order has the part!  wink

Offline

#464 2017-03-31 18:21:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

fvirgola80 wrote:

@ Sector11 there is a function bar.lua inside .... you tell you something? ....  big_smile  big_smile

OH YEA!  I see the bars ... 2 vertical and the rest horizontal.

Well done!  Pretty slick that.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#465 2017-03-31 18:26:18

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

I think I'm done.

The code I cleaned up again. The cpugraphen I have shortened and the utilization of the individual cores (Intel) inserted. Also the most important exchange rates for me GBP - EUR.

2017-03-31-19-17-48_scrot.th.png

When I look at the whole, a real system, the Conky still does not ...  ]:D

But no matter, here is the code

# pkill -xf "conky -c /home/$PATH/conkyrc " &  etc.
# Conky_Grey by SLK
# calendar by Sector11
# weather by TeoBigusGeekus
# works 30-03-2017 by unklar nach einer Idee von @Temetka
#

background yes
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorates,skip_taskbar,skip_pager,below   #,sticky
own_window_argb_visual yes
own_window_argb_value 140
# own_window_colour 000000
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
default_color 000000

minimum_size 540 420
maximum_width 540
gap_x 1
gap_y 135
alignment tr
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

# Color scheme #
default_color white
color0 00ffff #cain  #b22222#red
color1 ffffff #withe
color2 E8E1E6
color3 F5F24C

#---LUA---#
lua_load ~/S11/TEST/grey2.lua
lua_draw_hook_post main
lua_load ~/Lua/draw-bg.lua



TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
${font monofur:size=13}${alignc}${color3}${time %T}${font monofur:size=11}
 ${time %b %Y}${alignr 15}Woche ${time %V}${color}
${alignc}${if_match ${time %u}==1}${color0}Mo${color1} Di Mi Do Fr Sa So ${else}\
${if_match ${time %u}==2}${color1}Mo ${color0}Di${color1} Mi Do Fr Sa So${else}\
${if_match ${time %u}==3}${color1}Mo Di ${color0}Mi${color1} Do Fr Sa So${else}\
${if_match ${time %u}==4}${color1}Mo Di Mi ${color0}Do${color1} Fr Sa So${else}\
${if_match ${time %u}==5}${color1}Mo Di Mi Do ${color0}Fr${color1} Sa So${else}\
${if_match ${time %u}==6}${color1}Mo Di Mi Do Fr ${color0}Sa${color1} So${else}\
${if_match ${time %u}==7}${color1}Mo Di Mi Do Fr Sa ${color0}So${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color1}${execpi 1800 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color1}
${voffset -50} ${color1}£ ${color0}${execpi 90 grep "EUR to GBP" /media/DATEN/francescoPC/Conky/Conky-Kalender/Waehrungen/convert/eur.tmc.txt | cut -c12-17}${color} ${alignr 15}€ ${color0}${execpi 90 grep "GBP to EUR" /media/DATEN/francescoPC/Conky/Conky-Kalender/Waehrungen/convert/gbp.tmc.txt | cut -c12-17}${color1}${voffset 50}
${font Ubuntu:size=8}${goto 30}CPU${goto 125}RAM${goto 222}ROOT${goto 335}UP${goto 425}DOWN



  ${cpu cpu0}%   ${freq_g}  ${hwmon 1 temp 2}°\
${goto 101}${mem} / ${memmax}\
${goto 200}${fs_used /} / ${fs_size /}\
${goto 310}${totalup eth0} / ${upspeed eth0}\
${goto 410}${totaldown eth0} / ${downspeed eth0}
  Core 0 ${cpugraph cpu1 7,20 EEEEEE A8A8A8}  ${cpu cpu1}\
${goto 100}${memgraph 6,60 ffffff ffffff}\
${goto 200}${diskiograph 6,70 ffffff ffffff}\
${goto 310}${upspeedgraph eth0 6,60}\
${goto 410}${downspeedgraph eth0 6,60}
  Core 1 ${cpugraph cpu2 7,20 EEEEEE A8A8A8}  ${cpu cpu2}\
${goto 200}HD I/O ${diskio}/s \
${alignr 25}LAN ${addr eth0}
  Core 2 ${cpugraph cpu3 7,20 EEEEEE A8A8A8}  ${cpu cpu3}
  Core 3 ${cpugraph cpu4 7,20 EEEEEE A8A8A8}  ${cpu cpu4}
  Fan ${alignc}${color3}${hwmon 0 fan 1}${color1} | ${color3}${hwmon 0 fan 2}${color1} | ${color3}${hwmon 0 fan 3}${color1} | ${color3} ${hwmon 0 fan 4}

${color ffe595}${hr}
${execi 900 bash $HOME/1_accuweather_Deutsch/1_accuweather_Deutsch}
${goto 20}${font monofur:size=10}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/first_days}${goto 120}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/first_days}${goto 220}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/first_days}${goto 310}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/first_days}${goto 420}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/first_days}${color1}${image $HOME/1_accuweather_Deutsch/1.png -p 10,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/2.png -p 120,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/3.png -p 220,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/4.png -p 310,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/5.png -p 420,365 -s 45x45}

${goto 60}${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/first_days}°${goto 170}${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/first_days}°${goto 270}${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/first_days}°${goto 360}${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/first_days}°${goto 470}${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 60}/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/first_days}°${goto 170}/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/first_days}°${goto 270}/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/first_days}°${goto 360}/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/first_days}°${goto 470}/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/first_days}°

Teo's German-Script

#!/bin/bash

#put your Accuweather address here
address="http://www.accuweather.com/de/de/lichtenstein/09350/weather-forecast/171261"
#address="http://www.accuweather.com/de/us/new-york-ny/10017/weather-forecast/349727"
#address="http://www.accuweather.com/de/in/kolkata/206690/weather-forecast/206690"
#address="http://www.accuweather.com/de/gr/kastoria/178682/weather-forecast/178682"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
	
#function: test_image
test_image () {
    case $1 in
         1)
           echo a
         ;;
         2|3)
           echo b 
         ;;
         4|5)
           echo c
         ;;
         6)
           echo d
         ;;
         7)
           echo e
         ;;
         8)
           echo f
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo m
         ;;
         16|17)
           echo k
         ;;
         18)
           echo i
         ;;
         19)
           echo q
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo v
         ;;
         26)
           echo x
         ;;
         29)
           echo y
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|35)
           echo B
         ;;
         36|37)
           echo C
         ;;
         38)
           echo D
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
         *)
		   echo -
		 ;;   
        esac
} 


kill -STOP $(pidof conky)
killall wget

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/curr_cond_raw "$curr_addr"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/first_days_raw "$addr1"

addr2="$addr1"?day=6
wget -O $HOME/1_accuweather_Deutsch/last_days_raw "$addr2"

rm $HOME/1_accuweather_Deutsch/*.png

#current conditions
if [[ -s $HOME/1_accuweather_Deutsch/curr_cond_raw ]]; then
    sed -i '/detail-now/,/Astronomie <span class/!d' $HOME/1_accuweather_Deutsch/curr_cond_raw
    egrep -i '"cond"|icon i-|large-temp|small-temp|wind-point|"wind"|Luftfeuchtigkeit|Luftdruck|UV-Index|Wolkendecke|Ceiling|Taupunkt|Sichtweite|Dauer|Sonnenaufgang:|Sonnenuntergang:|Mondaufgang:|Monduntergang:' $HOME/1_accuweather_Deutsch/curr_cond_raw > $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/^.*<strong>//g' -e 's/^.*<span>//g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*<\/em> //g' -e 's/^.*"cond">//g' -e 's/^.*wind-point //g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/">.*$//g' -e 's/&deg.*$//g' -e 's/<\/span>.*$//g' -e 's/&#.*$//g' -e 's/ &darr.*$//g' -e 's/ &uarr.*$//g' -e 's/<\/strong>.*$//g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i '1s/-.*$//' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
    image=$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond)
    echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/curr_cond
    cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond).png $HOME/1_accuweather_Deutsch/0.png
fi

#First 5 days
if [[ -s $HOME/1_accuweather_Deutsch/first_days_raw ]]; then

    sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/first_days_raw
    egrep -i 'href="#"|icon i-|"large-temp"|"small-temp"|temp-label|"cond"' $HOME/1_accuweather_Deutsch/first_days_raw > $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' -e 's/^.*"temp-label tonight selected">//g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&deg.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/first_days)
          echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/first_days
	  done
	j=1
	for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/first_days).png $HOME/1_accuweather_Deutsch/$j.png
	      ((j++))
	  done
fi

#Next 5 days
if [[ -s $HOME/1_accuweather_Deutsch/last_days_raw ]]; then
	
	sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/last_days_raw
    egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather_Deutsch/last_days_raw > $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&deg.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/last_days)
          echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/last_days
	  done
	j=6
	for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/last_days).png $HOME/1_accuweather_Deutsch/$j.png
	      ((j++))
	  done
fi
date +%T > $HOME/1_accuweather_Deutsch/aktualisiert
kill -CONT $(pidof conky)

The Forecast_Images_2016 please about Teo's main page.  wink  https://forums.bunsenlabs.org/viewtopic.php?id=189

Last edited by unklar (2017-03-31 18:44:56)

Offline

#466 2017-03-31 18:52:33

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

I think I'm done.

You mean for the moment right! O:)

Looking good ... one quick question what does "H abd" mean?


In place of "Heute, jetzt oder Freitag"


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#467 2017-03-31 19:14:03

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Sector11 wrote:

one quick question what does "H abd" mean?

In place of "Heute, jetzt oder Freitag"

tonight
Therefore also "TT °"
Tiefsttemperatur (low temperature)  big_smile

The discussion I had with Teo. wink

Offline

#468 2017-03-31 20:02:17

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Tonight - DUH!  I should have known   smile
Totally missed the TT though.  Thanks.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#469 2017-03-31 20:12:21

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

^ We are getting old. (We are not old!)  ]:D

Offline

#470 2017-03-31 20:20:29

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

HA!

67 years for a cabbage is OLD!
67 years for a mountain is not even at the birth pains stage.
67 years for a man is just right!

O:)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#471 2017-04-06 00:03:49

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Well here it is, Temetka's 80s Sunsent - Sector11 Style.
Thank you Temetka!

2017-04-05_202933_Scrot11.th.png

Code can be found here in Teo's weather thread.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#472 2017-04-06 05:27:15

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: Show us your conky

Looks good. A tad hard to read on the rose, but that could just be my eyes. Beautiful wallpaper also.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#473 2017-04-11 17:48:41

SBruleMD
Member
Registered: 2017-02-12
Posts: 9

Re: Show us your conky

Based on this setup.

Looks like this:
Screenshot-04042017-111613PM.th.png

# branchy-conky

text_buffer_size 2048

background yes
use_xft yes
xftfont DejaVu sans mono:pixelsize=12
font DejaVu sans mono:pixelsize=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_width 0
default_color d9d9d9
default_shade_color d9d9d9
default_outline_color d9d9d9
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer right
maximum_width 500


TEXT
${alignr}$font                         
${alignr}$font                         
${alignr}$font ▽                        
${alignr}$font │                        
${alignr}$font └───${font DejaVu sans mono:pixelsize=12:weight=bold}bunsenlabs$font────────┐  
${alignr}$font │  
${alignr}$font ${time %H:%M} ${font DejaVu sans mono:pixelsize=12:weight=bold}cst$font─┤  
${alignr}$font ${time %a} / ${time %d %b}─┤  
${alignr}$font ${utime %H:%M} ${font DejaVu sans mono:pixelsize=12:weight=bold}utc$font─┤  
${alignr}$font │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}sys$font─┤  
${alignr}$font ${kernel} ${font DejaVu sans mono:pixelsize=12:weight=bold}krnl$font─┤   │  
${alignr}$font $uptime ${font DejaVu sans mono:pixelsize=12:weight=bold}uptime$font─┘   │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}cpu$font─┤  
${alignr}$font ${hwmon temp 1}${font DejaVu sans mono:pixelsize=12:weight=bold}temp$font─┤   │  
${alignr}$font ${freq 1}mhz / ${cpu 1}% cpu1─┤   │  
${alignr}$font ${freq 2}mhz / ${cpu 2}% cpu2─┘   │  
${alignr}$font │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}sda$font─┤  
${alignr}$font $diskio_read  read─┤   │  
${alignr}$font $diskio_write write─┤   │  
${alignr}$font $swap/$swapmax swap─┤   │  
${alignr}$font ${swapbar 5,150}│   │  
${alignr}$font ${fs_used /}/${fs_size /} root─┘   │  
${alignr}$font ${fs_bar 5,150 /}    │  
${alignr}$font │  
${alignr}$font ram─┤  
${alignr}$font $mem/$memmax $memperc% ─┘   │  
${alignr}$font ${membar 5,150}    │  
${alignr}$font │  
${alignr}$font net─┤  
${alignr}$font ${if_up tun0}${color3}online${else}offline${endif}${color1} vpn─┤   │  
${if_up wlan0}${alignr}$font ${upspeed wlan0} ul─┤   │  
${alignr}$font ${upspeedgraph wlan0 12,150 E4DF5F AA0E12}│   │  
${alignr}$font ${downspeed wlan0} dl─┘   │  
${alignr}$font ${downspeedgraph wlan0 12,150 E4DF5F AA0E12}    │  ${else}${alignr}$font ${upspeed eth0} ul─┤   │  
${alignr}$font ${upspeedgraph eth0 12,150 E4DF5F AA0E12} │   │  
${alignr}$font ${downspeed eth0} dl─┘   │  
${alignr}$font ${downspeedgraph eth0 12,150 E4DF5F AA0E12}     │  ${endif}
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font ┌──────────────────┘  
${alignr}$font ┌─┴────────────────┐    
${alignr}$font │   ${font DejaVu sans mono:pixelsize=12:weight=bold}don't panic!$font   │    
${alignr}$font └──────────────────┘    

Offline

#474 2017-04-11 19:01:26

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

^  Sweet!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#475 2017-04-12 00:07:23

j3rzu
Member
From: Slough, UK
Registered: 2017-04-10
Posts: 23

Re: Show us your conky

That's all what I need smile

bn_j3rzu.th.png


UNIT: HP PAVILION 15 (2014)
SPEC: INTEL CORE i5-4288U CPU @ 2.60GHz // 8 GB RAM // INTEL HD4400 // HDD 1,5TB
SYSTEM: BunsenLabs 8.7 (Hydrogen)
..:: THERE ARE NO IMPOSSIBLE THINGS - THERE ARE ONLY PEOPLE WHO CAN'T DO SOMETHING ::..

Offline

#476 2017-04-15 02:23:38

Sun For Miles
Member
Registered: 2017-04-12
Posts: 262

Re: Show us your conky

forum.th.png

One of the first things I do with fresh installations is setting up Conky. smile I edited Seamod v0.1 to fit my preferences. It will probably get edited couple more times, but I am pleased enough to share this with community.

1) copy files to respective folders: .conkyrc to ~/.config/conky/ and .lua to ~/.config/conky/LUA/
2) if your wireless adapter name is different than "wlan0" then edit .conkyrc; if your CPU has more than 2 cores, edit .lua and uncomment core #3 and #4 and add more if you want

.conkyrc source:

#==============================================================================
#                               conkyrc_seamod
# Date    : 05/02/2012
# Author  : SeaJey
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# 
# This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
# 
# conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 30
gap_y 70
minimum_size 150 600
maximum_width 300
own_window yes
#own_window_type override
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
#own_window_class conky-semi
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr


draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no

# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 C9621D
# Green
color5 77B753

# Loading lua script for drawning rings
lua_load ~/.config/conky/LUA/seamod_rings.lua
lua_draw_hook_post main


# Header
TEXT
${font Ubuntu:size=10,weight:bold}${color3}${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color2}${alignr}uptime: $uptime


${voffset 20}
${offset 15}${font Ubuntu:size=10,weight:bold}${color2}${alignr}${voffset 20}CPU
# Showing TOP 5 CPU-consumers
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%
# Showing CPU Graph
${voffset 5}${offset 110}${cpugraph 40,183 666666 666666}

#Showing memory part with TOP 5
${voffset 20}
${offset 90}${font Ubuntu:size=10,weight:bold}${color2}${alignr}MEM
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%

# Network data 
${voffset 20}
${offset 90}${font Ubuntu:size=10,weight:bold}${color2}${alignr}WIFI
${voffset 10}             
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed wlan0} / ${totalup wlan0}
${offset 15}${upspeedgraph wlan0 40,285 666666 666666 -l}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed wlan0} / ${totaldown wlan0}
${offset 15}${downspeedgraph wlan0 40,285 666666 666666 -l}

# Footer
${color3}${hr 2}

.lua source:

--==============================================================================
--                            seamod_rings.lua
--
--  Date    : 05/02/2012
--  Author  : SeaJey
--  Version : v0.1
--  License : Distributed under the terms of GNU GPL version 2 or later
--
--  This version is a modification of lunatico_rings.lua wich is modification of conky_orange.lua 
--
--  conky_orange.lua:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
--  lunatico_rings.lua:  http://gnome-look.org/content/show.php?content=142884
--==============================================================================

require 'cairo'


--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=100,                          y=130,
    graph_radius=54,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=64,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=100,                          y=130,
    graph_radius=48,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
--{
--    name='cpu',                    arg='cpu2',                  max_value=100,
--    x=100,                          y=130,
--    graph_radius=20,
--    graph_thickness=5,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
--    txt_radius=30,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='',
--    caption_weight=1,              caption_size=9.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
--},
--{
--    name='cpu',                    arg='cpu3',                  max_value=100,
--    x=100,                          y=130,
--    graph_radius=14,
--    graph_thickness=5,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
--    txt_radius=4,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='',
--    caption_weight=1,              caption_size=9.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
--},
{
    name='memperc',                arg='',                      max_value=100,
    x=100,                          y=330,
    graph_radius=54,
    graph_thickness=10,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=42,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1,              caption_size=10.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
--{
--    name='fs_used_perc',           arg='/media/Data',                     max_value=100,
--    x=70,                          y=470,
--    graph_radius=54,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
--    txt_radius=64,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=23,
--    graduation_thickness=0,        graduation_mark_thickness=2,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Data',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
--{
--    name='fs_used_perc',           arg='/home/',                     max_value=100,
--    x=70,                          y=470,
--    graph_radius=42,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
--    txt_radius=32,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=23,
--    graduation_thickness=0,        graduation_mark_thickness=2,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Home',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
--{
--    name='fs_used_perc',           arg='/',                     max_value=100,
--    x=70,                          y=470,
--    graph_radius=30,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
--    txt_radius=22,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=23,
--    graduation_thickness=0,        graduation_mark_thickness=2,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Root',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
--{
--    name='downspeedf',           arg='wlan0',                     max_value=100,
--    x=70,                          y=660,
--    graph_radius=54,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
--    txt_radius=64,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Down',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
--{
--    name='upspeedf',           arg='wlan0',                     max_value=100,
--    x=70,                          y=660,
--    graph_radius=42,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
--    txt_radius=30,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Up',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end


-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end


-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    if conky_window == nil then 
        return
    end

    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local display = cairo_create(cs)
    
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    
    if update_num > 5 then
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end

Mod Note: oversized image replaced with thumbnail link, please limit images to ~250x250px
-HoaS

Last edited by Head_on_a_Stick (2017-04-16 10:18:48)


Señor Chang, why do you teach Spanish?

Offline

#477 2017-04-15 19:04:14

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

A few days ago someone posted a "text" conky with lines and text.  Today being a slow day in the homestead I was looking through some conkys and came across an old one from my AMD single core CPU and a 17" screen ... so here I am tweaking it.
Sneak peek ... code when done:
2017-04-15_151436_Scrot11.th.png
Still in the TWEAKING stage so ... and the CPU usage :  This is conky #18 that is running here, when, if, you try it; your mileage WILL vary.

Like this, closed them all down, have FF open at this post, 2 instances of medit and this one conky:
2017-04-15_160043_Scrot11.png
Later folks...


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#478 2017-04-15 21:04:27

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,854

Re: Show us your conky

Sector11 wrote:

A few days ago someone posted a "text" conky with lines and text.  Today being a slow day in the homestead I was looking through some conkys and came across an old one from my AMD single core CPU and a 17" screen ... so here I am tweaking it.
Sneak peek ... code when done:
https://cdn.scrot.moe/images/2017/04/15/2017-04-15_151436_Scrot11.th.png
Still in the TWEAKING stage so ... and the CPU usage :  This is conky #18 that is running here, when, if, you try it; your mileage WILL vary.

Like this, closed them all down, have FF open at this post, 2 instances of medit and this one conky:
https://cdn.scrot.moe/images/2017/04/15 … crot11.png
Later folks...

Nice! When you are done, would you mind sharing please MR S11?


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#479 2017-04-15 21:48:03

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Dobbie03 wrote:
Sector11 wrote:

Sneak peek ... code when done:

Nice! When you are done, would you mind sharing please MR S11?

roll  MR! roll Noooo please not that!

Of course, just like I said above.  I developed it with "xftfont monofur:bold:10" because I like the curved affect the ASCII graphics have. Plus I really like that font.  This is a composite with five other fonts (names at the bottom of each)  Fira Mono is there twice, one at size=8 and one at 8.5 --> nice as well.

The done deal.  There's a few weird things in there that will need adjusting.
2017-04-15_182537_Scrot11.th.png
Like sensors and the inxi call for HDD info.  Need help, just ask.

S11_All-Txt.conky

# pkill -xf "conky -q -c /media/5/Conky/S11_All-Txt.conky" &

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title S11
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 150

minimum_size 260 900	## w|h
maximum_width 260	## w

gap_x 10	### l|r
gap_y 10	### u|d

alignment tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Anonymous Pro:size=9
xftfont monofur:bold:size=10
#xftfont Sans Mono:size=9
#xftfont Liberation Mono:bold:size=9
#xftfont Fantasque Sans Mono:bold:size=10
#xftfont Fira Mono:bold:size=8.5

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

#default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed  #FF0000 #255   0   0	Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 512

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
#short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
#pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
#max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

# Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value if
# you use $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

top_name_width 6

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
# lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.1
#
# TEXT
#
#######################################################  End LUA Settings  ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1



## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣

## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░  ▒  ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©

TEXT
┌─ Time
│${goto 26}├─ Local${goto 110}${time %T}
│${goto 26}├─ UTC ${goto 110}${utime %H:%M}
│${goto 26}├─ Boot${goto 110}${exec who -b | cut -c23-}
│${goto 26}└─ Uptime${goto 110}${uptime}
│
├─ System
│${goto 26}├─ OS${goto 110}${pre_exec lsb_release -is} ${pre_exec lsb_release -rs}
│${goto 26}├─ Kernel ${goto 110}${kernel}
│${goto 26}└─ Machine${goto 110}${machine}
│
├─ Memory
│${goto 26}├─ Total${goto 110}${memmax}
│${goto 26}├─ In Use${goto 110}${mem} (${memperc}%)
│${goto 26}├─ Free${goto 110}${memfree}
│${goto 26}├─ Up to${goto 110}${memeasyfree} easy free
│${goto 26}├─ Swap
│${goto 26}│${goto 45}├─ Total${goto 110}${swapmax}
│${goto 26}│${goto 45}├─ Used${goto 110}${swap} ${swapperc}%
│${goto 26}│${goto 45}└─ Free${goto 110}${swapfree}
│${goto 26}├─ Ram${goto 110}${memperc}%
│${goto 26}└─ LoadAvg${goto 110}${loadavg}
│
├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU 0${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
│${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}└─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
│
├─ Sensors
│${goto 26}├─ CPU${goto 110}${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU Fan${goto 110}${platform f71882fg.2560 fan 1} RPM
│${goto 26}├─ M|B${goto 110}${execi 15 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
│${goto 26}├─ SDA${goto 110}${hddtemp /dev/sda}°
│${goto 26}└─ GPU${goto 110}${nvidia temp}°
│
├─ HDD Status
│${goto 26}├─ Disk${goto 110}${execi 30 inxi -D |grep 'Size'| cut -c28-47}
│${goto 26}├─ Diskio ${goto 110}${diskio}
│${goto 26}│${goto 45}├─ Read${goto 110}${diskio_read}
│${goto 26}│${goto 45}└─ Write${goto 110}${diskio_write}
│${goto 26}├─ /ROOT${goto 110}${fs_free /}${goto 170}/ ${fs_size /}
│${goto 26}├─ /HOME${goto 110}${fs_free /home}${goto 170}/ ${fs_size /home}
│${goto 26}├─ /M/5${goto 110}${fs_free /media/5}${goto 170}/ ${fs_size /media/5}
│${goto 26}└─ /M/10${goto 110}${fs_free /media/10}${goto 170}/ ${fs_size /media/10}
│
├─ Processes
│${goto 26}├─ Total${goto 110}${processes}
│${goto 26}├─ Running${goto 110}${running_processes}
│${goto 26}│
│${goto 26}├─ CPU
│${goto 26}│${goto 45}├─ ${top name 1}${goto 110}${top cpu 1}${top mem 1}
│${goto 26}│${goto 45}├─ ${top name 2}${goto 110}${top cpu 2}${top mem 2}
│${goto 26}│${goto 45}└─ ${top name 3}${goto 110}${top cpu 3}${top mem 3}
│${goto 26}│
│${goto 26}└─ MEM
│${goto 45}├─ ${top_mem name 1}${goto 110}${top_mem cpu 1}${top_mem mem 1}
│${goto 45}├─ ${top_mem name 2}${goto 110}${top_mem cpu 2}${top_mem mem 2}
│${goto 45}└─ ${top_mem name 3}${goto 110}${top_mem cpu 3}${top_mem mem 3}
│
└─ Net
${goto 26}├─ eth0${goto 110}${addr}
${goto 26}├─ Up
${goto 26}│${goto 45}├─ Speed${goto 110}${upspeed eth0}
${goto 26}│${goto 45}└─ Total${goto 110}${totalup eth0}
${goto 26}│
${goto 26}└─ Down
${goto 45}├─ Speed${goto 110}${downspeed eth0}
${goto 45}└─ Total${goto 110}${totaldown eth0}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#480 2017-04-15 22:21:06

miharkula
Member
Registered: 2016-05-20
Posts: 20

Re: Show us your conky

How do you get those special characters (like │ and ├─) to display? They show up as squares for me.

Offline

Board footer

Powered by FluxBB