SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#5576 2013-06-25 21:14:02

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ rgnr

How did you determine what your temperature are?

That's why I asked in you had lm-sensors installed, you could run sensors:

 25 Jun 13 | 17:54:33 ~
    $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

CPU ${hr 2}

Core1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} $alignr${hwmon 1 temp 1}°C/${alignr}${freq 1} Mhz
Core2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60} $alignr${hwmon 2 temp 2}°C/${alignr}${freq 2} Mhz
Core3: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60} $alignr${hwmon 2 temp 3}°C/${alignr}${freq 3} Mhz
Core4: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60} $alignr${hwmon 2 temp 4}°C/${alignr}${freq 4} Mhz
CPU Average Usage:${alignr}${cpu cpu0}%
k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +30.6°C  (high = +70.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.44 V  
in1:          +1.35 V  
in2:          +1.51 V  
in3:          +0.85 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.41 V  
Vbat:         +2.86 V  
fan1:        2215 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +39.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +70.0°C, hyst = +66.0°C)  sensor = transistor
temp2:        +34.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

 
 25 Jun 13 | 17:54:38 ~
    $ 

and:

 25 Jun 13 | 17:54:38 ~
    $ inxi -s
Sensors:   System Temperatures: cpu: 41.0C mobo: 35.0C gpu: 45C 
           Fan Speeds (in rpm): cpu: 2215 fan-2: 0 fan-3: 0 
 
 25 Jun 13 | 18:11:43 ~
    $ 

Regardless of the CPU - cpu0 is an average of the 4 --- so your CPU section could be changed to this:

CPU ${hr 2}

Core1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} $alignr${hwmon 1 temp 1}°C/${alignr}${freq 1} Mhz
Core2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60} $alignr${hwmon 2 temp 2}°C/${alignr}${freq 2} Mhz
Core3: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60} $alignr${hwmon 2 temp 3}°C/${alignr}${freq 3} Mhz
Core4: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60} $alignr${hwmon 2 temp 4}°C/${alignr}${freq 4} Mhz
CPU Average Usage:${alignr}${cpu cpu0}%

NOTE: From Conky Objects freq starts from 1 not 0

freq 	(n)
 	Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

freq_g 	(n)
 	Returns CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#5577 2013-06-26 08:22:23

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Hello;
Does anybody knows how to "catch' or 'extract' the current cover playing at the radio to display in conky ?
May-be with curl , grep and wget but I can't find the good sentence...
radio nova player
current cover
The current cover changing name; thanks for help if someone is interested by this kind of function ...

Offline

#5578 2013-06-26 11:04:00

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@Sector11
I modified a little the script for radio playing with radiotray. I've made a little icon when the radio doesn't play; and add it in conky after

${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "not playing"}

ConkyRadio:

# Conky for current radio playing #

background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below

border_inner_margin 1
border_outer_margin 0

minimum_size 590 160
maximum_width 590

alignment ml
gap_x 5
gap_y -155

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_shade_color 181818

use_xft yes
xftfont Andale-Mono:size=12  ##Droid-Sans-Mono # Monofur
xftalpha 1.0
uppercase no
override_utf8_locale yes
default_color ececec

color1 606060

lua_load ~/.conky/script/image.lua

TEXT

${voffset 20}${goto 165}${font Compacta Blk BT:Italic:size=12}${color f2d873}${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "not playing"}${lua conky_fDrawImage ~/.conky/conky21/db/CD/radiotray3.png 110 -10 199 200}${else}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}
${color dodgerblue3}${goto 85}${font Lobster1.4:size=12:bold}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w55}${color}${endif}
#${voffset -50}

image.lua (for true transparency):

require 'cairo'
home = os.getenv ('HOME')

--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)

	path = string.gsub(path, "~", home)
	path = string.gsub(path, "$HOME", home)

	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
	
	local function fDrawImage(path,x,y,w,h,arc)
		x=x+(w/2)
		y=y+(h/2)
		local img =  cairo_image_surface_create_from_png(path)
		local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)

		local cr = cairo_create (cs)
		cairo_translate (cr, x, y)

		if arc then
			cairo_rotate (cr, arc)
		end

		cairo_scale (cr, w/w_img, h/h_img)
		cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
		cairo_paint (cr)
		cairo_destroy(cr)
		cairo_surface_destroy (img)
	end
	fDrawImage(path,x,y,w,h,arc)
	cairo_surface_destroy(cs)
	return ""
