SEARCH

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

You are not logged in.

#2051 2012-07-06 13:31:14

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

Re: Conky v1.9 Thread

quarkrad wrote:

How do you get specific icons in the code?

StyleBats is a font like any other font, but rather than letters it's a graphical font.

Open your word processor and try it or if you have 'GNOME Specimen' open that and look.

For example from your conky lets strip this line to the bare minimum with regards to StyleBats:

${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}

${font StyleBats:size=9.9}k

There you go: SyyleBats font the lettert k = aawTZXEr.jpg

Each letter has a different image --> aamaIlEM.jpg

That explains the different 'icons' as you called them - just letters in a special font.

OpenLogos, WebDings, VariShapes are a few more that are the same.

Afterthought: I seriously doubt that conky renders the font at 'size=9.9' differently than 'size=10' or if it does that our eyes would detect the difference. Just an opinion but 'size=8.39' is the same.  Try those at 8 or 9 and see what it looks like.

EDIT:
Just proved myself wrong ... it is a visible difference:
221a52200310655.jpg

Last edited by Sector11 (2012-07-06 13:55:07)


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

Offline

Be excellent to each other!

#2052 2012-07-06 14:50:04

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Conky v1.9 Thread

^ Between 9.9 and 10 I don't see much difference, especially with that single dingbat...

Offline

#2053 2012-07-06 14:57:42

quarkrad
Member
Registered: 2012-06-13
Posts: 20

Re: Conky v1.9 Thread

Wow - you've done it again, many thanks.  This is troubling me:

I've been testing the height/width.  The min adjustable  height I can get is:

minimum_size 255 270 ## width, height
maximum_width 255  ## width, usually a good idea to equal minimum width

aau73u13.jpg


If I add more text to my conkyrc I need to increase the height - so:

minimum_size 255 310 ## width, height
maximum_width 255  ## width, usually a good idea to equal minimum width

aak0CN3a.jpg

Once more:

minimum_size 255 380 ## width, height
maximum_width 255  ## width, usually a good idea to equal minimum width

aaztRqMP.jpg

This last conky is good - not too much wasted space top and bottom of the screen

However, when I add the calendar code

