SEARCH

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

You are not logged in.

#6226 2013-09-25 08:28:12

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

Re: Conky v1.9 Thread

apsoul wrote:

Here is output of nvidia-smi -a
[...]

Here's AWK (conky_nvidia.awk):

#!/usr/bin/gawk -f

BEGIN \
{
	FS=":"
}

/Product Name/ \
{
	i++
	gsub(/^ +| +$/,"",$2)
	gfxname[i]=$2
}

/Temperature/ \
{
	getline
	gsub(/^ +| +$/,"",$2)
	gfxtemp[i]=$2
}

/Memory Usage/ \
{
	getline
	gsub(/^ +| +$/,"",$2)
	memtotal[i]=$2
	getline
	gsub(/^ +| +$/,"",$2)
	memused[i]=$2
	getline
	gsub(/^ +| +$/,"",$2)
	memfree[i]=$2
}

END \
{
	for (x in gfxname)
	{
		print gfxname[x]"\t:\t"gfxtemp[x]
		print "\tMemory"
		print "\ttotal\t:\t"memtotal[x]
		print "\tused\t:\t"memused[x]
		print "\tfree\t:\t"memfree[x]
		print ""
	}
}

and here's usage (make it executable)

nvidia-smi -a | conky_nvidia.awk

Last edited by dk75 (2013-09-25 23:31:57)


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

Help fund CrunchBang, donate to the project!

#6227 2013-09-25 14:06:24

oliverseal
Member
Registered: 2013-09-16
Posts: 18

Re: Conky v1.9 Thread

dk75 wrote:
END \
{
	for (x in gfxname)
	{
		print gfxname[x]"\t:\t"gfxtemp[x]
		print "\tMemory"
		print "\ttotal\t:\t"memtotal[x]
		print "\tused\t:\t"memused[x]
		print "\tfree\t:\t"memfree[x]
		print ""
	}
}

Nice. Thanks, dk75! Having variables to format at the end is very helpful.
For mine I had to remove the "getline" on Gpu to get the Temp:

/Gpu/ \
{
  #getline
  gsub(/^ +| +$/,"",$2)
  gfxtemp[i]=$2
}

Offline

#6228 2013-09-25 14:19:02

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

Re: Conky v1.9 Thread

oliverseal wrote:

For example. I have two cards, too. To get the GPU temp I'm using this:

nvidia-smi -a | grep -Pzo "Gpu.*([0-9]+?) C" | cut -d: -f2
# outputs 
#  57 C
#  74 C

nvidia-smi -a output gets piped into the grep command and I'm telling it to:

  • -P: use Perl-style regular expressions

  • -z: consider the whole file as ONE BIG LINE

  • -o: only return the portion that matches -- as opposed to the whole line, which is the grep default

Then I'm piping that into cut. cut is a handy little guy that takes out selected parts of a text.

  • -d: the delimiter. the ":" says that I want to use a colon as my delimiter

  • -f2: this tells it to use the second field split up by my delimiter

It sounds like a lot, but it's tiny, really.

I have struggled with the likes of grep / sed/awk for a long time.
That hast to be the best example I have seen.  It's a keeper!

Thank you!


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

Offline

#6229 2013-09-25 14:25:55

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

Re: Conky v1.9 Thread

@ dk75

And along cone dk75 with awk a complete language of it's own.  I was reading somewhere that a "python" programmer stated that his professor still used "awk" to program everything even though he teachers other to use other 'more modern languages'.  He still uses what he knows best.

Would that be you dk75?  You seem to do magic with awk.


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

Offline

#6230 2013-09-25 14:48:05

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: Conky v1.9 Thread

boisei0 wrote:

Another set of questions with my interactive conky:
- Can different conky's overlap in position?
- Is there a(n easy) way to call/close another conky with a set of variables without writing them to file?
- Is it possible to use cairo for a drawing outside the borders of the parent conky?

Guess that's it wink

Sorry for the belated answer to this. Somehow I missed it, and was just made aware of it by a friend...

1. PackRat got it right. You can build conky in layers, if you want. My conkys are built on 3: a background conky (full screen, with nothing but the background lua and graphics), then all the individual conkys over it (8 of them), and then a foreground conky on top (also full screen, with nothing on it, except the pi symbol on the bottom right corner).