end

little icon
radio stop

Last edited by ragamatrix (2013-06-26 12:37:31)

Offline

#5579 2013-06-26 16:39:08

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

Hello;
Does anybody knows how to "catch' or 'extract' the current cover playing at the radio to display in conky ?
May-be with curl , grep and wget but I can't find the good sentence...
radio nova player
current cover
The current cover changing name; thanks for help if someone is interested by this kind of function ...

Tough one - that image is hidden in a script someplace.

 26 Jun 13 | 13:30:02 /media/5/LePlayer
    $ cd /media/5/LePlayer/ && wget -nd -l9 -pHEKk robots=off -A jpg,jpeg http://www.novaplanet.com/sites/default/files/imagecache/player_cover/album_cover

Ends up with:

Reusing existing connection to www.novaplanet.com:80.
HTTP request sent, awaiting response... 404 Not Found
2013-06-26 13:30:20 ERROR 404: Not Found.

And:

 26 Jun 13 | 13:30:20 /media/5/LePlayer
    $ cd /media/5/LePlayer/ && wget -nd -l9 -pHEKk robots=off -A jpg,jpeg http://www.novaplanet.com

ends up with: 19 jpgs - none of which is the currently playing album art jpg.  sad

It will take someone with much more wget kung-fu than I have ... and I got that command with Google

Google: can wget use *.jpg


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5580 2013-06-26 16:43:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11
I modified a little the script for radio playing with radiotray. I've made a little icon when the radio doesn't play; and add it in conky after

Very nice!  When I used radiotray I had it set to show when it was playing and show nothing when off.  But that's a nice little icon.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5581 2013-06-26 16:59:56

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

I updated my stamps_conky. Now it is all lua. So one can adjust and move around the single stamps without disturbing the other text. No voffsets and goto required smile

ThZasQg.png

Here is the zip archive: https://docs.google.com/uc?export=downl … m1fMTN5Ujg

I'd like to know if there are any memory leaks in the script. So if anyone is intersted, pls give it a try.

----
EDIT  11-April-2014 If you are coming here from the Conky Archives Thread, grab the code from https://github.com/easysid/conky_configs smile
----

Last edited by easysid (2014-04-11 11:22:05)

Offline

#5582 2013-06-26 17:56:21

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

easysid wrote:

I updated my stamps_conky. Now it is all lua. So one can adjust and move around the single stamps without disturbing the other text. No voffsets and goto required smile

http://i.imgur.com/ThZasQg.png

Here is the zip archive: https://docs.google.com/uc?export=downl … m1fMTN5Ujg

I'd like to know if there are any memory leaks in the script. So if anyone is intersted, pls give it a try.

Totally forgot I had the old version ... will test this - I'll run it for a few days before saying anything - unless I see 80% right away  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5583 2013-06-26 22:36:51

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

easysid wrote:

I updated my stamps_conky. Now it is all lua. So one can adjust and move around the single stamps without disturbing the other text. No voffsets and goto required smile

I'd like to know if there are any memory leaks in the script. So if anyone is intersted, pls give it a try.

Just so you know I have no ${voffset} commands in your old conky-stamps I had to edit it.

Hey, don't blame me.  I didn't want any of those mmi.. mmm ... mmmeye... mmmmeye ... micro... well you know THEIR fonts ... and I'm not an Intel user - AMD X3 here --- it's why you see 4 entries on the CPU stamp.

OH!! and while I was at it I just "had to" change the logo!  ]:D

Really interesting conkys ... now to watch the cpu usage ... New Stamps on the left, Old Stamps on the right and set to fire up tomorrow morning with the other 7 as well.  So far they are holding their owm.

2013_06_26_18_42_29_1920x1080_Sector11.jpg

Talk later. ... now to make a third example and really customize it!  8o


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5584 2013-06-27 07:44:54

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Sector11 wrote:
ragamatrix wrote:

Hello;
Does anybody knows how to "catch' or 'extract' the current cover playing at the radio to display in conky ?
May-be with curl , grep and wget but I can't find the good sentence...
radio nova player
current cover
The current cover changing name; thanks for help if someone is interested by this kind of function ...

