SEARCH

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

You are not logged in.

#3026 2012-09-15 16:26:54

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

metalfangs wrote:
Sector11 wrote:
metalfangs wrote:

hO5H9.png

A rendition of a config I found on the arch forums. Font is cure from the artwiz package.

Definitely something to be said for those simple one line conkys. The elegance of them is wonderful.

And then there are mine roll - - all over the place! lol

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.  lol

Offline

Be excellent to each other!

#3027 2012-09-15 16:51:17

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

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!

Offline

#3028 2012-09-15 16:58:31

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

@ metalfangs

You have a PM please check it.  big_smile

Offline

#3029 2012-09-15 17:01:19

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

Re: The New Monster Conky Thread

I made a one line conky for my laptop a while ago.
32248.png

### 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}

42885_thumb.png

Offline

#3030 2012-09-15 17:09:59

slipshot
#! CrunchBanger
Registered: 2009-05-13
Posts: 171

Re: The New Monster Conky Thread

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! big_smile

Offline

#3031 2012-09-15 17:44:58

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

arclance wrote:

I made a one line conky for my laptop a while ago.
32248.png

OH YEA!!!!!  Rub it in!  lol lol

Offline

#3032 2012-09-15 17:46:46

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

slipshot wrote:

well thank you Sector11 im honored! big_smile

Well, it's worth it.  It's a nice looking conky - and I got a new font! tongue

Offline

#3033 2012-09-15 20:36:18

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

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!  big_smile

Offline

#3034 2012-09-16 06:09:55

metalfangs
New Member
Registered: 2012-09-15
Posts: 4

Re: The New Monster Conky Thread

Sector11 wrote:
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!  big_smile

Awesome! Thanks again sector.

Offline

#3035 2012-09-16 13:39:37

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 718

Re: The New Monster Conky Thread

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")

grill it | the rocky path may just be the best path

Offline

#3036 2012-09-16 14:15:57

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

That seem a little short or is it only a part of the script?

See here: http://crunchbanglinux.org/pastebin/1184

Offline

#3037 2012-09-16 14:38:40

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 718

Re: The New Monster Conky Thread

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.


grill it | the rocky path may just be the best path

Offline

#3038 2012-09-16 14:50:16

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

Re: The New Monster Conky Thread

^ 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

#3039 2012-09-16 21:31:31

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 718

Re: The New Monster Conky Thread

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.


grill it | the rocky path may just be the best path

Offline

#3040 2012-09-16 21:59:24

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

Re: The New Monster Conky Thread

^
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

#3041 2012-09-16 22:22:09

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 718

Re: The New Monster Conky Thread

^ yep, that was the problem.  Thanks @arclance !  Good catch


grill it | the rocky path may just be the best path

Offline

#3042 2012-09-16 23:14:38

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

Re: The New Monster Conky Thread

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?

Offline

#3043 2012-09-16 23:24:04

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

Re: The New Monster Conky Thread

^ I might be possible and someone might have already done it.
VastOne is the one to ask about music player integration.

Offline

#3044 2012-09-16 23:29:47

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

Re: The New Monster Conky Thread

arclance wrote:

^ 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.

Offline

#3045 2012-09-17 22:47:13

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 193
Website

Re: The New Monster Conky Thread

@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; cool

Thanks, Jed
multi-conky.jpg

Offline

#3046 2012-09-18 18:12:34

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

lwfitz wrote:

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.

abyxZWsm.jpg

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}

Offline

#3047 2012-09-18 18:17:34

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

Re: The New Monster Conky Thread

^ We did have that discussion and lwfitz was very nice... smile

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... smile


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#3048 2012-09-18 18:19:15

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

jed wrote:

@arclance - A very public thank-you!

Lookin' good there Jed ... I wish I knew the stuff arclance has forgotten.

Offline

#3049 2012-09-18 18:24:53

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,832
Website

Re: The New Monster Conky Thread

VastOne wrote:

^ We did have that discussion and lwfitz was very nice... smile

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... smile

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}

Offline

Help fund CrunchBang, donate to the project!

#3050 2012-09-18 20:52:37

gunt
Member
Registered: 2012-01-30
Posts: 27

Re: The New Monster Conky Thread

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 && conky

I 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

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.

Debian Logo