The "secret" lays on the "own_window_type" line, and on the script you use to start them up. If you set it to "desktop", that conky will go straight to the bottom, no matter when you start it. It will become a part of your wallpaper, so to speak. My background conky is set up that way.
Then, all individual conkys are set up to "normal", and can overlap each other, depending on the order they're started. That's when the startup script comes in handy. And finally, the full screen, "normal" type foreground conky, that's there to insure I can right click anywhere on the screen and get openbox to show. About the startup script, now I'm starting to investigate a way to start conkys one at a time (start one only after the one before it is already running), so I can get them  displayed in a predictable way.

If you want for information on that, look on my sigline. smile

2. I use different startup scripts to start different sets of conkys. For example, if I don't have an internet signal where I'm at, since I have several conkys that get data from it, my computer tends to freeze for long periods when the conkys try to communicate with the sites and can't. So I made a different startup script to start only the conkys that don't use the 'net, and then made an alias (nic "no internet conky") to simplify the process.

3. I don't know. Never been to Egypt...  roll

Offline

#6231 2013-09-25 15:49:38

oliverseal
Member
Registered: 2013-09-16
Posts: 18

Re: Conky v1.9 Thread

Sector11 wrote:

That hast to be the best example I have seen.  It's a keeper!
Thank you!

I'm glad to help, Sector11. Feels good to be able to give back to one of the most helpful posters on the #! forums!

Offline

#6232 2013-09-25 17:23:51

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

Re: Conky v1.9 Thread

Inodoro Pereyra wrote:
boisei0 wrote:

- Is it possible to use cairo for a drawing outside the borders of the parent conky?

3. I don't know. Never been to Egypt...  roll

Well done!  But I'm going to be chuckling over this ending for a long time.  lol   lol   lol   lol  lol  out of 5


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

Offline

#6233 2013-09-25 17:24:55

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

Re: Conky v1.9 Thread

oliverseal wrote:

I'm glad to help, Sector11. Feels good to be able to give back to one of the most helpful posters on the #! forums!

From what I have seen of your posts you will be doing the same as well.

@ dk75 and oliverseal - my current "conky.test" in action.
2013_09_25_14_42_41_1619x623_Sector11.jpg
Thanks to all; apsoul, fog, oliverseal and dk75

Last edited by Sector11 (2013-09-25 17:46:30)


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

Offline

#6234 2013-09-25 22:57:33

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

Re: Conky v1.9 Thread

A video of the current interactive conky I am working on..
[video]http://youtu.be/fzGq6pKlXeA[/video]
not the best quality.  neutral

EDIT: sorry for the tv background sound. smile

Last edited by falldown (2013-09-25 22:59:24)

Offline

#6235 2013-09-25 23:35:37

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

Re: Conky v1.9 Thread

oliverseal wrote:

Nice. Thanks, dk75! Having variables to format at the end is very helpful.
For mine I had to remove the "getline" on Gpu to get the Temp:

/Gpu/ \
{
  #getline
  gsub(/^ +| +$/,"",$2)
  gfxtemp[i]=$2
}

Because it was meant to be

/Temperature/ \
{
  getline
  gsub(/^ +| +$/,"",$2)
  gfxtemp[i]=$2
}

but forgot to change that at forum post - done now.


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

#6236 2013-09-26 02:08:51

mustlearnuse
Member
Registered: 2013-09-12
Posts: 23

Re: Conky v1.9 Thread

falldown wrote:

A video of the current interactive conky I am working on..
[video]http://youtu.be/fzGq6pKlXeA[/video]
not the best quality.  neutral

EDIT: sorry for the tv background sound. smile

I have to admit. i was kinda drooling while watching this. wondering how much of a resource hog this might be on my 2 gigs of ram old laptop

Offline

#6237 2013-09-26 02:29:33

apsoul
Member
Registered: 2011-10-25
Posts: 19

Re: Conky v1.9 Thread

@ dk75, oliverseal, and s11

Thanks for all the help, I've been rather busy today and I'm coming down with a nasty head cold to boot. I am very excited and somewhat intimidated by awk, regex, grep, etc. I've barely had enough time to look through all the information yall have provided, but I did set up the conky_nvidia.awk as described by dk75. Awesome stuff, thank you. I'm glad that my questions spawned a learning experience for others as well. I think this is one of the main reasons I end up back at #! after venturing off to do the distro-hop, or get sucked into windows gaming... because everyone here is awesome and so helpful.