Tough one - that image is hidden in a script someplace.

 26 Jun 13 | 13:30:02 /media/5/LePlayer
    $ cd /media/5/LePlayer/ && wget -nd -l9 -pHEKk robots=off -A jpg,jpeg http://www.novaplanet.com/sites/default/files/imagecache/player_cover/album_cover

Ends up with:

Reusing existing connection to www.novaplanet.com:80.
HTTP request sent, awaiting response... 404 Not Found
2013-06-26 13:30:20 ERROR 404: Not Found.

And:

 26 Jun 13 | 13:30:20 /media/5/LePlayer
    $ cd /media/5/LePlayer/ && wget -nd -l9 -pHEKk robots=off -A jpg,jpeg http://www.novaplanet.com

ends up with: 19 jpgs - none of which is the currently playing album art jpg.  sad

It will take someone with much more wget kung-fu than I have ... and I got that command with Google

Google: can wget use *.jpg

Kind of you to had a look on this "radio conky cover" idea; thanks.
I did Ctrl+i "medias" on the adress of the player and the path to the image might be :

http://www.novaplanet.com/sites/default/files/imagecache/player_cover/sites/all/themes/nova/images/cover-null.jpg

When no artists playing...
and when an artist playing :

http://www.novaplanet.com/sites/default/files/imagecache/player_cover/album_cover/7317.jpg

It will be in this conky something like "if match..." and "else" oder ?
To be continued...

Last edited by ragamatrix (2013-06-27 07:48:25)

Offline

#5585 2013-06-27 07:52:01

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Sector11 wrote:
ragamatrix wrote:

@Sector11
I modified a little the script for radio playing with radiotray. I've made a little icon when the radio doesn't play; and add it in conky after

Very nice!  When I used radiotray I had it set to show when it was playing and show nothing when off.  But that's a nice little icon.

Thanks smile
I had this idea just after playing with this great soft: inkscape witch you can find with synaptic or apt-get.

Last edited by ragamatrix (2013-06-27 07:52:44)

Offline

#5586 2013-06-27 07:52:44

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

Sector11 wrote:
easysid wrote:

I updated my stamps_conky. Now it is all lua. So one can adjust and move around the single stamps without disturbing the other text. No voffsets and goto required smile

Just so you know I have no ${voffset} commands in your old conky-stamps I had to edit it.

Yeah. You had showed that in a post previously smile. I was put off by the fact that whenever I made a change of font or size, all the things under that lost alignment. And I was drawing the stamps with lua anyway tongue .

Sector11 wrote:

Hey, don't blame me.  I didn't want any of those mmi.. mmm ... mmmeye... mmmmeye ... micro... well you know THEIR fonts

Shhhh... I had paid for the Win7 that my laptop came with .... might as well put it to some use ]:D

Sector11 wrote:

OH!! and while I was at it I just "had to" change the logo!  ]:D

Just a keystroke. A 'J' instead of "B'. (Though it may take a few keystrokes to nail the right letter tongue )

Sector11 wrote:

Really interesting conkys ... now to watch the cpu usage ... New Stamps on the left, Old Stamps on the right and set to fire up tomorrow morning with the other 7 as well.  So far they are holding their owm.
http://s20.postimg.org/j95zwfzpl/2013_06_26_18_42_29_1920x1080_Sector11.jpg
Talk later. ... now to make a third example and really customize it!  8o

Thanks for that. smile Look forward to your spin big_smile

Offline

#5587 2013-06-27 11:22:59

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

ragamatrix wrote:

Kind of you to had a look on this "radio conky cover" idea; thanks.
I did Ctrl+i "medias" on the adress of the player and the path to the image might be :

http://www.novaplanet.com/sites/default/files/imagecache/player_cover/sites/all/themes/nova/images/cover-null.jpg

When no artists playing...
and when an artist playing :

http://www.novaplanet.com/sites/default/files/imagecache/player_cover/album_cover/7317.jpg

It will be in this conky something like "if match..." and "else" oder ?
To be continued...

It is dynamically created content - wget or curl gets server source but don't run JS script to create client side version, so can't do.
Unless you have other source.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#5588 2013-06-27 11:54:12

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@dk75
oh oh .. ok It's the end of the project  hmm Thanks for your knowledge..

Offline

#5589 2013-06-27 11:57:07

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

