1,226

Re: My Conky Config

mrpeachy wrote:
wlourf wrote:

ah that's nice for displaying only a part of a Lua script (I save it !)

It's a long time i haven't read this thread, you made some nice stuffs recently !

I've seen your idea for a bliking cursor,
here is mine attempt, I've posted it on french forums some months ago but I think you don't read it !

can't say i browse many French language forums! smile

and thank you very much wlourf

i wish i knew more of the ins and outs of codewriting though... im getting stuck with lua not doing what i want it to.

if you fancy a lua challenge, how about writing some code to wrap text in lua...

ive seen some examples elsewhere but cant get them to work for me.

i have a vague idea how to go about it... but i dont want to get bogged down working on it

I don't need a challenge for the moment, thanks !! big_smile
But wrapping text seems not so difficult with the text_extents functions of cairo ... !
Actually, I'm looking in your idea of interactive conky, I like the idea of push up last conkys in the column, and I can't get it with ob shorcuts only !
So your videos give me others ideas to achieve that ! this will be my challenge for this week big_smile

1,227

Re: My Conky Config

here is the current status of my interactive conky

conkybar!

http://omploader.org/tNWh1bA

i decided on a horizontal format so button position doesnt change, and i have a script that launches the buttons at the same time as the conky

i also have the buttons activating scripts so just 1 button for roll up and roll down

still rough around the edges but the mechanics are all working... now i just need to pretty up the output!

here is what it looks like working

http://blip.tv/file/4102178

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

1,228

Re: My Conky Config

mrpeachy wrote:

here is the current status of my interactive conky

conkybar!

http://omploader.org/tNWh1bA

i decided on a horizontal format so button position doesnt change, and i have a script that launches the buttons at the same time as the conky

i also have the buttons activating scripts so just 1 button for roll up and roll down

still rough around the edges but the mechanics are all working... now i just need to pretty up the output!

here is what it looks like working

http://blip.tv/file/4102178

That's fantastic. A drop down menu ConkyBar - Give it a name contest:

Mine: The Conky CrispyCrunchBang Bar

One questuon, when they are "closed" are the conkys still running using CPU or does this "kill" each conky process?

Not that it makes a difference really there are some pretty heavy duty conkys out there and my 14 on boot up.  But al lot of them only get called once and some onky ever 30 minutes, so not so bad on resources.

Last edited by Sector11 (2010-09-09 21:47:20)

1,229

Re: My Conky Config

Sector11 wrote:
mrpeachy wrote:

here is the current status of my interactive conky

conkybar!

http://omploader.org/tNWh1bA

i decided on a horizontal format so button position doesnt change, and i have a script that launches the buttons at the same time as the conky

i also have the buttons activating scripts so just 1 button for roll up and roll down

still rough around the edges but the mechanics are all working... now i just need to pretty up the output!

here is what it looks like working

http://blip.tv/file/4102178

That's fantastic. A drop down menu ConkyBar - Give it a name contest:

Mine: The Conky CrispyCrunchBang Bar

One questuon, when they are "closed" are the conkys still running using CPU or does this "kill" each conky process?

Not that it makes a didderence really there are some pretty heavy duty conkys out there and my 14 on boot up.  But al lot of them only get called once and some onky ever 30 minutes, so not so bad on resources.

There is only 1 conky running, and it always runs.
what is changing is what the lua script is displaying through that conky

when the sections are closed the lua script will be using less resources, it wont be doing all the calculations or rendering text and bars unless that part of the script is active... i havn't tested it to see if there is a significant difference yet

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

1,230

Re: My Conky Config

mrpeachy wrote:
Sector11 wrote:
mrpeachy wrote:

here is the current status of my interactive conky

conkybar!

http://omploader.org/tNWh1bA

i decided on a horizontal format so button position doesnt change, and i have a script that launches the buttons at the same time as the conky

i also have the buttons activating scripts so just 1 button for roll up and roll down

still rough around the edges but the mechanics are all working... now i just need to pretty up the output!

here is what it looks like working

http://blip.tv/file/4102178

That's fantastic. A drop down menu ConkyBar - Give it a name contest:

Mine: The Conky CrispyCrunchBang Bar

One questuon, when they are "closed" are the conkys still running using CPU or does this "kill" each conky process?

Not that it makes a difference really there are some pretty heavy duty conkys out there and my 14 on boot up.  But al lot of them only get called once and some onky ever 30 minutes, so not so bad on resources.

There is only 1 conky running, and it always runs.
what is changing is what the lua script is displaying through that conky

when the sections are closed the lua script will be using less resources, it wont be doing all the calculations or rendering text and bars unless that part of the script is active... i havn't tested it to see if there is a significant difference yet

didderence ??? How did I miss that!

OH OK, I figured that there were multiple conkys.  This makes it even better.  big_smile

1,231

Re: My Conky Config

I added something new to my conky. Not as exciting as MrPeachy's dropdown luascript, i know.
It's based on a script from schmiddim and i edited it. Now it just shows the number of connections on my network.

Add this to conkyrc (change wlan0 to eth0 for wired connection)