Thanks again, and I am looking forward to fiddling around with your scripts, suggestions, and diving into programming/scripting/whathaveyou. I will be sure to let you all know how it goes, and will most likely be back with more questions.

~me

Offline

#6238 2013-09-26 02:55:19

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

Re: Conky v1.9 Thread

mustlearnuse wrote:

I have to admit. i was kinda drooling while watching this. wondering how much of a resource hog this might be on my 2 gigs of ram old laptop

lol
Nope.. pretty light on mem.. running 2 conkys at 36mb.
(which is more then your standard conky, but both conkys are calling 4 lua scripts)

Offline

#6239 2013-09-26 04:15:26

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

Re: Conky v1.9 Thread

falldown wrote:

EDIT: sorry for the tv background sound. smile

Sound schmound!  That's some neat stuff you got running there!


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

Offline

#6240 2013-09-26 04:38:14

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

Re: Conky v1.9 Thread

Over in the screenshot thread ...

Sector11 wrote:
lwfitz wrote:

I woke up this morning set out to confuse Sector11.......... YES! I HAVE SUCCEEDED!

Oh Great Kernel of Linuxlandia, strike down this ... this ... self admitted confuser ... and give me his computer(s).  ]:D ]:D ]:D

Well played!  Caught me hook, line and sinker! cool

The link to the files

So what did I do, I created something similar but different!  I took both conkys and made them one, making a few changes along the way.  One change was to take the image across the top and burn it onto lwfitz's "wall" as I have no intention of using 'his' conky without his wallpaper (I have a blank wall and the original image as well).

2013_09_26_01_10_06_1920x1080_Sector11.jpg
Yup, looks good ... with a touch of Teo's weather.

so  tongue to you lwfitz!!!   lol  lol  lol  wink


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

Offline

#6241 2013-09-26 04:54:39

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

Re: Conky v1.9 Thread

big_smile  big_smile  big_smile  big_smile any day that I can confuse the great Sector11 is a good day!

How in the world did you get it all into one config? For the life of me I couldnt get the gradbars above the image thats why I created two conkys

Offline

#6242 2013-09-26 16:59:17

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

Re: Conky v1.9 Thread

lwfitz wrote:

big_smile  big_smile  big_smile  big_smile any day that I can confuse the great Sector11 is a good day!

How in the world did you get it all into one config? For the life of me I couldnt get the gradbars above the image thats why I created two conkys

Well one conky started to over-write the other ... so out of desperation, ["lwfitz, ain't gonna best me!" type mind set] I made it one conky to rule the desktop. EDIT: Twice on the same day! :8

First because of my 3x3x3x3 borders the image was loosing shadows at the width you set to the "panel" image so I created a new wallpaper: Debian_brushed_aluminium_lwfitz_2.jpg.  I used your panel, your wall because the conky is your idea I will always use it with your stuff.  big_smile
1920x1080 --> Debian_brushed_aluminium_lwfitz_2.jpg

Next I searched for my Athlon X3 and NVIDIA logos to use as I don't have 6 CPUS ( you capitalist you! - and I mean that in the "sigh, I wish" kinda way ) O:) ... then came the conky:

2-4-1.conky

# killall conky && conky -c /media/5/Conky/lwfitz_Conky/2-4-1.conky &
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
#own_window_colour gray
own_window_class Conky
own_window_title S11

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 1920 268 	## w|h
maximum_width 1920		## w

gap_x 0 # left-right
gap_y 12 # up-down

alignment top_left
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Monofur:bold:size=11
xftfont PointFree:bold:size=11

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades no #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 4
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
### background ###############################################################
#${lua draw_bg {corner_radius,x_position,y_position,width,height,color,alpha,draw_type,line_width,outline_color,outline_alpha}}
#note for background: set width=0 - width will be conky window width, set height=0 - height will be conky window height
# draw_type: 1=fill, 2=outline(must specify line_width), 3=outline and fill (must specify line_width, outline_color and outline_alpha)