dk75 wrote:

It is dynamically created content - wget or curl gets server source but don't run JS script to create client side version, so can't do.
Unless you have other source.

That's why I said:

Tough one - that image is hidden in a script someplace.

Guess they don't want people getting their stuff.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5590 2013-06-27 11:58:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:
Sector11 wrote:
ragamatrix wrote:

@Sector11
I modified a little the script for radio playing with radiotray. I've made a little icon when the radio doesn't play; and add it in conky after

Very nice!  When I used radiotray I had it set to show when it was playing and show nothing when off.  But that's a nice little icon.

Thanks smile
I had this idea just after playing with this great soft: inkscape witch you can find with synaptic or apt-get.

Yea, I have inkscape, can't quite figure it out.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5591 2013-06-27 12:05:34

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

I'm modifying a script wich display a calendar and use convert (again yes I can't stop...  smile ) But I'm "stuck" or "blocked" because the numbers are not displaying.
calendar without numbers
If someone is intersted thanks again for help.
This script build the png picture in /tmp/calendar "calendarF.png"
calendar.sh:

###############################################################################
#                                                                             #
#                                                                             #
#-----------------------------------Calendrier 1------------------------------#
#                                                                             #
#                                                                             #
###############################################################################
# initialisation variables ----------------------------------------------------
#------------------ Variables que vous pouvez modifier ------------------------
fonte=Andale-Mono # fonte generique # HelveticaLTStd-Bold  # Consolas-Bold-Italic # Andale-Mono
fonte1=Agency-FB  #  # Agency-FB # Lobster1.4 
fonte2=Monaco  #  # Droid-Sans-Bold # 
#temp working folders   
repertimages=/tmp
reptemp=$repertimages/calendar
imagetemp=$repertimages/calendar/temp.png
imagetemp1=$repertimages/calendar/temp1.png
#------------------------------------------------------------------------------
if [[ ! -d  $reptemp ]]; then
mkdir $repertimages/calendar
fi
#------------------------------------------------------------------------------
# couleurs 
coulm1="blue4"
coulm2="dodgerblue1"
coulm3="yellow"
coulm4="white"
coulm5="springgreen"
coulm6="red"
coulm7="black"
# couleurs 2
could1="orange"
could2="dodgerblue1"
could3="yellow"
could4="white"
could5="#0EAF00"
could6="red"
could7="blue"
could8="gold"
could9="black"
could10="#00003F"
###################################################################################################################
#================================================calendar=========================================================#
###################################################################################################################
samedi="SAM"
dimanche="DIM"
function calendar
{
if [[ $cale1 = `echo ${calen1[30]}` ]] ; then 
coul3=$could6
elif [[ `echo $cale1 | cut -c1-3`  = `echo $dimanche` ]] ; then 
coul3=$could1
elif [[ `echo $cale1 | cut -c1-3`  = `echo $samedi` ]] ; then 
coul3=$could3
else coul3=$could7
fi
if [ $cale1 = `echo ${calen1[30]}` ] ; then 
fonts1=18
else fonts1=16
fi
if [ $cale1 = `echo ${calen1[30]}` ] ; then 
pos13=1
else pos13=0
fi
if [[ $cale1 = `echo ${calen1[30]}` ]] ; then 
coul4=$could8
elif [[ `echo $cale1 | cut -c1-3`  = `echo $dimanche` ]] ; then 
coul4=$could10
elif [[ `echo $cale1 | cut -c1-3`  = `echo $samedi` ]] ; then 
coul4=$could10
else coul4=$coulm7
fi
}

# Cartouche Calendar 2 --------------------------------------------------------

convert -size 1440x50 xc:none  -fill none  $imagetemp
# Position--et--jours---------------------------------
dep1=7 ; pos12=23