${execi 300 ~/.conky/nmap.pl wlan0}

and here's the nmap.pl script:

#!/usr/bin/perl
$retval = `nmap -sP -T4 192.168.0.1/24`;
$ctr=0;
$_=$retval;
    while (/([0-9]+\.){3}[0-9]+/g) {
    $ctr++;
  }
print "$ctr hosts up";

Edit: Thanks to Iggykoopa there's a much easier way to do this: http://crunchbanglinux.org/forums/post/85352/#p85352

Last edited by Tunafish (2010-09-10 10:05:12)

Compaq Presario A900 - #! Statler Alpha2 Openbox
Privacy & Security on #! - Application List

1,232

Re: My Conky Config

Sector11 wrote:

OH OK, I figured that there were multiple conkys.  This makes it even better.  big_smile

here what i'm seeing cpu usage wise

with my system idle and just the conkybar running, with all sections active, i get about 8% cpu, which is about what I was getting from my conkrc only display (i have an old computer!)

with only the system monitor part active (so i can see cpu usage) i'm getting 4%
closing sections does indeed make the lua script lighter as i thought it would

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

1,233

Re: My Conky Config

mrpeachy wrote:
Sector11 wrote:

OH OK, I figured that there were multiple conkys.  This makes it even better.  big_smile

here what i'm seeing cpu usage wise

with my system idle and just the conkybar running, with all sections active, i get about 8% cpu, which is about what I was getting from my conkrc only display (i have an old computer!)

with only the system monitor part active (so i can see cpu usage) i'm getting 4%
closing sections does indeed make the lua script lighter as i thought it would

PERFECT!  You have managed to create a masterpiece, OK, some rough corners yet, AND made it lighter on resources.  smile

People will LOVE IT!  I do.  big_smile

Last edited by Sector11 (2010-09-10 17:53:10)

1,234

Re: My Conky Config

Hello:

The "rules", err tips suggest posting right away. So here's my humble mess of a desktop.
http://i771.photobucket.com/albums/xx360/E522260/Screenshot-7.png

The custom stuff is the "Remote" section of the panel which does an ssh (w\key) remote command to my account to du -sh the backups and public_html
directories.
The center widget is my latest addition. It updates every 30 minutes and restarts the widget to show the track of the sun "moving" across the map.

3 weeks ago, I didn't even have conky installed.
I am here to help until I get inspired to code some more.

I don't use #! but I have it on good authority, that doesn't matter here.

JJ aka Habitual

Last edited by Habitual (2010-09-10 22:20:10)

1,235

Re: My Conky Config

Habitual wrote:

3 weeks ago, I didn't even have conky installed.
I am here to help until I get inspired to code some more.

I don't use #! but I have it on good authority, that doesn't matter here.

JJ aka Habitual

Hi Habitual, welcome to the #! forums.

Nice conky - nice first post.

Three week huh, what took you so long? big_smile

1,236

Re: My Conky Config

Sector11:

I "think" I have CRS. big_smile

1,237

Re: My Conky Config

Habitual wrote:

Sector11:

I "think" I have CRS. big_smile

To keep this thread on topic check this post!

1,238

Re: My Conky Config

Can't Remember Stuff (polite form) cool

1,239

Re: My Conky Config

Hello:
What is the correct operator for equal to or greater than ?
>= ? or => ?

What I could find in the snippets I have is this comparison operator: if whole <= num_files
so I came up with this (pseudo) code...

today=`date "+%Y%m%d"`
if DTEND;VALUE=DATE => $today

Answer: RTFM:
Valid operands are: '>', '<', '>=', '<=', '==', '!='.

God help me, I am starting to want to code.