### gradient bars ############################################################
#${lua gradbar {x_position,y_position,"conky_object",object_max_value,number_of_divisions,division_width,division_height,division_gap,bg_color,bg_alpha,start_color,start_alpha,mid_color,mid_alpha,end_color,end_alpha}}
### calendar #################################################################
#${lua luacal {x_position,y_position,"title_font",title_fontsize,title_color,title_alpha,"dates_font",dates_fontsize,dates_color,dates_alpha,"highlight_font",highlight_fontsize,highlight_color,highlight_alpha,"spacer",colum_gap,title_gap,row_gap,start_day}
#note for calendar: start day... 0=sunday, 1=monday ... "spacer" can help align calendar with non fix width fonts
## textured background ###############################################################
#${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}
## lua draw images ###############################################################
#${lua luaimage {x_position,y_position,width,height,"/path/to/image"}}
#note for images: set width=0 - width will be image width, set height=0 - height will be image height
## lua draw text ###############################################################
#${lua luatext {x_position,y_position,color,alpha,"font",fontsize,"justify"}}
#note for text: justify can be "r" = right, "c" = center, "l" = left
#${lua draw_bg {10,0,0,0,0,0x000000,0.3}}
#######################################################  End LUA Settings  ###


## Set the path to your script here.
lua_load /media/5/Conky/lwfitz_Conky/allcombined_2.lua
lua_draw_hook_post

update_interval 1

#${image /media/5/Conky/images/red+x.png -p 620,15 -s 180x108}
TEXT
${texeci 1800 bash $HOME/AccuW/BsAs/1b1}\
${image /media/5/Conky/images/athlon_ii_x3_logo.png -s 33x40 -p 25,20}\
${image /media/5/Conky/lwfitz_Conky/ram.png -s 45x45 -p 285,17}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 220,15}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 550,15}\
${image /media/5/Conky/images/nvidia_logo.png -s 40x40 -p 520,20}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 40x40 -p 630,135}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\