calen1[0]=`date +%^a%d --date '-30 days'`
calen1[1]=`date +%^a%d --date '-29 days'`
calen1[2]=`date +%^a%d --date '-28 days'`
calen1[3]=`date +%^a%d --date '-27 days'`
calen1[4]=`date +%^a%d --date '-26 days'`
calen1[5]=`date +%^a%d --date '-25 days'`
calen1[6]=`date +%^a%d --date '-24 days'`
calen1[7]=`date +%^a%d --date '-23 days'`
calen1[8]=`date +%^a%d --date '-22 days'`
calen1[9]=`date +%^a%d --date '-21 days'`
calen1[10]=`date +%^a%d --date '-20 days'`
calen1[11]=`date +%^a%d --date '-19 days'`
calen1[12]=`date +%^a%d --date '-18 days'`
calen1[13]=`date +%^a%d --date '-17 days'`
calen1[14]=`date +%^a%d --date '-16 days'`
calen1[15]=`date +%^a%d --date '-15 days'`
calen1[16]=`date +%^a%d --date '-14 days'`
calen1[17]=`date +%^a%d --date '-13 days'`
calen1[18]=`date +%^a%d --date '-12 days'`
calen1[19]=`date +%^a%d --date '-11 days'`
calen1[20]=`date +%^a%d --date '-10 days'`
calen1[21]=`date +%^a%d --date '-9 days'`
calen1[22]=`date +%^a%d --date '-8 days'`
calen1[23]=`date +%^a%d --date '-7 days'`
calen1[24]=`date +%^a%d --date '-6 days'`
calen1[25]=`date +%^a%d --date '-5 days'`
calen1[26]=`date +%^a%d --date '-4 days'`
calen1[27]=`date +%^a%d --date '-3 days'`
calen1[28]=`date +%^a%d --date '-2 days'`
calen1[29]=`date +%^a%d --date '-1 days'`
calen1[30]=`date +%^a%d --date '0 days'`
calen1[31]=`date +%^a%d --date '+1 days'`
calen1[32]=`date +%^a%d --date '+2 days'`
calen1[33]=`date +%^a%d --date '+3 days'`
calen1[34]=`date +%^a%d --date '+4 days'`
calen1[35]=`date +%^a%d --date '+5 days'`
calen1[36]=`date +%^a%d --date '+6 days'`
calen1[37]=`date +%^a%d --date '+7 days'`
calen1[38]=`date +%^a%d --date '+8 days'`
calen1[39]=`date +%^a%d --date '+9 days'`
calen1[40]=`date +%^a%d --date '+10 days'`
calen1[41]=`date +%^a%d --date '+11 days'`
calen1[42]=`date +%^a%d --date '+12 days'`
calen1[43]=`date +%^a%d --date '+13 days'`
calen1[44]=`date +%^a%d --date '+14 days'`
calen1[45]=`date +%^a%d --date '+15 days'`
calen1[46]=`date +%^a%d --date '+16 days'`
calen1[47]=`date +%^a%d --date '+17 days'`
calen1[48]=`date +%^a%d --date '+18 days'`
calen1[49]=`date +%^a%d --date '+19 days'`
calen1[50]=`date +%^a%d --date '+20 days'`
calen1[51]=`date +%^a%d --date '+21 days'`
calen1[52]=`date +%^a%d --date '+22 days'`
calen1[53]=`date +%^a%d --date '+23 days'`
calen1[54]=`date +%^a%d --date '+24 days'`
calen1[55]=`date +%^a%d --date '+25 days'`
calen1[56]=`date +%^a%d --date '+26 days'`
calen1[57]=`date +%^a%d --date '+27 days'`
calen1[58]=`date +%^a%d --date '+28 days'`
calen1[59]=`date +%^a%d --date '+29 days'`
calen1[60]=`date +%^a%d --date '+30 days'`
calen1[61]=`date +%^a%d --date '+31 days'`


for (( x=0 ; x<62 ; x++ ));do
cale1=`echo ${calen1[x]}`;calendar
echo ${calen1[x]} | tr '.' '\012' | cut -c1-2 |\
convert -background none -fill $coul3 -font $fonte2 -pointsize $fonts1 -gravity center    label:@- -trim \
\( +clone -background $coul4  -shadow 100x1 -channel A -level 0,7% +channel \) +swap +repage -gravity center -composite $imagetemp1
composite  -gravity west -background transparent -geometry +$(((pos12*x-pos13)+dep1))+2 -dissolve 65% $imagetemp1   $imagetemp $imagetemp
done

# ombres calendarF----------------------------------------------------------

convert $imagetemp -bordercolor None -border 11x11 \( +clone -background none -shadow 100x2 \) -compose DstOver -composite -compose Over $reptemp/calendarF.png
###############################################################################

Last edited by ragamatrix (2013-06-27 12:06:56)

