SEARCH

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

You are not logged in.

#4276 2012-12-05 22:22:28

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

Re: Conky v1.9 Thread

#!/bin/bash

test=`curl -s http://www.nasa.gov/rss/image_of_the_day.rss | grep 'url=' | sed 's/^.*url="//' | sed 's/".*$//'` && wget -O /tmp/image_nasa.jpg $test
convert /tmp/image_nasa.jpg  /tmp/image_nasa.png
##aqua effect
convert /tmp/image_nasa.png -alpha off -fill white -colorize 100% \
     -draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
     \( +clone -flip \) -compose Multiply -composite \
     \( +clone -flop \) -compose Multiply -composite \
     -background gray60 -alpha Shape    /tmp/thumbnail_mask.png
###aqua effect2
convert /tmp/thumbnail_mask.png -bordercolor None -border 1x1 \
          -alpha Extract -blur 0x10  -shade 130x30 -alpha On \
          -background gray60 -alpha background -auto-level \
          -function polynomial  3.5,-5.05,2.05,0.3 \
          \( +clone -alpha extract  -blur 0x2 \) \
          -channel RGB -compose multiply -composite \
          +channel +compose -chop 1x1 \
          /tmp/thumbnail_lighting.png
##final
convert /tmp/image_nasa.png -alpha Set /tmp/thumbnail_lighting.png \
          \( -clone 0,1 -alpha Opaque -compose Hardlight -composite \) \
          -delete 0 -compose In -composite \
          /tmp/imageday_nasa.png

rm /tmp/thumbnail_lighting.png ;rm /tmp/thumbnail_mask.png 

Offline

Be excellent to each other!

#4277 2012-12-05 22:49:20

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

@dk75 sorry bad couple of days probably should have waited till today to work on this.

ok here is exactly what i am trying to do, i have a cpu table gives me the last 10 cpu values. this is nice but i need every other value to be a negative number as it travels down the line. I now think that this should be handled inside the table not outside as i was planing. but before we get to that, i still need to get one of the switches to work. the 1 or -1 that is put out by this is so that i can multiply the cpu value by it getting the negative or positive values i need

I reread your post and have changed them, I now get a reading like this from terminal:
1
-1
----
-1
1
----
-1
1
and so on stuck with the alt_switch and alt_switch2 at -1 and 1
also I took out the ends you call extra, they aren't. without the ends that were taken out the whole thing freaked out and gave all kinds of errors.

if updates == 6 then alt_switch=1 end
if updates > 6 then if alt_switch2 == -1 then alt_switch=-1 end end
if alt_switch2 == 1 then alt_switch=-1 end
if updates >= 6 then if alt_switch == 1 then alt_switch2=-1 end end
if alt_switch == -1 then alt_switch2=1 end
print("---------")
print(alt_switch)
print(alt_switch2)

Offline

#4278 2012-12-05 23:37:04

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

Re: Conky v1.9 Thread

table.insert(cputable, 1, cpuvalue)
while #cputable>maxtablesize do table.remove(cputable, #cputable) end

Last edited by dk75 (2012-12-05 23:50:42)

Offline

#4279 2012-12-05 23:50:22

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

Last edited by ansem_of_nexus (2012-12-06 06:10:48)

Offline

#4280 2012-12-06 09:25:38

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

Re: Conky v1.9 Thread

Offline

#4281 2012-12-06 10:19:18

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

Re: Conky v1.9 Thread

system(" ~/wallpapers/$img$ext");

Offline

#4282 2012-12-06 10:42:22

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

@ragamatrix

what should i do to remove  the alpha-effect?

Last edited by lionhead (2012-12-06 11:27:35)

Offline

#4283 2012-12-06 12:36:44

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

Re: Conky v1.9 Thread

Offline

#4284 2012-12-06 13:37:30

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

the corners could be round. but no alpha-effekt.

Offline

#4285 2012-12-06 14:46:07

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

Re: Conky v1.9 Thread

Last edited by ragamatrix (2012-12-06 14:56:53)

Offline

#4286 2012-12-06 20:23:21

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

Re: Conky v1.9 Thread

# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0


# — Window specifications — #

#own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 400 400 #Taille minimum (px) ; largeur / hauteur
maximum_width 400

alignment ml

gap_x 60
gap_y 10



# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont LCDMono2:size=8
xftalpha 1.0

default_color FFFFFF

uppercase no
use_spacer right



TEXT


${execi 1200 /home/climatix/.conky/script/gwsus.sh}
${image /tmp/sphere_goes_enam_1070_100.png -p 15,15 -s 380x380 -n}

Last edited by ragamatrix (2012-12-06 20:28:47)

Offline

#4287 2012-12-06 21:56:01

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

Re: Conky v1.9 Thread

You could want to run gwsus.sh script from ${texeci} - it make new tread, separate from Conky one, so Conky won't stall if there would be some connection problem:

${texeci 1200 /home/climatix/.conky/script/gwsus.sh}

Offline

#4288 2012-12-08 00:49:17

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Re: Conky v1.9 Thread

Is anyone else having trouble with accuweather?

Offline

#4289 2012-12-08 04:51:37

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

Offline

#4290 2012-12-08 04:52:58

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

${texeci 1200 /home/climatix/.conky/script/gwsus.sh}

Offline

#4291 2012-12-08 17:32:01

opn1
New Member
Registered: 2012-12-07
Posts: 3

Re: Conky v1.9 Thread

own_window yes 
own_window_colour 262729
own_window_transparent no 
own_window_type normal 
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right 
use_xft yes
#font snap-7
xftfont silkscreen:size=6
xftalpha 1
text_buffer_size 2048 
alignment bottom
gap_x 0 
gap_y 3

# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
stippled_borders 0
minimum_size 1366 3
maximum_width 1366 2
border_margin 3
border_width 0
default_color 5e7175
# --- Text --- #
draw_outline no
draw_borders no
#font -*-profont-*-*-*-11-*-*-*-*-*-*-* 
uppercase no
draw_shades no 

TEXT
${alignc}${color aeb492}CrunchBang Linux ${color d3d3d3}Debian squeeze | ${color aeb492}Machine${color d3d3d3} $nodename | ${color}${color aeb492}Kernel${color d3d3d3} $kernel | ${color aeb492}Ram ${color d3d3d3}${mem} | ${color aeb492}Home ${color e0e0e0}${font}${fs_free /} | ${color aeb492}Uptime ${color d3d3d3} $uptime | ${color aeb492}Cpu ${color d3d3d3}${execpi 5 sensors | grep "CPU T" | awk '{print $3}' | cut -c2-3}°C, ${cpu}%

Last edited by opn1 (2012-12-08 23:04:03)

Offline

#4292 2012-12-09 07:55:55

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

Offline

#4293 2012-12-10 03:28:00

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

Offline

#4294 2012-12-10 05:06:19

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

Offline

#4295 2012-12-10 10:33:24

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

Offline

#4296 2012-12-10 10:41:47

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

Re: Conky v1.9 Thread

Offline

#4297 2012-12-10 15:23:41

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

Re: Conky v1.9 Thread

Offline

#4298 2012-12-10 17:28:51

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

Offline

#4299 2012-12-10 19:44:10

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

^ thanks all smile

no 24 hour format yet, but should be easy to put in

however, i think its going to have to wait till ive recovered from this cold ive got sad

Offline

Be excellent to each other!

#4300 2012-12-10 19:47:12

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

Re: Conky v1.9 Thread

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: bleh

Debian Logo