${goto 65}CPU0 ${if_match ${cpu cpu0}<10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
${goto 150}CPU2 ${if_match ${cpu cpu2}<10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}%${goto 340}RAM${goto 380}${mem}${goto 435}/ ${memmax}\
	${voffset 15}${goto 1240}/root   ${fs_used_perc /}%${voffset -15}\
${goto 260}${voffset 10}${platform f71882fg.2560 temp 1}${goto 585}${nvidia temp}${voffset -10}
${goto 65}CPU1 ${if_match ${cpu cpu1}<10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}%\
${goto 150}CPU3 ${if_match ${cpu cpu3}<10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%${goto 340}SWAP${goto 393}${swap}${goto 435}/ ${swapmax}\
${voffset -30}${font PointFree:bold:size=50}${goto 820}${time %T}${font}\
	${voffset 16}${goto 1240}/home   ${fs_used_perc /home}%${voffset -16}
${font PointFree:bold:size=29}${goto 840}${time %a %x}${font}${image $HOME/AccuW/BsAs/cc.png -p 620,15 -s 180x108}
${goto 1200}M/5   ${fs_used_perc /media/5}%
${goto 690}${execpi 600 sed -n '29p' $HOME/AccuW/BsAs/curr_cond} / ${execpi 600 sed -n '30p' $HOME/AccuW/BsAs/curr_cond}\
${goto 840}Sun Rise  ${execpi 600 sed -n '39p' $HOME/AccuW/BsAs/curr_cond}\
	${goto 1020}Set ${execpi 600 sed -n '40p' $HOME/AccuW/BsAs/curr_cond}\
	${goto 1200}M/6   ${fs_used_perc /media/6}%
${goto 840}Moon Rise ${execpi 600 sed -n '41p' $HOME/AccuW/BsAs/curr_cond}\
${goto 1020}Set ${execpi 600 sed -n '42p' $HOME/AccuW/BsAs/curr_cond}\
${goto 1200}M/7   ${fs_used_perc /media/7}%

allcombined_2.lua - no need to touch this at all

--[[ by mrpeachy - 
combines background bar and calendar functions
]]
require 'cairo'
require 'imlib2'

function rgb_to_r_g_b(col_a)
return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
end

function conky_gradbar(bartab)
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--convert to table
local bartab=loadstring("return" .. bartab)()
local bar_startx=bartab[1]
local bar_starty=bartab[2]
local number=bartab[3]
local number=conky_parse(number)
local number_max=bartab[4]
local divisions=bartab[5]
local div_width=bartab[6]
local div_height=bartab[7]
local div_gap=bartab[8]
local bg_col=bartab[9]
local bg_alpha=bartab[10]
local st_col=bartab[11]
local st_alpha=bartab[12]
local mid_col=bartab[13]
local mid_alpha=bartab[14]
local end_col=bartab[15]
local end_alpha=bartab[16]
--color conversion
local br,bg,bb,ba=rgb_to_r_g_b({bg_col,bg_alpha})
local sr,sg,sb,sa=rgb_to_r_g_b({st_col,st_alpha})
local mr,mg,mb,ma=rgb_to_r_g_b({mid_col,mid_alpha})
local er,eg,eb,ea=rgb_to_r_g_b({end_col,end_alpha})
if number==nil then number=0 end
local number_divs=(number/number_max)*divisions
cairo_set_line_width (cr,div_width)
--gradient calculations
for i=1,divisions do
if i<(divisions/2) and i<=number_divs then
colr=((mr-sr)*(i/(divisions/2)))+sr
colg=((mg-sg)*(i/(divisions/2)))+sg
colb=((mb-sb)*(i/(divisions/2)))+sb
cola=((ma-sa)*(i/(divisions/2)))+sa
elseif i>=(divisions/2) and i<=number_divs then
colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+mr
colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+mg
colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+mb
cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ma
else
colr=br
colg=bg
colb=bb
cola=ba
end
cairo_set_source_rgba (cr,colr,colg,colb,cola)
cairo_move_to (cr,bar_startx+((div_width+div_gap)*i-1),bar_starty)
cairo_rel_line_to (cr,0,div_height)
cairo_stroke (cr)
end
--#########################################################################################################
end-- if updates>5
bartab=nil
colr=nil
colg=nil
colb=nil
cola=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function

function conky_draw_bg(bgtab)
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--#########################################################################################################
--convert to table
local bgtab=loadstring("return" .. bgtab)()
local r=bgtab[1]
local x=bgtab[2]
local y=bgtab[3]
local w=bgtab[4]
local h=bgtab[5]
local color=bgtab[6]
local alpha=bgtab[7]
if w==0 then 
w=tonumber(conky_window.width)
end
if h==0 then
h=tonumber(conky_window.height)
end
cairo_set_source_rgba (cr,rgb_to_r_g_b({color,alpha}))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
--the drawing part---------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
--#########################################################################################################
bgtab=nil
w=nil
h=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function

function conky_luacal(caltab)
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--####################################################################################################
local caltab=loadstring("return" .. caltab)()
local cal_x=caltab[1]
local cal_y=caltab[2]
local tfont=caltab[3]
local tfontsize=caltab[4]
local tc=caltab[5]
local ta=caltab[6]
local bfont=caltab[7]
local bfontsize=caltab[8]
local bc=caltab[9]
local ba=caltab[10]
local hfont=caltab[11]
local hfontsize=caltab[12]
local hc=caltab[13]
local ha=caltab[14]
local spacer=caltab[15]
local gaph=caltab[16]
local gapt=caltab[17]
local gapl=caltab[18]
local sday=caltab[19]
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b({tc,ta})
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b({bc,ba})
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b({hc,ha})
--###################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end     
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then 
dlen=35
plen=29 
else 
dlen=42 
plen=36
end
for i=1,dlen do
	if i<=start_day then 
	dnum[i]="  " 
	else 
	dn=i-start_day
		if dn=="nil" then dn=0 end
		if dn<=9 then dn=(spacer .. dn) end
		if i>x then dn="" end
		dnum[i]=dn
		dnumh[i]=dn
		if dn==(spacer .. today) or dn==today then
		dnum[i]=""
		end 
		if dn==(spacer .. today) or dn==today then
		dnumh[i]=dn
		place=i 
		else dnumh[i]="  " 
		end 
	end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
if tonumber(sday)==0 then
dys={"SU","MO","TU","WE","TH","FR","SA"}
else
dys={"MO","TU","WE","TH","FR","SA","SU"}
end
--draw calendar titles
for i=1,7 do
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
	for i=fn,fn+6 do
	cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
	cairo_show_text (cr, dnum[i])
	cairo_stroke (cr)
	end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
	for i=fn,fn+6 do
	cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
	cairo_show_text (cr, dnumh[i])
	cairo_stroke (cr)
	end
end
--#########################################################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function

function conky_luaimage(imtab)
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--#########################################################################################################
local imtab=loadstring("return" .. imtab)()
local im_x=imtab[1]
local im_y=imtab[2]
local im_w=imtab[3]
local im_h=imtab[4]
local file=imtab[5]
local show = imlib_load_image(file)
if show == nil then return end
imlib_context_set_image(show)
if tonumber(im_w)==0 then 
width=imlib_image_get_width() 
else
width=tonumber(im_w)
end
if tonumber(im_h)==0 then 
height=imlib_image_get_height() 
else
height=tonumber(im_h)
end
imlib_context_set_image(show)
local scaled=imlib_create_cropped_scaled_image(0, 0, imlib_image_get_width(), imlib_image_get_height(), width, height)
imlib_free_image()
imlib_context_set_image(scaled)
imlib_render_image_on_drawable(im_x, im_y)
imlib_free_image()
show=nil
--#########################################################################################################
imtab=nil
height=nil
width=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function

function conky_tex_bg(textab)
local textab=loadstring("return" .. textab)()
local tex_file=textab[6]
local surface = cairo_image_surface_create_from_png(tostring(tex_file))
local cw,ch = conky_window.width, conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, cw,ch)
local cr=cairo_create(cs)
--#########################################################################################################
--convert to table
local r=textab[1]
local x=textab[2]
local y=textab[3]
local w=textab[4]
local h=textab[5]
if w=="0" then
w=cw
end
if h=="0" then
h=ch
end
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
--the drawing part---------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_clip (cr)
cairo_new_path (cr);
--image part
cairo_set_source_surface (cr, surface, 0, 0)
cairo_paint (cr)
--#########################################################################################################
textab=nil
w=nil
h=nil
cairo_destroy(cr)
cairo_surface_destroy (cs)
cairo_surface_destroy (surface)
cr=nil
return ""
end-- end main function

function conky_luatext(txttab)--x,y,c,a,f,fs,txt,j ##################################################
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--#########################################################################################################
--convert to table
local txttab=loadstring("return" .. txttab)()
local x=txttab[1]
local y=txttab[2]
local c=txttab[3]
local a=txttab[4]
local f=txttab[5]
local fs=txttab[6]
local j=txttab[7]
local txt=txttab[8]
cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fs)
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,txt,extents)
local wx=extents.x_advance
cairo_set_source_rgba (cr,rgb_to_r_g_b({c,a}))
if j=="l" then
cairo_move_to (cr,x,y)
elseif j=="c" then
cairo_move_to (cr,x-(wx/2),y)
elseif j=="r" then
cairo_move_to (cr,x-wx,y)
end
cairo_show_text (cr,txt)
cairo_stroke (cr)
--#########################################################################################################
txttab=nil
cairo_destroy(cr)
cairo_surface_destroy (cs)
cr=nil
return ""
end-- end main function