Offline

#5592 2013-06-27 12:31:56

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

easysid wrote:
Sector11 wrote:

Just so you know I have no ${voffset} commands in your old conky-stamps I had to edit it.

Yeah. You had showed that in a post previously smile. I was put off by the fact that whenever I made a change of font or size, all the things under that lost alignment. And I was drawing the stamps with lua anyway tongue .

Oh I understand that, it's a pain ... Once set though, there it is .... stamps all licked and on the monitor ... post office refused them though.  Guess they don't recognize Conkylandia.

easysid wrote:
Sector11 wrote:

Hey, don't blame me.  I didn't want any of those mmi.. mmm ... mmmeye... mmmmeye ... micro... well you know THEIR fonts

Shhhh... I had paid for the Win7 that my laptop came with .... might as well put it to some use ]:D

Always nice to have a freebie. Don't worry I won't tell anyone, besides, Mike R. O'Soft  is an Irish gentleman isn't he?

easysid wrote:
Sector11 wrote:

OH!! and while I was at it I just "had to" change the logo!  ]:D

Just a keystroke. A 'J' instead of "B'. (Though it may take a few keystrokes to nail the right letter tongue )

Yea that's the trouble with those *darn ... oops sorry... *ding fonts ... finding the right letter.

easysid wrote:
Sector11 wrote:

Talk later. ... now to make a third example and really customize it!  8o

Thanks for that. smile Look forward to your spin big_smile

So far cpu usage is very acceptable and RAM usage acts normal, goes up when using app and drops back down when free.  It's not going up and staying there.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5593 2013-06-27 20:31:44

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ ragamatrix - way beyond my knowledge

@ easysid - running bother version of the conky-stamp aoo day with another 7 conkys and opening and closing / using varios programs - RAM usage up~down depending on what I see now an increase of 2% --- that will probably drop if I don't use the computer for a spell.

So I'd say: No Memory leak in either.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5594 2013-06-28 07:20:32

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

Sector11 wrote:

@ easysid - running bother version of the conky-stamp aoo day with another 7 conkys and opening and closing / using varios programs - RAM usage up~down depending on what I see now an increase of 2% --- that will probably drop if I don't use the computer for a spell.

So I'd say: No Memory leak in either.  big_smile

That's good to hear. smile Thanks you for that. big_smile big_smile

Offline

#5595 2013-06-28 07:45:15

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

How can I set the alpha for each font that I use in conkyrc?
using

use_xft yes
xftfont cantarell:size=20
xftalpha .7

sets the alpha for this default font. If I change the font using $font, it gives full opacity.  How can I set it for each font individually, to get a transparency effect?

Offline

#5596 2013-06-28 10:13:29

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@Sector11
¿ Can you just test the script and say to me if you have numbers under days please ?
Just to know if it's a "distribution" "os" lib problem...?
You just have to look an eye in /tmp/calendar "calendarF.png"
Thanks

Offline

#5597 2013-06-28 13:08:37

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

Sector11 wrote:
dk75 wrote:

It is dynamically created content - wget or curl gets server source but don't run JS script to create client side version, so can't do.
Unless you have other source.

That's why I said:

Tough one - that image is hidden in a script someplace.

Guess they don't want people getting their stuff.

It might be rendered in Python and then searched for images by:
http://phantomjs.org/
http://watin.org/

or in pure LUA:
http://mason-larobina.github.io/luakit/

Anyone want to try?


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#5598 2013-06-28 13:26:24

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

It have no number for me, and formatting is off.
But I don't have your fonts and time for correction.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#5599 2013-06-28 13:36:28

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11
¿ Can you just test the script and say to me if you have numbers under days please ?
Just to know if it's a "distribution" "os" lib problem...?
You just have to look an eye in /tmp/calendar "calendarF.png"
Thanks

I tested your script. I do not have numbers under the days. Though I do not get a big part of the script and this may sound stupid, but where are you trying to put the numbers?

The line ( It looks the business line )

echo ${calen1[x]} | tr '.' '\012' | cut -c1-2 | <imagemagik blah here>

Outputs only the first two letters of the day. Don't see a similar line for numbers.



PS: I am not Sector11. His post was intercepted big_smile big_smile

Offline

Be excellent to each other!

#5600 2013-06-28 14:03:06

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

