Quantcast
Channel: Pinguy OS Forum - All Forums
Viewing all articles
Browse latest Browse all 1646

how do i edit the new "spectro" conky theme to fit on a netbook screen?

$
0
0
i have opened up this code in gedit as root:

PHP Code:
# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes

# Window specifications #
alignment top_righ
gap_y 0
minimum_size 600 600
maximum_width 430
own_window yes
own_window_type conky
own_window_transparent yes
own_window_hints undecorate
,sticky,skip_taskbar,skip_pager,below
#border_margin 0
#border_inner_margin 0
#border_outer_margin 0
alignment top_right

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

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light
:size=10

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color FFFFFF

color1 FFFFFF
color2 F9F9F9
color3 AAAAAA

TEXT
${execi 300 ~/.conky-weather/YahooWeather}${image ~/.conky-weather/assets/Numix/right-bar.png -p 303,20 -s 128x560}${image ~/.conky-weather/assets/Numix/shadow-2.png -p 303,20 -s 54x560}
${
color2}${font Droid Sans :size=12}${alignr 10}${voffset 17}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"low=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==1'}°${alignr 10}/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"high=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==1'}°
${color3}${font Droid Sans :size=12}${voffset 10}${alignr 10}Today
${color2}${font Droid Sans :size=12}${alignr 10}${voffset 72}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"low=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==2'}°${alignr 10}/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"high=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==2'}°
${color3}${font Droid Sans :size=12}${voffset 10}${alignr 10}Tomorrow
${color2}${font Droid Sans :size=12}${voffset 72}${alignr 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"low=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==3'}°${alignr 10}/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"high=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==3'}°
${color3}${font Droid Sans :size=12}${alignr 10}${voffset 10}${execi 3600 LANG=en_US date -+2day +%A}
${
color2}${font Droid Sans :size=12}${alignr 10}${voffset 72}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"low=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==4'}°${alignr 10}/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"high=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==4'}°
${color3}${font Droid Sans :size=12}${voffset 10}${alignr 10}${execi 3600 LANG=en_US date -+3day +%A}
${
color2}${font Droid Sans :size=12}${alignr 10}${voffset 72}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"low=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==5'}°${alignr 10}/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml grep -"high=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==5'}°
${color3}${font Droid Sans :size=12}${voffset 10}${alignr 10}${execi 3600 LANG=en_US date -+4day +%A}${font Droid Sans :size=12}
${
color1}${goto 20}${voffset -136}Humidity: ${color4}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml grep -"humidity=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}%
${
color1}${goto 20}${voffset 20}Wind: ${color4}${execi 300 grep "yweather:wind" ~/.cache/weather.xml grep -"speed=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml grep -"speed=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}
${
color1}${goto 20}${voffset 20}Pressure: ${color4}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml grep -"pressure=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml grep -"pressure=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}
${
color1}${goto 20}${voffset 20}Visibility: ${color4}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml grep -"visibility=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml grep -"distance=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}
${
color1}${font Raleway:weight=Light :size=120}${alignr 131}${voffset -520}${execi 300 grep "yweather:condition" ~/.cache/weather.xml grep -"temp=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}°
${font Droid Sans :size=16}${alignr 140}${voffset -100}${execi 300 grep "yweather:condition" ~/.cache/weather.xml grep -"text=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*"}
${
execi 300 cp -~/.conky-weather/weather-photos/$(grep "yweather:condition" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 4,20 -s 299x560}${execi 300 cp -~/.conky-weather/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 316,30 -s 32x32}${execi 300 cp -~/.conky-weather/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 316,150 -s 32x32}${execi 300 cp -~/.conky-weather/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 316,270 -s 32x32}${execi 300 cp -~/.conky-weather/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 316,390 -s 32x32}${voffset 20}
${
execi 300 cp -~/.conky-weather/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml grep -"code=\"[^\"]*\"" grep -"\"[^\"]*\"" grep -"[^\"]*" awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 316,510 -s 32x32}${voffset 20}${image ~/.conky-weather/assets/Numix/shadow-1.png -p 1,17 -s 433x566}${font}

now what do i changei would think it would be to change something under the "window specifications"but all i see is zeros and changing them to positive or negative #'s and restarting conky does nothing. 

EDITED BY PINGUY.
Put the Conky code in PHP brackets.

Viewing all articles
Browse latest Browse all 1646

Trending Articles