Oh yea, for anyone else interested you will need TeoBigusGeekus's weather script: 1b1) Accuweather - Images or configure your own in there.

If you do configure in your own, neither lwfitz, myself nor TeoBigusGeekus will be responsible as to the condition of your desktop after it explodes.   ]:D  ]:D

Today, right now:
2013_09_26_13_55_10_1920x1080_Sector11.jpg

@ lwfitz To use your "panel" image it would go here:

TEXT
${texeci 1800 bash $HOME/AccuW/BsAs/1b1}\
${image /home/luke/Conky/grey2.png -s 2175x350 -p -115,-40}\  #### <<-- your panel image
${image /media/5/Conky/images/athlon_ii_x3_logo.png -s 33x40 -p 25,20}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 220,15}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 550,15}\
${image /media/5/Conky/images/nvidia_logo.png -s 40x40 -p 520,20}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 40x40 -p 630,135}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
blah blah blah

Conky works fromleft to right, top to bottom ...
- first the images,
- next the "bars"
- then the text ...

Notice how all images and bars are on one line (the \ at the end) this way they only take ONE line after TEXT.

You can put them all in one pixel if you want:

TEXT
${font mono:pixelsize=1}${texeci 1800 bash $HOME/AccuW/BsAs/1b1}\
${image /home/luke/Conky/grey2.png -s 2175x350 -p -115,-40}\  #### <<-- your panel image
${image /media/5/Conky/images/athlon_ii_x3_logo.png -s 33x40 -p 25,20}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 220,15}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 50x50 -p 550,15}\
${image /media/5/Conky/images/nvidia_logo.png -s 40x40 -p 520,20}\
${image /media/5/Conky/lwfitz_Conky/thermometer.png -s 40x40 -p 630,135}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {42,87,"${cpu cpu0}",100,115,4,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,40,"${fs_used_perc /}",100,115,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0xAFB2DA,1,0x666FE4,.65,0x0C1AE1,1}}\
${lua gradbar {1304,87,"${fs_used_perc /home}",100,100,3,15,2,0xFFFFFF,0,0x000000,.45,0x000000,.45,0x000000,.55}}${font}\
blah blah blah