easysid wrote:
ragamatrix wrote:

@Sector11
¿ Can you just test the script and say to me if you have numbers under days please ?
Just to know if it's a "distribution" "os" lib problem...?
You just have to look an eye in /tmp/calendar "calendarF.png"
Thanks

I tested your script. I do not have numbers under the days. Though I do not get a big part of the script and this may sound stupid, but where are you trying to put the numbers?

The line ( It looks the business line )

echo ${calen1[x]} | tr '.' '\012' | cut -c1-2 | <imagemagik blah here>

Outputs only the first two letters of the day. Don't see a similar line for numbers.



PS: I am not Sector11. His post was intercepted big_smile big_smile

Thank-you very much to try scripting this calendar.
I'd like to put the numbers under each days...
Edit:
I'm lost in code and I made one vertical calendar works fine...
Now let's understand how make the horizontal works correctly...
vertical-colored-one:

###############################################################################
#                                                                             #
#                                                                             #
#-----------------------------------Calendrier 1------------------------------#
#                                                                             #
#                                                                             #
###############################################################################
# initialisation variables ----------------------------------------------------
#------------------ Variables que vous pouvez modifier ------------------------
fonte=Andale-Mono # fonte generique # HelveticaLTStd-Bold  # Consolas-Bold-Italic # Andale-Mono
fonte1=Agency-FB  # fonte ville, date, mail et news # Agency-FB # Lobster1.4 
fonte2=Monaco  # fonte cond act # Droid-Sans-Bold # 
#temp working folders   
repertimages=/tmp
reptemp=$repertimages/calendar
imagetemp=$repertimages/calendar/temp.png
imagetemp1=$repertimages/calendar/temp1.png
#------------------------------------------------------------------------------
if [[ ! -d  $reptemp ]]; then
mkdir $repertimages/calendar
fi
#------------------------------------------------------------------------------
# couleurs 
coulm1="blue4"
coulm2="dodgerblue1"
coulm3="yellow"
coulm4="white"
coulm5="springgreen"
coulm6="red"
coulm7="black"
# couleurs 2
could1="orange"
could2="dodgerblue1"
could3="yellow"
could4="white"
could5="#0EAF00"
could6="red"
could7="blue"
could8="gold"
could9="black"
could10="#00003F"
########################################################
# calendrier 1 -------------------------------------------------------------------
samedi=`echo "SAM"`
dimanche=`echo "DIM"`
function calendar1
{
if [ $cale = `echo ${calen[20]}` ] ; then 
coul2=$could6
elif [ $cale = `echo ${calen[0]}` ] ; then 
coul2=$could6
elif [ `echo $cale | cut -c1-3`  = `echo $dimanche` ] ; then 
coul2=$could1
elif [ `echo $cale | cut -c1-3`  = `echo $samedi` ] ; then 
coul2=$could3
else coul2=$could7
fi
if [ $cale = `echo ${calen[20]}` ] ; then 
coul5=$could8
elif [ $cale = `echo ${calen[0]}` ] ; then 
coul5=$could8
elif [ `echo $cale | cut -c1-3`  = `echo $dimanche` ] ; then 
coul5=$could9
elif [ `echo $cale | cut -c1-3`  = `echo $samedi` ] ; then 
coul5=$could9
else coul5=$could9
fi
if [ $cale = `echo ${calen[20]}` ] ; then 
fonts=20
elif [ $cale = `echo ${calen[0]}` ] ; then 
fonts=20
else fonts=16
fi
if [ $cale = `echo ${calen[20]}` ] ; then 
ecart8=1
elif [ $cale = `echo ${calen[0]}` ] ; then 
ecart8=10
else ecart8=0
fi
}
###################################################################################################################
#================================================calendar=========================================================#
###################################################################################################################
samedi="SAM"
dimanche="DIM"
function calendar
{
if [[ $cale1 = `echo ${calen1[30]}` ]] ; then 
coul3=$could6
elif [[ `echo $cale1 | cut -c1-3`  = `echo $dimanche` ]] ; then 
coul3=$could1
elif [[ `echo $cale1 | cut -c1-3`  = `echo $samedi` ]] ; then 
coul3=$could3
else coul3=$could7
fi
if [ $cale1 = `echo ${calen1[30]}` ] ; then 
fonts1=18
else fonts1=16
fi
if [ $cale1 = `echo ${calen1[30]}` ] ; then 
pos13=1
else pos13=0
fi
if [[ $cale1 = `echo ${calen1[30]}` ]] ; then 
coul4=$could8
elif [[ `echo $cale1 | cut -c1-3`  = `echo $dimanche` ]] ; then 
coul4=$could10
elif [[ `echo $cale1 | cut -c1-3`  = `echo $samedi` ]] ; then 
coul4=$could10
else coul4=$coulm7
fi
}