##################################
##      CALENDAR (5-Line)       ##
##################################
#DATE line with horiz line
${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
#vertical position of everything below DATE line
${voffset 18}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
#text inside box
${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
#moves box up
${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
#moves box
${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
#outside box rim
${voffset -83}${font CutOutsFor3DFX:size=67}${color8}${alignc 99}2${font}
####
## Uncomment for Conky 1.8.1 (use mono fonts only)
${voffset -64}${offset 0}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/                   /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}

I get this conky:

aajm1arM.jpg

Suddenly there is a hugh amount of empty space at the bottom of the window.  I cannot find out what is causing this empty space - or how to reduce it.

Offline

#2054 2012-07-06 16:43:55

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

Re: Conky v1.9 Thread

quarkrad wrote:

Wow - you've done it again, many thanks.  This is troubling me:

Suddenly there is a hugh amount of empty space at the bottom of the window.  I cannot find out what is causing this empty space - or how to reduce it.

You're welcome.

That huge amount of extra space is because of abusing the ${voffset} command.

It's like this, for every line under TEXT conky 'draws a screen line', even if it is a blank line.

so if you have:

TEXT
a conky command
a conky command
a conky command
a conky command
a conky command

Conky will draw five lines on the screen, now do this:

TEXT
conky command 1
                ${voffset -10}conky command 2
                                              ${voffset -10}conky command 3
                                                                             ${voffset -10}conky command 4
                                                                                                            ${voffset -10}conky command 5

so what you see is this:

conky command 1 conky command 2 conky command 3 conky command 4 conky command 5

However - conky is still drawing 4 lines below that line you see.

Another thing you need to know. the ${voffset} be it negative (moves up) or positive (moves down) works with pixels but if you have:

TEXT
${font monospace:size=25}conky command 1
                ${voffset -10}conky command 2
                                              ${font monospace:size=15}${voffset -10}conky command 3
                                                                             ${font monospace:size=5}${voffset -10}conky command 4
                                                                                                            ${voffset -10}conky command 5

You'll find it's NOT the same results since the font size changed.

Look here: Goto/offset/voffset and Spacing in Conky


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

Offline

#2055 2012-07-06 18:00:06

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

Re: Conky v1.9 Thread

I took that calendar and added it to the StyleBats test conky I did.
After some editing I have this:
be6262200340742.jpg

Here's the code that is important:

minimum_size 240 0 ## width, height
maximum_width 240  ## width, usually a good idea to equal minimum width

TEXT
${font StyleBats:size=9.9}${color2}k${color}${font} ${font DroidSansFallback:size=8.39}${time %T}${font}
${font StyleBats:size=9}${color2}k${color}${font} ${font DroidSansFallback:size=8}${time %T}${font}
${font StyleBats:size=9.9}${color2}k${color}${font} ${font DroidSansFallback:size=8.3}${time %T}${font}
${font StyleBats:size=9.9}${color2}k${color}${font} ${font DroidSansFallback:size=8.4}${time %T}${font}
${font StyleBats:size=10}${color2}k${color}${font} ${font DroidSansFallback:size=9}${time %T}${font}
${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color8}${cpubar cpu0 1,220}${font}

${font CutOutsFor3DFX:size=67}${color8}${alignc 104}2${font}
${voffset -60}${font DroidSansMono:size=7.5}${color3}${alignc 65}${time %A}${font}
${color5}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${alignc 69}${time %e}${font}${else}${alignc 65}${time %e}${endif}${font}
${font DroidSansMono:size=7.5}${color3}${alignc 65}${time %B}
${alignc 65}${time %Y}${font}
${voffset -65}${font DroidSansMono:size=8}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/              /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}${voffset -150}

Because of the ${alignc xx} values to get Friday, 6, July & 2012 centred in the box the:

minimum_size 240 0 ## width, height
maximum_width 240  ## width, usually a good idea to equal minimum width

... is a critical factor in spacing.

I cleaned up the code a bit and added a final '${voffset -150}' to bring the bottom up to the end of the visible output.


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

Offline

#2056 2012-07-07 16:15:16

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

mrpeachy wrote:
arclance wrote:
mrpeachy wrote:

the best way to combat memory leaks is to localize as many of your variables as possible
just remember that local variables cant be "seen" outside of the function that they are in OR outside of the loop or if statement they are in

I would not call an if statement a loop since it does not repeat the command multiple times.

Just to be sure, you only have to use "local" when you create the variable not when you assign a new value to it correct?

So in this example the first "print" would print "1" the second would print "2" and the third would cause a nil value error.

function test()
   local a = 1
   print(a)
   a = 2
   print(a)
end
print(a)

i would differentiate ifs and loops also

in the code example above you would need to localize both instances as the second instance of "a" will overwrite the first, but will be a global variable
edit - to answer your question more specifically... the print command outside of the function would print "2" , the value of the string "a" as set in the second instance

I got power back yesterday and I tested this and it worked the way I though it would.
Here is better example than the one above and it's corresponding output.

function conky_main()
   test2()
end

function test2()
   local a = 1
   print(a)
   a = 2
   print(a)
   test()
end

function test()
    print(a) --# causes all nil other than first
end

print(a) --# causes first nil only

Output

nil
1
2
nil
1
2
nil

Last edited by arclance (2012-07-07 16:19:09)

Offline

#2057 2012-07-07 17:59:14

dasterdly
New Member
Registered: 2010-10-05
Posts: 5

Re: Conky v1.9 Thread

Hey folks,

Been getting more and more into conky and I'm having issues with a new display that I'm trying to work with. Whenever I start it via terminal, regardless of where I have it aligned to, the top is always cut off. The "No fortunes found" error is expected as I haven't set that yet.

PunBB bbcode test

Right now I have the alignment set to bottom_right so that it's more visible but it would normally be set to top_right. Interesting note, where it gets cut off it right where the screen ends, not sure if that would have any bearing on it or not.

background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.2
update_interval 30
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1020 240
maximum_width 1020
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_inner_margin 0
border_outer_margin 0 
override_utf8_locale yes
default_color white  
alignment bottom_right
uppercase no
text_buffer_size 8196
imlib_cache_size 0 
gap_x 5  
gap_y 0
TEXT

$color${execpi 36000 /home/sinjoro/scripts/horical.sh}${color}
${voffset 5}${goto 198}${color}${hr 1}
${color 72A4DB}${voffset -64}${goto 46}${font Caviar Dreams:bold:size=18}${time %A}${font Caviar Dreams:bold:size=40}${goto 175} ${color}${voffset 0}${time %d}$color
${color 72A4DB}${voffset -50}${font Caviar Dreams:bold:size=24}${goto 46}${time %b}${font Caviar Dreams:bold:size=16}${goto 128}${color}${voffset 4}${time %Y}$color

${voffset -32}${font Sahara:italic:size=15}${goto 280}${color E0EBF1}${execi 30 fortune fran}

Offline

#2058 2012-07-07 21:49:32

broseph
#! Member
Registered: 2012-05-09
Posts: 88

Re: Conky v1.9 Thread

Here's my conky. I tweaked one of the conky's from PinguyOS:

dUGCH.png

I'm sorry if the code is a little messy, I haven't cleaned/worked on it in a while.

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
    background yes
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.5
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 170 5
    maximum_width 190
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color aaaaaa
    default_shade_color red
    default_outline_color green
    alignment middle_right
    gap_x 5
    gap_y 5
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no

TEXT
SYSTEM ${hr 2} 
${goto 6}${voffset 6}${font OpenLogos:size=22}t${font}${goto 36}${voffset -18}${pre_exec cat /etc/issue.net} $machine
${goto 36}Kernel: ${kernel}  
${hr 2}

${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
#${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
#${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU3: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
#${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU4: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}g${font}${voffset -4}${goto 32}RAM: ${mem} ${alignr}${membar 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}x${font}${voffset -4}${goto 32}DISK: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E}
${goto 6}${voffset 4}${font StyleBats:size=16}j${font}${voffset -4}${goto 32}SWAP: $swapperc% ${alignr}${swapbar 8,60}
${goto 6}${voffset 4}${font StyleBats:size=16}q${font}${voffset -4}${goto 32}Uptime: ${alignr}${uptime}
${goto 6}${voffset 4}${font StyleBats:size=16}k${font}${voffset -4}${goto 32}Processes: ${alignr}$processes ($running_processes running)
${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Highest: ${alignr 13}CPU${alignr}RAM
${goto 32}${voffset -5.5}${hr 1}
${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1}
${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2}
${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3}
${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4}

${voffset -1}DATE ${hr 2}
${alignc 35}${font Blackjack:size=26}${time %l:%M}${font}
${alignc}${time %A %d %B} 
    
HD ${hr 2}
${goto 3}${voffset 4}${font Poky:size=16}H${font}${goto 29}${voffset -11} Root: ${fs_used_perc /}%${alignr}${fs_size /}
${goto 29} Free: ${fs_free /}${alignr}${fs_bar 8,60 /}


KEYBINDINGS ${hr 2}
    
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+space$alignr Main Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+g$alignr Graphics Editor
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+x$alignr Logout
PrtSc$alignr Screenshot

${voffset -1}NETWORK ${hr 2}
${if_up wlan0}
${font Poky:size=14}Y${font}${goto 32}${voffset -8}SSID: ${wireless_essid wlan0}
${goto 32}Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup wlan0}
${voffset 4}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown wlan0}
${voffset 4}${font Poky:size=13}w${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlan0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://automation.whatismyip.com/n09230945.asp | tail}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup eth0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown eth0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://automation.whatismyip.com/n09230945.asp | tail}
# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup ppp0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown ppp0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}
${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}

All hail the Grand Garboozle!

Offline

#2059 2012-07-07 23:27:03

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

Re: Conky v1.9 Thread

dasterdly wrote:

Hey folks,

Been getting more and more into conky and I'm having issues with a new display that I'm trying to work with. Whenever I start it via terminal, regardless of where I have it aligned to, the top is always cut off. The "No fortunes found" error is expected as I haven't set that yet.

You conky is looking for this:

/home/sinjoro/scripts/horical.sh

and can't find it.


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

Offline

#2060 2012-07-08 01:16:08

dasterdly
New Member
Registered: 2010-10-05
Posts: 5

Re: Conky v1.9 Thread

Sector11 wrote:

You conky is looking for this:

/home/sinjoro/scripts/horical.sh

and can't find it.

Oh yeah, that one I'm expecting; haven't set where I'm going to point it to. What I was really wondering about was why the day of the week and the number are cut off and how to get it to normal.

Offline

#2061 2012-07-08 02:17:14

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

Re: Conky v1.9 Thread

dasterdly wrote:

Oh yeah, that one I'm expecting; haven't set where I'm going to point it to. What I was really wondering about was why the day of the week and the number are cut off and how to get it to normal.

This:

${voffset -64}

is pulling everything up out the top of your conky window.

If I may make a suggestion:

1. Strip your conky the elements that are not working yet. ie: the two bash scripts
2. concentrate on formatting the date and the horizontal line you have ...
3. once those are done, bring in the bash scripts.

aaq4T1Nm.jpg

TEXT
${color 72A4DB}${font Caviar Dreams:bold:size=18}${time %A}${font Caviar Dreams:bold:size=40}${goto 129} ${color}${time %d}${color}
${color 72A4DB}${voffset -50}${font Caviar Dreams:bold:size=24}${time %b}${font Caviar Dreams:bold:size=16}${goto 82}${voffset 0}${color}${time %Y}${color}
${goto 152}${color}${hr 1}
${font Sahara:italic:size=15}${goto 280}${color E0EBF1}fortune here

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

Offline

#2062 2012-07-08 07:26:04

quarkrad
Member
Registered: 2012-06-13
Posts: 20

Re: Conky v1.9 Thread

Sector11 wrote: I took that calendar and added it to the StyleBats test conky I did.
After some editing I have this:

Again, many thanks for the time and effort you have put in - I now have my perfect conky.  You have helped  me understand many of the essentials of this wonderful tool.

Offline

#2063 2012-07-08 13:48:27

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

I am confused about something. Surprise surprise. I need to put the outputs of Home, Ram ect in my rings. And I am not sure how the best way to do it. I could do it in conky with {goto  } and {voffset  } but that wouldn't be right. I know there is a way to do it in lua and that would be the right way to do it, but I can't figure it out. I have read thru the lua tutorial but It left me scratching my head.
Conky line

${font StyleBats:size=10}${color1}x${font}${color2} HOME${goto 95}${fs_used /home}${goto 133}/ ${fs_size /home}${goto 200}${fs_free_perc /home}% Free

lua

--background gradient ############################
--start color
sbr,sbg,sbb,sba=0.9,0.9,0.9,1
--middle color
mbr,mbg,mbb,mba=0.6,0.6,0.6,1
--end color
ebr,ebg,ebb,eba=0.3,0.3,0.3,1
--indicator gradient ##############################
--start color
sir,sig,sib,sia=0,1,0,1
--middle color
mir,mig,mib,mia=1,1,0,1
--end color
eir,eig,eib,eia=1,0,0,1
--settings #########################################
--conky value
num=conky_parse("${fs_used_perc /home}")
--line width
width=10
--circle radius
radius=50
--position
x,y=350,350
--start and end angles for ring
sangle,fangle=0,360
--if you see line artefacts in the circle drawn
--then increase this number in increments of 0.01 until they disappear
--otherwise set 1
overlap=1.09
--call drawing function ############################################################################################################################
gcircle (num,x,y,radius,width,sangle,fangle,sbr,sbg,sbb,sba,mbr,mbg,mbb,mba,ebr,ebg,ebb,eba,sir,sig,sib,sia,mir,mig,mib,mia,eir,eig,eib,eia,overlap)
--###########################################################################################################

Screenshot_at_2012_07_08_09_27_07.jpg

If someone can help me get started on that it wuld be great. Thanks

Offline

#2064 2012-07-08 14:14:10

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

Re: Conky v1.9 Thread

quarkrad wrote:

Sector11 wrote: I took that calendar and added it to the StyleBats test conky I did.
After some editing I have this:

Again, many thanks for the time and effort you have put in - I now have my perfect conky.  You have helped  me understand many of the essentials of this wonderful tool.

I am glad to have helped.

And now a word to the wise: be careful, conky is addictive.  big_smile


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

Offline

#2065 2012-07-08 15:31:39

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

@ S11, you got that right!!!!!!!!!!!!!!!!!

Offline

#2066 2012-07-08 15:54:50

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

Re: Conky v1.9 Thread

Dodge ram wrote:

@ S11, you got that right!!!!!!!!!!!!!!!!!

I know there is an answer for you with LUA in text - I've been looking for it....

... and here it is: HOW TO: using lua scripts in conky direct link to how to use text.  Thank mrpeachy.


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

Offline

#2067 2012-07-08 16:00:33

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

Re: Conky v1.9 Thread

dasterdly wrote:

Hey folks,

Been getting more and more into conky and I'm having issues with a new display that I'm trying to work with. Whenever I start it via terminal, regardless of where I have it aligned to, the top is always cut off. The "No fortunes found" error is expected as I haven't set that yet.

PunBB bbcode test

Right now I have the alignment set to bottom_right so that it's more visible but it would normally be set to top_right. Interesting note, where it gets cut off it right where the screen ends, not sure if that would have any bearing on it or not.

background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.2
update_interval 30
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1020 240
maximum_width 1020
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_inner_margin 0
border_outer_margin 0 
override_utf8_locale yes
default_color white  
alignment bottom_right
uppercase no
text_buffer_size 8196
imlib_cache_size 0 
gap_x 5  
gap_y 0
TEXT

$color${execpi 36000 /home/sinjoro/scripts/horical.sh}${color}
${voffset 5}${goto 198}${color}${hr 1}
${color 72A4DB}${voffset -64}${goto 46}${font Caviar Dreams:bold:size=18}${time %A}${font Caviar Dreams:bold:size=40}${goto 175} ${color}${voffset 0}${time %d}$color
${color 72A4DB}${voffset -50}${font Caviar Dreams:bold:size=24}${goto 46}${time %b}${font Caviar Dreams:bold:size=16}${goto 128}${color}${voffset 4}${time %Y}$color

${voffset -32}${font Sahara:italic:size=15}${goto 280}${color E0EBF1}${execi 30 fortune fran}

${voffset} object not only prints text in desired offset but also sets cursor position from which next printed text is counted.
So lets do the math.
First you set font to 8px hight.
Then you draw 3 lines in Conky normally and add 5px to it with ${voffset 5} - it gives you 3 lines by 8px = 24px + 5px = 29px.
Then you add next line output ( +8px = 37px cursor position) and ${voffset -64} is illegal so it sets cursor at 8px position (still 8px font, remember?). There you print 18px and 40px text. 10px and 32px of it will print above Conky window.
So next line with 40px font size (+40px = 48px cursor position) you move cursor to ${voffset -50} which is illegal and set cursor at 40px (still 40px font, remember?), where you print with 24px and 16px with font size which prints normally (and adds  ${voffset 4} to the cursor position = 44px).
Then next line (+16px = 60px cursor, font 16px from previous line) you go -32px (${voffset -32}) = 28px cursor position where you print with 15px font size (should be normally visible)

So there you have your "cut off".



PS: I've forgot to give you some advice for voffseting.
Set your default font to 10px size (xftfont 123:size=10) - it will come in handy when voffseting as every new line could be set 10px belove previous one. But to complete that you need to end your every line with ${font} object which reset font settings to default.
That way it's easier to comprehend where text cursor actually is "right now".

Last edited by dk75 (2012-07-08 16:26:28)


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

#2068 2012-07-08 18:42:19

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

@S11 So have I off and on. Some things I just can't wrap my head around

Offline

#2069 2012-07-08 18:53:24

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

Re: Conky v1.9 Thread

Dodge ram wrote:

@S11 So have I off and on. Some things I just can't wrap my head around

oil & water
lua & sector11

What can I say.  I can edit them, manipulate them - can't create one worth a dime!


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

Offline

#2070 2012-07-08 19:02:57

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

Re: Conky v1.9 Thread

OK - I have a new look:

Desktop 1 of 2 · · · · Desktop 2 of 2 - really busy!
aahuFYlA.jpg····aawJwr0X.jpg

If you are interested in one of the conkys just let me know.

sqlpython asked here they are: Conky-10.tar.gz
Take note: 5.13MB it has everything found here: 2086 - I think!!!!

Even changed my tint2.

Last edited by Sector11 (2014-04-10 20:14:01)


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

Offline

#2071 2012-07-08 19:06:55

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

Re: Conky v1.9 Thread

dk75 wrote:

So there you have your "cut off".

Extremely well said!  Best explanation I have seen to date about ${voffset} and it's pitfalls.

Thank you.


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

Offline

#2072 2012-07-08 19:23:21

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Conky v1.9 Thread

Sector11 wrote:

OK - I have a new look:

Desktop 1 of 2 · · · · Desktop 2 of 2 - really busy!
aahuFYlA.jpg····aawJwr0X.jpg

If you are interested in one of the conkys just let me know.

Even changed my tint2.

S11 that is a very cool New Look!!

Offline

#2073 2012-07-09 02:03:53

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

Re: Conky v1.9 Thread

falldown wrote:
Sector11 wrote:

OK - I have a new look:

S11 that is a very cool New Look!!

Thanks.  It'll probably last a long time, I don't change things that often.
I like all those conkys and still running between 1 & 4% CPU Average.


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

Offline

#2074 2012-07-09 02:08:09

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

Sector11 wrote:

OK - I have a new look:

If you are interested in one of the conkys just let me know.

Even changed my tint2.


WOW!!! That is amazing.. Nice work mate!


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

Be excellent to each other!

#2075 2012-07-09 03:28:43

sqlpython
#! Die Hard
From: New England
Registered: 2011-11-28
Posts: 931

Re: Conky v1.9 Thread

Just updating my necro post #2045 4 days and 30 posts ago..

if anyone had any solution ideas they weren't talking.
So, after some banging my head against the wall I fixed my two issues which were... both on Xfce4 desktops...

#1...Transparent in Wheezy BUT the Processes displayed (Last 8 lines) ghost over the previous 8 proceses as they up date in the bottom of the Conky display..
#2...Sid Black Background won't go transparent except by CLI command..

  Turned out not to be particular to my Conkyrc in the final repair, anyway..

Last edited by sqlpython (2012-07-09 03:32:18)


OHCG #!, Jessie,, Siduction-13.1Slackware 14Bridge,, Sabayon 13.4,

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