Test it you'll see:

TEXT
Hi there${font mono:pixelsize=1}
Luke is here
${font}I am here

Last edited by Sector11 (2013-09-26 17:26:51)


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

Offline

#6243 2013-09-26 20:13:04

thesoundman20
Member
From: FL
Registered: 2013-09-14
Posts: 35

Re: Conky v1.9 Thread

Here is my Matrix Conky to go with my Matrix #! in case anyone was wondering. Its not perfect but it works and I like it.

2013_09_26_1380226328_229x679_scrot.jpg

# 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?
background yes

# Use Xft?
use_xft yes
xftfont OCRA:size=8
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop
own_window yes
own_window_transparent no
own_window_type desktop
own_window_argb_visual yes
own_window_argb_value 200
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 170 240
maximum_width 220

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Default colors and also border colors
default_color green
default_shade_color 000000
default_outline_color 828282

# Text alignment, other possible values are commented
alignment top_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 6
gap_y 10

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


##############################################
#  Output
##############################################

TEXT
${alignc 25}${font Data Control Unifon:size=22}${time %I}:${alignc 25}${time %M}${font}
${font OCRA:size=8}$alignc${time %A} ${font}$alignc${time %d %Y}

${color 7CFC00}${font Data Control Unifon:size=10}$alignc s y s t e m    i n f o${color}${font}
${hr }
${color A7D33A}${font OCRA:size=8}Time in the Matrix${color}${color 00ff00}${font}:${color}
${color 00ff00}$alignr$uptime${color}
${font OCRA:size=8}CPU${color 00ff00}${font}:${color} $alignr${color 00ff00}${cpu cpu0}%${color}${color 006400}${cpubar cpu0 11,120 00ff00}${color}
${color 101010}${cpugraph cpu0 25,230 00FF00 FF0000} ${color}
${font OCRA:size=8}RAM${color 00ff00}${font}: ${alignc}${color}${color 006400}$mem${color}${color 00ff00}/${color}${color 006400}$memmax${color}${color 00ff00}${alignr}${memperc}%${color}${color 006400}${membar 10,15}${color}
${font OCRA:size=8}Swap${color 00ff00}${font}:${color} ${color 006400}$swap${color}${color 00ff00}/${color}${color 006400}$swapmax${color} ${color 00ff00}$alignr${swapperc}%${color}${color 006400}${swapbar 10,15}${color}

${font OCRA:size=8}${color A7D33A}NETWORK${color}${color 00ff00}${font}:${color}${alignr} eth1${color 00ff00}: ${color}${color 006400}${font OCRA:size=8}${addr eth1}${color}${font}
${font OCRA:size=8}Inbound${font} $alignr ${downspeed eth1}/s${color 006400}>${color}${totaldown eth1}
${font OCRA:size=8}Outbound${font} $alignr ${upspeed eth1}/s${color 006400}>${color}${totalup eth1}

${font OCRA:size=8}${color A7D33A}Storage Space${color}${color 00ff00}${font}:${color}
/${font OCRA:size=8}root${color 00ff00}${font}:${color}$alignr${fs_used /}${color 006400}/${color}${fs_size /}
${color 006400}${fs_bar 3,210 /}${color}
/${font OCRA:size=8}home${color 00ff00}${font}:${color}$alignr${fs_used /home}${color 006400}/${color}${fs_size /home}
${color 006400}${fs_bar 3,210 /home}${color}
${font OCRA:size=8}Disk I${font}${color 00ff00}${font OCRA:size=8}/${font}${color}${font OCRA:size=8}O${font}${color 00ff00}:${color}
${color 006400}${diskiograph 8,210 FFDA00 00ff00}${color}

${color 7CFC00}${font Data Control Unifon:size=10}$alignc t o p  p r o c e s s e s${color}${font}
${hr}
${font OCRA:size=7}${color A7D33A}CPU${color}${color 00ff00}${font}:${color} ${color 00ff00}${alignr} CPU ${color}
${font OCRA:size=7}${top name 1}${font}${color 006400}${font OCRA:size=8}$alignr${top cpu 1}${color}${font}
${font OCRA:size=7}${top name 2}${font}${color 006400}${font OCRA:size=8}$alignr${top cpu 2}${color}${font}
${font OCRA:size=7}${top name 3}${font}${color 006400}${font OCRA:size=8}$alignr${top cpu 3}${color}${font}