# Cartouche Calendar 2 --------------------------------------------------------

convert -size 75x620 xc:none  -fill none -strokewidth 1 -stroke orange -draw "roundrectangle 1,5,74,619,5,6" $imagetemp

# Calendar 1 ------------------------------------------------------------------
rot=353 ; pos11=0 ; pos2=138 ; pos3=145 ; posdepart11=15 ; posdepart1=37 ; ecart9=15

calen[0]=`date +%^b%Y --date '0 days'`
calen[1]=`date +%^a%d --date '-19 days'`
calen[2]=`date +%^a%d --date '-18 days'`
calen[3]=`date +%^a%d --date '-17 days'`
calen[4]=`date +%^a%d --date '-16 days'`
calen[5]=`date +%^a%d --date '-15 days'`
calen[6]=`date +%^a%d --date '-14 days'`
calen[7]=`date +%^a%d --date '-13 days'`
calen[8]=`date +%^a%d --date '-12 days'`
calen[9]=`date +%^a%d --date '-11 days'`
calen[10]=`date +%^a%d --date '-10 days'`
calen[11]=`date +%^a%d --date '-9 days'`
calen[12]=`date +%^a%d --date '-8 days'`
calen[13]=`date +%^a%d --date '-7 days'`
calen[14]=`date +%^a%d --date '-6 days'`
calen[15]=`date +%^a%d --date '-5 days'`
calen[16]=`date +%^a%d --date '-4 days'`
calen[17]=`date +%^a%d --date '-3 days'`
calen[18]=`date +%^a%d --date '-2 days'`
calen[19]=`date +%^a%d --date '-1 days'`
calen[20]=`date +%^a%d --date '0 days'`
calen[21]=`date +%^a%d --date '+1 days'`
calen[22]=`date +%^a%d --date '+2 days'`
calen[23]=`date +%^a%d --date '+3 days'`
calen[24]=`date +%^a%d --date '+4 days'`
calen[25]=`date +%^a%d --date '+5 days'`
calen[26]=`date +%^a%d --date '+6 days'`
calen[27]=`date +%^a%d --date '+7 days'`
calen[28]=`date +%^a%d --date '+8 days'`
calen[29]=`date +%^a%d --date '+9 days'`
calen[30]=`date +%^a%d --date '+10 days'`
calen[31]=`date +%^a%d --date '+11 days'`
calen[32]=`date +%^a%d --date '+12 days'`
calen[33]=`date +%^a%d --date '+13 days'`
calen[34]=`date +%^a%d --date '+14 days'`
calen[35]=`date +%^a%d --date '+15 days'`
calen[36]=`date +%^a%d --date '+16 days'`
calen[37]=`date +%^a%d --date '+17 days'`
calen[38]=`date +%^a%d --date '+18 days'`
calen[39]=`date +%^a%d --date '+19 days'`

for (( x=0 ; x<40 ; x++ ));do
cale=`echo ${calen[x]}`;calendar1
echo ${calen[x]} |\
convert -background none -fill $coul2 -font $fonte1 -pointsize $fonts -gravity center    label:@- -trim \
\( +clone -background $coul5  -shadow 100x1 -channel A -level 0,7% +channel \) +swap +repage -gravity center -composite $imagetemp1
composite  -gravity north -background transparent -geometry +0+$(((ecart9*x-ecart8)+posdepart11)) -dissolve 65% $imagetemp1   $imagetemp $imagetemp
done



# ombres cartouche 4 ----------------------------------------------------------

convert $imagetemp -bordercolor None -border 11x11 \( +clone -background black -shadow 100x2 \) -compose DstOver -composite -compose Over +distort ScaleRotateTranslate 0 +repage $reptemp/cartouche4.png
###############################################################################

vertical
You can choose what font you have on top I think...

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo