You are not logged in.
Pages: 1
Hello, in my conky window there is a huge gap at the bottom for some reason, I am trying to make it align in middle_right, but it's always above the middle line due to the gap.
~/.conkyrc
use_xft yes
xftfont DejaVu Sans:size=8
update_interval 1
total_run_times 0
double_buffer yes
text_buffer_size 512
own_window yes
own_window_type desktop
own_window_transparent yes
draw_shades yes
default_color white
alignment middle_right
gap_x 12
gap_y 0
no_buffers no
net_avg_samples 2
TEXT
System ${hr 2}
${voffset 4}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font FnT_BasicShapes1:size=12}p${font} CPU_1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font FnT_BasicShapes1:size=12}p${font} CPU_2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}D${font} RAM: ${memperc}% ${alignr}${membar 8,60}
${font StyleBats:size=16}Q${font} Uptime: ${alignr}${uptime}
Date ${hr 2}
${voffset -8}${alignc 58}${font Arial Black:size=24}${time %I:%M %P}${font}
${voffset 4}${alignc}${time %A %d, %B}
${font RsbillsDng:size=14}O${font}${font DejaVu Sans Mono:size=8}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color FCAF3E}'"$DJS"'${color0}'" "/}${font}
Space ${hr 2}
${voffset 4}${font StyleBats:size=16}A${font} System: ${fs_used_perc /}% ${alignr}${fs_bar 8,60 /}
${font StyleBats:size=16}A${font} Stuff: ${fs_used_perc /home/Stuff}% ${alignr}${fs_bar 8,60 /home/Stuff}${voffset 4}
Network ${hr 2}
${voffset 4}${font PizzaDude Bullets:size=12}O${font} Up: ${upspeed eth0} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${font PizzaDude Bullets:size=12}U${font} Down: ${downspeed eth0} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${font PizzaDude Bullets:size=12}N${font} Upload: ${alignr}${totalup eth0}
${font PizzaDude Bullets:size=12}T${font} Download: ${alignr}${totaldown eth0}
${font PizzaDude Bullets:size=12}a${font} Local IP: ${alignr}${addr eth0}
${font PizzaDude Bullets:size=12}b${font} Public IP: ${alignr}${execi 3600 wget -qO- http://riivo.eu/php/ip.php}${voffset 8}
Notifications ${hr 2}
${voffset -6}${font Martin Vogel's Symbols:size=19}B${font} New e-mails: ${alignr} ${execi 120 conkyEmail -m IMAP -s imap.gmail.com -u xxxxxxxxxxxx -p xxxxxxxxxx -e}
${font PizzaDude Bullets:size=14}B${font} Packages: ${alignr} ${execi 10800 /home/kaizoku/.conky/pmupdate.sh}${voffset 4}
Weather ${hr 2}
${alignc 55}Now:
${execpi 240 conkyForecast -l ASXX0075 -t /home/kaizoku/.conky/conkyForecast.template}
Currency ${hr 2}
${execpi 3600 /home/kaizoku/.conky/currency.sh}
Last edited by kaizoku (2009-11-18 06:17:42)
Offline
Please post the contents of /home/kaizoku/.conky/currency.sh
As I think that is where you will find the problem
Offline
${voffset 4}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
*cough* Let me guess...Someone on the Ubuntu forums said you should ask the guys on the Arch forums, right?
Anyway, this sentence I don't understand very well.
I am trying to make it align in middle_right, but it's always above the middle line due to the gap.
Last edited by sand_man (2009-11-18 05:40:39)
Offline
Please post the contents of /home/kaizoku/.conky/currency.sh
As I think that is where you will find the problem
/home/kaizoku/.conky/currency.sh
#!/bin/bash
data=`wget -qO- http://rss.timegenie.com/forex.txt | grep "AUD\|JPY\|USD\|VND" | cut -d '|' -f 3`
i=0
for item in $data
do
cur[$i]=$item
((++i))
done
eur=`echo "${cur[0]} 1" | awk '{print $2 / $1}'`
jpy=`echo "${cur[0]} ${cur[1]}" | awk '{print $2 / $1}'`
usd=`echo "${cur[0]} ${cur[2]}" | awk '{print $2 / $1}'`
vnd=`echo "${cur[0]} ${cur[3]}" | awk '{print $2 / $1}'`
echo "\${font Tahoma:size=14}€\${font} EUR: \${alignr}$eur"
echo "\${font Tahoma:size=14}¥\${font} YEN: \${alignr}$jpy"
echo "\${font Tahoma:size=14}\$\$\${font} USD: \${alignr}$usd"
echo "\${font Tahoma:size=14}₫\${font} VND: \${alignr}$vnd"
${voffset 4}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
*cough* Let me guess...Someone on the Ubuntu forums said you should ask the guys on the Arch forums, right?
Anyway, this sentence I don't understand very well.
I am trying to make it align in middle_right, but it's always above the middle line due to the gap.
Well I posted here because it seems to have more support on conky
Anyways I meant like due to the gap on the bottom, it doesn't vertically align properly; it looks like bottom part has more gap than top part. I am trying to align it middle vertically.
Last edited by kaizoku (2009-11-18 06:01:00)
Offline
Add blank lines to the top and see if it evens out. Conky is senseless.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Add blank lines to the top and see if it evens out. Conky is senseless.
Thanks that seems to fixed it, why did I never thought of that?
Offline
try
alignment mr
Or you could just put top right and then increase gap_y value till it looks about right
Offline
try
alignment mr
Or you could just put top right and then increase gap_y value till it looks about right
I believe mr is same as middle_right, gap_y seems to work too, but is there a "proper" way of fixing it?
Offline
One quick thing. Can you post your:
/home/kaizoku/.conky/conkyForecast.template
&
/home/kaizoku/.conky/pmupdate.sh
As I am trying to set up my conky a bit better. I am in the process of setting up conkyforecast now.
Thanks
Offline
I am using ubuntu, you might want to use the pmupdate that riivo posted http://bbs.archlinux.org/viewtopic.php? … 01#p549301 which I got most of my setup from with some changes.
pmupdate.sh
#!/bin/sh
sudo pacman -Sy > /dev/null
output=`pacman -Qu`
numofup=`echo "$output" | grep Targets | sed 's/Targets (\([0-9]*\).*/\1/'`
if [ -n "$numofup" ]; then
sizeofup=`echo "$output" | grep "Total Installed Size" | cut -d ':' -f 2 | sed 's/^ *//'`
echo "$numofup ($sizeofup)"
else
echo "up-to-date"
fi
conkyForecast.template
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}[--datatype=WF]${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}[--datatype=LT]${font}
${alignc 43}[--datatype=DW --startday=1 --shortweekday] ${alignc 8}[--datatype=DW --startday=2 --shortweekday] ${alignc -29}[--datatype=DW --startday=3 --shortweekday] ${alignc -64}[--datatype=DW --startday=4 --shortweekday]
${alignc 75}${font ConkyWeather:size=28}[--datatype=WF --startday=1 --endday=4 --spaces=1]${font}
${font DejaVu Sans:size=7}${alignc 48}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3] ${alignc -14}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3] ${alignc -40}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3] ${alignr 6}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]${font}
Offline
Thank you
Offline
Pages: 1