You are not logged in.
Sector11 wrote:Thanks for the kind words Sector. I forgot to mention that the maximum width for the conky is set for my netbook resolution (1024x600).
I have a 1280x1024 screen, I have tried to make a one line conky ... get it 'almost' done and, oops!, it becomes a two liner and when it's finished a 3 line conky ... I just don't know when to stop. 
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Sector11 wrote
I want it ALL!!!!! Greedy aren't I!!
- Please.Thank you. and here. i put everything in a tar.gz file
Thanks, I had to remove the image with no lines - it made the archive to big, and as you see above, my screen size won't even allow me to test it. 
So why did I want it?
Conky PitStop: Featured (for a week) and the last entry for Gallery 2012 I.
Next comes "Gallery 2012 II" If I can remember how to make that sucker!
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
@ metalfangs
You have a PM please check it. 
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
I made a one line conky for my laptop a while ago.
### arclances Laptop One Line Conky ###
alignment top_left
double_buffer
background no
border_inner_margin 0
border_outer_margin 0
border_width 0
default_color CC9900
default_outline_color 800000
default_shade_color 006400
color0 EE7600
color1 EE7600
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=9
gap_x 0
gap_y 0
minimum_size 1280 50
maximum_width 1270
cpu_avg_samples 1
net_avg_samples 1
diskio_avg_samples 1
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent yes
own_window_class Conky
own_window_type desktop
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale yes
show_graph_range no
text_buffer_size 2560
default_bar_size 432 6
imlib_cache_size 0
top_name_width 10
TEXT
${color}${time %r}${color0}|${color}${time %F}\
${color0} ${color0}${offset 3}${voffset -5}${cpugraph cpu1 15,50 FFCC00 CC0000}${voffset 5}${offset 2}${color}${cpu cpu1}%${color0}|${color}${execi 1 sensors | grep "Core 0:" | cut -c15-21}\
${color0}${offset 3}${voffset -5}${cpugraph cpu2 15,50 FFCC00 CC0000}${voffset 5}${offset 2}${color}${cpu cpu2}%${color0}|${color}${execi 1 sensors | grep "Core 1:" | cut -c15-21}${color0}|${color}${cpu cpu0}%\
${color0} [/ ${color}${fs_used /}${color0}/${color}${fs_size /}${color0}/${color}${fs_used_perc /}%${color0}|${color}${execi 1 netcat localhost 7634 | cut -c27-28}°C${color0}|${color}${diskio_read /dev/sda}${color0}|${color}${diskio_write /dev/sda}\
${color0}][RAM:${color}${mem}${color0}-${color}${memperc}%\
${color0}|SWAP:${color}${swap}${color0}-${color}${swapperc}%\
${color0}]${color}${addrs wlan0}${color0}|${color}${execi 3600 wget -O - http://ip.tupeux.com | tail}${color0}|${color}${wireless_bitrate wlan0}\
${color0}|${color}${battery_short}${color0}|${color}${battery_time}Offline
Sector11 Wrote:
slipshot wrote:
Sector11 wrote
I want it ALL!!!!! Greedy aren't I!!
- Please.
Thank you. and here. i put everything in a tar.gz file
Thanks, I had to remove the image with no lines - it made the archive to big, and as you see above, my screen size won't even allow me to test it. sad
So why did I want it?
Conky PitStop: Featured (for a week) and the last entry for Gallery 2012 I.
Next comes "Gallery 2012 II" If I can remember how to make that sucker!
well thank you Sector11 im honored! 
Offline
I made a one line conky for my laptop a while ago.
OH YEA!!!!! Rub it in!

#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
well thank you Sector11 im honored!
Well, it's worth it. It's a nice looking conky - and I got a new font! 
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Thanks for the kind words Sector. I forgot to mention that the maximum width for the conky is set for my netbook resolution (1024x600).
I have your conky on Conky PitStop as well.
It's the first, and only, entry in the Gallery 2012 2. Since I just put slipshot's up today as well, I'll connect the Gallery as the default next week to give slipshot some exposure. Gallery 2012 2 is still available from the Gallery link at CPS and anyone looking will see that.
Love that wallpaper! 
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
metalfangs wrote:Thanks for the kind words Sector. I forgot to mention that the maximum width for the conky is set for my netbook resolution (1024x600).
I have your conky on Conky PitStop as well.
It's the first, and only, entry in the Gallery 2012 2. Since I just put slipshot's up today as well, I'll connect the Gallery as the default next week to give slipshot some exposure. Gallery 2012 2 is still available from the Gallery link at CPS and anyone looking will see that.
Love that wallpaper!
Awesome! Thanks again sector.
Offline
simple question for all the conky masters here. just trying to implement gmail.py in conky, but just cannot seem to get it to work, Running in terminal, see error of
Traceback (most recent call last):
File "/home/dkeg/bin/gmail.py", line 14, in <module>
fc=int(msg[index+11:index2])
ValueError: invalid literal for int() with base 10: ''\looked in some forums, found that maybe it doesn't like '@' symbol in password, so I changed that, but to no avail. Didn't see anything on this forum either. This is the code I'm using, which I picked up here.
import os
#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username="xxx"
password="xxx"
com="wget -q -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
temp=os.popen(com)
msg=temp.read()
index=msg.find("<fullcount>")
index2=msg.find("</fullcount>")
fc=int(msg[index+11:index2])
print(str(fc)+" unread")Offline
That seem a little short or is it only a part of the script?
See here: http://crunchbanglinux.org/pastebin/1184
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
great thanks.
That was helpful, receiving error fetching mail, but at least getting something. tried username with and w/o the @gmail.com. same result either way. I'll keep at it. seems to not like my user or pass for whatever reason.
Offline
^ Yea gmail login is weird.
The username you use for email over IMAP is just "username" but the username for sending email is "username@gmail.com".
If you had any uppercase characters in your username try replacing them with lowercase characters.
Only the gmail login page seems to accept the uppercase characters for me.
Offline
thanks. no my uname is all lowercase, but I do have characters in my pass. that should be fine right? I'm litterally taking the script and plugging in my u and p. I'm placing the script in home/me/bin.
Offline
^
Special characters in your pass should be fine.
There are not any non-ascii characters are there?
The python gets more complicated if you use those.
Edit:
Wait I looked at the script.
It uses wget!
That's a bad thing to do in python since it has a built in url handler (urllib).
Special characters will cause problems when wget is run if some of them need to be escaped.
The ones that need escaped are the ones that are reserved by bash (or whatever else you use).
I don't know them all but I know bash uses !, #, $, and &.
I think there are more maybe someone else knows them all.
That script is not written very well, it looks like someone converted a bash script to python.
VastOne has a better one that he uses maybe he could show you how to use that one?
Last edited by arclance (2012-09-16 22:26:40)
Offline
Ive done a little research but cant seem to find a clear answer. Is there any way to get the song that your currently playing through pandora to show in conky?
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
^ I might be possible and someone might have already done it.
VastOne is the one to ask about music player integration.
Offline
^ I might be possible and someone might have already done it.
VastOne is the one to ask about music player integration.
Right on Ill send him a message. Thanks a lot.
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
@arclance - A very public thank-you! Since 9-13, and on through to yesterday, after multiple PM's, arclance came through and fixed my issues. Within 48 hours of talking and typing and trial and error, arclance posted updates to the lua and python parts of his weather script that totally took care of my issues. All the credit goes to arclance, as I am only as good as the copy and paste commands allow me to be. IMO arclance went above and beyond in helping me. The GNU/Linux community and especially #!Crunchbang is only as good as it is, because of folks like arclance! Also IMO, no other OS out there can compete with the awesome "community" we using Linux enjoy.
Below is my conflagration of conky's on my laptop; 
Thanks, Jed
Running 'VSIDO' GNU/Linux! Worlds Greatest all-in-one Debian based DISTRO! | Tried the rest, now try the best!!! | My blog | Monster Conky Thread
Offline
Ive done a little research but cant seem to find a clear answer. Is there any way to get the song that your currently playing through pandora to show in conky?
If you talk real nice to VastOne maybe he can do something. I'm not saying he can or if it's possible. He did a conky for RadioTray.
Here's my version of that, when the radio is off it displays - nada - zero - zip - nothing:
# killall conky && conky -c ~/Conky/VO_Radiotray.conky &
## sudo apt-get install radiotray
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
# 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
own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
# own_window_colour gray
own_window_class Radio Tray
own_window_title Radio Tray
### 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 override
# 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 150
minimum_size 150 60 ## width, height
maximum_width 150 ## width, usually a good idea to equal minimum width
gap_x 10 ### left &right
gap_y 25 ### up & down
## Alignment
# top_left, top_right, top_middle - tl, tm, tr
# middle_left, middle_middle, middle_right - bl, bm, br
# bottom_left, bottom_right, bottom_middle - ml, mm, mr
alignment bl
#################################################### End Window Settings ###
### Font Settings ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Anonymous Pro:size=9
#xftfont WenQuanYi Macro Hei Mono:bold:size=8
#xftfont WenQuanYi Zen Hei Mono:bold:size=8
xftfont Andale Mono:bold:size=9
# 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 yes #### <<<--- yes --- To see it easier on light screens.
draw_outline yes #### <<<--- yes --- Amplifies text if yes
default_shade_color gray
default_outline_color black
default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# yes
background yes
# 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 right
# 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
############################################## End Miscellaneous Section ###
### LUA Settings ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load ~/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.1
#
####################################################### End LUA Settings ###
#digiThe all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 # in seconds
# stuff after 'TEXT' will be formatted on screen
TEXT
${color}${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "not playing"}${else}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}
Artist & Song
${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w 20}${color}${endif}#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
^ We did have that discussion and lwfitz was very nice... 
It is a difficult one to resolve ... one I am still working on. I will conquer it, and will post when it is done...
The radiotray is a good one... 
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
@arclance - A very public thank-you!
Lookin' good there Jed ... I wish I knew the stuff arclance has forgotten.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
^ We did have that discussion and lwfitz was very nice...
It is a difficult one to resolve ... one I am still working on. I will conquer it, and will post when it is done...
The radiotray is a good one...
OH didn't know that. It's no good for me:
Dear Pandora Visitor,
We are deeply, deeply sorry to say that due to licensing constraints, we can no longer allow access to Pandora for listeners located outside of the U.S. We will continue to work diligently to realize the vision of a truly global Pandora, but for the time being we are required to restrict its use. We are very sad to have to do this, but there is no other alternative.
We believe that you are in Argentina (your IP address appears to be 1xxx.xxx.xxx.xxx). If you believe we have made a mistake, we apologize and ask that you please email us.
If you have been using Pandora, we will keep a record of your existing stations and bookmarked artists and songs, so that when we are able to launch in your country, they will be waiting for you.
We will be notifying listeners as licensing agreements are established in individual countries. If you would like to be notified by email when Pandora is available in your country, please enter your email address below. The pace of global licensing is hard to predict, but we have the ultimate goal of being able to offer our service everywhere.
We share your disappointment and greatly appreciate your understanding.
Sincerely,
Tim Westergren
Founder
{sigh mumble mumble mumble mumble sigh}
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Hi guys!
hi arclance
Thanks for your lua script
I use the script in page 113
function wordwrap(longLine, wrapLength)
local wrapedLines = {}
local lineStart = 1
local lineEnd = 0
if #longLine <= wrapLength then --# return list containing input line if it is shorter than the wrap length
return {longLine}
end --# if #longLine <= wrapLength then
for i = 1, math.ceil(#longLine,wrapLength) do
if i ~= 1 then
lineStart = lineStart + wrapLength
if lineStart >= #longLine then
break --# no more to wrap break out of loop
end --# if lineStart >= #longLine then
end --# if i ~= 1 then
lineEnd = lineEnd + wrapLength
if lineEnd >= #longLine then --#
wrapedLines[i] = longLine:sub(lineStart,#longLine)
break --# done wrapping break out of loop
else
wrapedLines[i] = longLine:sub(lineStart,lineEnd)
end --# if lineEnd >= #longLine then
end --# for i = 1, (math.mod(#longLine/wrapLength) + 1)
return wrapedLines
end --# function wordwrap(longLine, wrapLength)
function conky_rss_wrap(uri, interval_in_minutes, action, wrapLength, num_par, spaces_in_front)
local rssCommand = "${rss "..uri.." "..interval_in_minutes.." "..action
if num_par ~= nil then
rssCommand = rssCommand.." "..num_par
end --# if num_par ~= nil then
if spaces_in_front ~= nil then
rssCommand = rssCommand.." "..spaces_in_front
end --# if spaces_in_front ~= nil then
local rssText = (conky_parse((rssCommand.."}"))):gsub(",","\,"):gsub('"','\"'):gsub("\n",'","')
local rssSplit = assert(loadstring('return {"'..rssText..'"}'))()
local output = ""
for j = 1, #rssSplit do
local wrapedText = wordwrap(rssSplit[j], tonumber(wrapLength))
for i = 1, #wrapedText do
if output ~= "" then
output = output.."\n"..wrapedText[i]
else
output = wrapedText[i]
end --# if i ~= 1 then
end --# for i = 1, #wrapedText do
end --# for j = 1, #rssSplit do
return output
end --# function rss_wrap()Then
${lua_parse rss_wrap http://news.google.com/?output=rss 3 item_titles 50 7}Everything work perfectly with news.google.com rss feed and with other sites as well
but when I try to add this specific rss feed
this one >>>> http://blog.coursera.org/rss <<<<
the feed don't display properly sometime it show a word or two and sometimes nothing then after try
killall conky && conkyI get this error
Conky: llua_do_call: function conky_rss_wrap execution failed: /home/me/conkrss/wraprss.lua:35: [string "return {"Gamification study group at Jaaga in Bangalore. Thank ..."]:1: '}' expected near 'I'This is line 35
local rssSplit = assert(loadstring('return {"'..rssText..'"}'))()I google it for the solution and find this http://stackoverflow.com/questions/1032 … ears-perfe
{prog = {true,false,false}}
{["prog"] = {true,false,false}}I don't understand. How can I fix it? Any idea?
Thank you!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.