${font OCRA:size=7}${color A7D33A}MEM${color}${color 00ff00}${font}:${color} ${color 00ff00}$alignr MEM ${color}
${font OCRA:size=7}${top_mem name 1}${font}${color 006400}${alignr 9}${font OCRA:size=8}$alignr${top_mem mem_res 1}${color}${font}
${font OCRA:size=7}${top_mem name 2}${font}${color 006400}${alignr 9}${font OCRA:size=8}$alignr${top_mem mem_res 2}${color}${font}
${font OCRA:size=7}${top_mem name 3}${font}${color 006400}${alignr 9}${font OCRA:size=8}$alignr${top_mem mem_res 3}${color}${font}

${color 7CFC00}${font Data Control Unifon:size=10}${alignc 5} w e a t h e r${color}${font}
${hr}
${color 00ff00}${font OCRA:size=18}${alignc -14}Marianna ${color}${font}
${color 006400}${font OCRA:size=10}$alignc${execi 300 ~/.conky/weather.sh "USA|FL|USFL0303|MARIANNA &u=1"}${color}${font}

Colossians 3:23

Offline

#6244 2013-09-26 21:03:01

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

Re: Conky v1.9 Thread

shhhhhhhhhhhh - but we have a conky thread » The New Monster Conky Thread ... before a mod tells ya   big_smile

just so I know ... what did the oracle tell you?  Did she tell you it's a nice conky?

Last edited by Sector11 (2013-09-26 21:03:40)


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

Offline

#6245 2013-09-27 03:52:10

thesoundman20
Member
From: FL
Registered: 2013-09-14
Posts: 35

Re: Conky v1.9 Thread

Thank you!! I thought there was one, for some reason I couldnt find it, and my brain went "oh put that here with your other one, they go together" lol

thanks sector11! by the way what exactly am I supposed to do if I accidentally post in the wrong spot? can I move it? can I delete it? do I just post in the other? Sorry Ive dont have much experience posting in forums, been reading for years but never have been much of a poster.


Colossians 3:23

Offline

#6246 2013-09-27 04:10:25

chillicampari
Pinball Wizard
Registered: 2009-10-09
Posts: 2,728

Re: Conky v1.9 Thread

Moved. wink

@thesoundman20, if it happens again you can report your own post in a thread and request a topic or post move.

Offline

#6247 2013-09-27 04:12:28

thesoundman20
Member
From: FL
Registered: 2013-09-14
Posts: 35

Re: Conky v1.9 Thread

Thank you!! I am very much appreciative!

I have been using linux for the past 7 years now I think, but I am new to #! and love it to death! all of my boxes have been transformed to #! so I plan on being on here a lot more often. Again thank you for being understanding of the new guy smile

Last edited by thesoundman20 (2013-09-27 04:15:33)


Colossians 3:23

Offline

#6248 2013-09-27 04:14:27

chillicampari
Pinball Wizard
Registered: 2009-10-09
Posts: 2,728

Re: Conky v1.9 Thread

You're welcome! I'm glad you're enjoying #!

Offline

#6249 2013-09-27 05:06:05

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

Re: Conky v1.9 Thread

Sector11 wrote:
lwfitz wrote:

big_smile  big_smile  big_smile  big_smile any day that I can confuse the great Sector11 is a good day!

How in the world did you get it all into one config? For the life of me I couldnt get the gradbars above the image thats why I created two conkys

Well one conky started to over-write the other ... so out of desperation, ["lwfitz, ain't gonna best me!" type mind set] I made it one conky to rule the desktop.......... and so on

Thanks for the explanation. I knew there was a way to do it but I couldnt remember what it was and you were slacking off in the "helping Luke" department so I ended up with that  big_smile

Great job my friend. Im working on a new one and will be  using some of this in the new config also

Offline

Help fund CrunchBang, donate to the project!

#6250 2013-09-27 12:20:08

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

Re: Conky v1.9 Thread

chillicampari wrote:

Moved. wink

@thesoundman20, if it happens again you can report your own post in a thread and request a topic or post move.

Thank you chillicampari.  Much appreciated.

@ thesoundman20 - turned out better than I though with the help of our friendly neighbourhood chillicampari  cool

Last edited by Sector11 (2013-09-27 12:21:29)


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

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