Doubtless, I will need some help (don't we all) sooner or later and if it works "out of the box"
I'll be surprised! big_smile

Thanks!

Last edited by Habitual (2010-09-11 03:07:24)

Re: My Conky Config

It's usually >= (arrow first). What language are you working with?

"Stranger, if you passing meet me and desire to speak to me, why should you not speak to me? And why should I not speak to you?" Walt Whitman, 'To You'.

1,241

Re: My Conky Config

safetycopy:

GNU bash, version 4.0.38 and conky 1.8.0

I was just thinking out loud. smile

But I am sucking data out of a Firefox plugin into a conky widget.
That's the goal, anyway...

Last edited by Habitual (2010-09-11 11:44:18)

Re: My Conky Config

Habitual wrote:

I was just thinking out loud. smile

Okey doke!

I'll point you to this thread for some links on Bash, just in case, and this article for an explanation of Bash comparison operators :-)

"Stranger, if you passing meet me and desire to speak to me, why should you not speak to me? And why should I not speak to you?" Walt Whitman, 'To You'.

1,243

Re: My Conky Config

safetycopy wrote:
Habitual wrote:

I was just thinking out loud. smile

Okey doke!

I'll point you to this thread for some links on Bash, just in case, and this article for an explanation of Bash comparison operators :-)

Both are worth GOLD!

1,244

Re: My Conky Config

safetycopy:

I'm all over it. I have the Advanced Bash Scripting Guide (and 17 years experience) in my tool belt.
Thanks for the pointer!

It is really just an exercise in the learning curve (and an itch I have to scratch) really, since I am sucking data out of
an iCal formatted file from a FF plugin, but it's good practice.

but for now, I am reminded of the wisdom of "Of course it doesn't work, it's a PROTOTYPE"

Peace.

1,245

Re: My Conky Config

Habitual wrote:

but for now, I am reminded of the wisdom of "Of course it doesn't work, it's a PROTOTYPE"

aka: Undocumented Feature

1,246

Re: My Conky Config

Man, oh man, my script-fu is rusty.

I'd like to buy a vowel.

1,247

Re: My Conky Config

http://thumbnails32.imagebam.com/9802/45329f98018721.jpg

Everyone comments on the Word Clock in my Conky ... and I learned how to add an "icon" to the Conky.  Thought I'd share the Script.
Of course, you can change the Font ... theme, size and colors.  Experiment.

# 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/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Sans-Serif:size=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
#default_shade_color black
default_outline_color white
alignment middle_right
gap_x 30
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 222222

TEXT
${font Sans-Serif:bold:size=12}
${color}I T ${color1}L ${color}I S ${color1}A S T I M E
${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}Q U A R T E R ${color1}D C
${if_match ${exec date +"%M"} >= 20}${if_match ${exec date +"%M"} < 30}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} >= 25}${if_match ${exec date +"%M"} < 30}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 5}${if_match ${exec date +"%M"} < 10}${color}${endif}${endif}F I V E ${color1}X
${if_match ${exec date +"%M"} >= 30}${if_match ${exec date +"%M"} < 35}${color}${endif}${endif}H A L F ${color1}B ${if_match ${exec date +"%M"} >= 10}${if_match ${exec date +"%M"} < 15}${color}${endif}${endif}T E N ${color1}F T O
${else}${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}Q U A R T E R ${color1}D C
${if_match ${exec date +"%M"} >= 35}${if_match ${exec date +"%M"} < 45}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} < 40}${if_match ${exec date +"%M"} >= 35}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 55}${color}${endif}F I V E ${color1}X
H A L F B ${if_match ${exec date +"%M"} >= 50}${if_match ${exec date +"%M"} < 55}${color}${endif}${endif}T E N ${color1}F ${color}T O${color1}
${endif}${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} > 5}${color}${endif}${endif}P A S T ${color1}E R U ${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}N I N E
${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S I X ${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}T H R E E
${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T W O
${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}E I G H T ${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif}E L E V E N
${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}S E V E N ${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}T W E L V E
${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif}T E N ${else}${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}N I N E
${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}S I X ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T H R E E
${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}T W O
${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}E I G H T${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif} E L E V E N
${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S E V E N${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif} T W E L V E
${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}T E N ${endif}${color1}S E ${if_match ${exec date +"%M"} < 5}${color}${endif}O C L O C K
${color}${if_running mocp}${font Sans-Serif:bold:size=8}MUSIC ${hr 2}
${font Sans-Serif:normal:size=8}${execi 10 mocp -Q '%song\n%artist\n%album'}
${execbar mocp -Q '%cs/%ts*100' | bc -l}
${endif}


${image ~/.2164.png -p 65,270 -s 100x100}


${color1}${font Sans-Serif:bold:size=12}Host:${alignr}$nodename
OS:${alignr}Debian Sid
DE/WM:${alignr}Openbox
Kernel:${alignr}$kernel
Freq:$alignr${freq_g}GHz
${hr 2}
RAM:$alignr$memperc%
CPU1:$alignr${cpu cpu1}%
CPU2:$alignr${cpu cpu2}%
SWAP:$alignr$swap/$swapmax
HD:$alignr${fs_used /}/${fs_size /}
Uptime:$alignr${uptime}
${hr 2}
U/L Speed:$alignr${upspeed eth0}
D/L Speed:$alignr${downspeed eth0}
${hr 2}

To add an 'icon' to your Conky you, first, need to add the icon image as a new ~/. file (to make it hidden) . . . as in: ${image ~/.2164.png -p 65,270 -s 100x100}
These numbers are for positioning the icon, within the Conky > 65,270
This is for the size of the icon > 100x100

Registered Linux User: #497030
LinuxMint Forum | DeviantART page | Lost-in-the-Box Forum  |  Ask.Debian
#!Crunchbang 'Statler' (Openbox) -- LinuxMint-Debian-Fluxbox Edition

1,248

Re: My Conky Config

vrkalak:

does your word clock (Love it) only update/change the display every 5 minutes like mine does?

1,249

Re: My Conky Config

Habitual wrote:

vrkalak:  Does your word clock (love it) only update/change the display every 5 minutes like mine does?

YES . . . but, generally speaking -- it's still awesome.

Registered Linux User: #497030
LinuxMint Forum | DeviantART page | Lost-in-the-Box Forum  |  Ask.Debian
#!Crunchbang 'Statler' (Openbox) -- LinuxMint-Debian-Fluxbox Edition

1,250

Re: My Conky Config

It rocks! I don't use it myself, but I did stash the code. smile

Thanks!