SEARCH

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

You are not logged in.

#1001 2010-11-23 16:29:36

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Unia wrote:
Sector11 wrote:

CPU: ${cpucommand}% RAM: ${ramcommand} DISK: ${diskcommand}
CPU: 100% RAM: 100% Disk 100%

and use $goto commands to line up the % symbols
(NOTE: the bold italic and underlined % symbols)

CPU: ${cpucommand}% RAM: ${goto xy}${ramcommand}% DISK: ${goto yz}${diskcommand}%
CPU: 100% RAM: 100% Disk 100%

I don't get that, could you give me an example .conkyrc?

Sure give me 15-20 minutes....

Offline

Be excellent to each other!

#1002 2010-11-23 17:05:08

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Unia wrote:
Sector11 wrote:

CPU: ${cpucommand}% RAM: ${ramcommand} DISK: ${diskcommand}
CPU: 100% RAM: 100% Disk 100%

and use $goto commands to line up the % symbols
(NOTE: the bold italic and underlined % symbols)

CPU: ${cpucommand}% RAM: ${goto xy}${ramcommand}% DISK: ${goto yz}${diskcommand}%
CPU: 100% RAM: 100% Disk 100%

I don't get that, could you give me an example .conkyrc?


Gotta run --- here's a start:

background yes
own_window no
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftfont DejaVu Sans Mono:bold:size=10
xftalpha 1.0 #0.2
override_utf8_locale yes
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
border_inner_margin 0
border_outer_margin 0
border_width 0

# Colors
default_color DCDCDC #Gainsboro
color0 FFD700 #Gold  #7FFFD4 #Aquamarine
color1 FFA07A #LightSalmon #CD5C5C IndianRed #00CED1 DarkTurquoise #00FFFF Cyan
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#    colours below used by colorize script
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
text_buffer_size 512 # Default
short_units yes
pad_percents 2
maximum_width 720
#minimum_size 720
imlib_cache_size 0
uppercase no

alignment bl
gap_x 10 # left-right
gap_y 100 # up-down
TEXT
default font: DejaVu Sans Mono:bold:size=10

CPU 1: 100% CPU 2: 100% RAM: 100M  File System - Size: 18.3G Used: 18.3G - more
CPU 1: ${cpu cpu0}% CPU 2: ${cpu cpu0}% RAM: ${mem}% File System - Size: ${fs_size} Used: ${fs_used}

CPU 1: 100% CPU 2: 100% RAM: 100M ROOT: 100% HOME: 100% more stuff here
CPU 1:${goto 82}${cpu cpu0}% CPU 2:${goto 179}${cpu cpu0}% RAM: ${mem}% File System - Size: ${fs_size} Used: ${fs_used} - more

back later!

Offline

#1003 2010-11-23 18:09:17

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

Thanks, I'll see what I can do with that! smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1004 2010-11-23 18:55:27

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Unia wrote:

Thanks, I'll see what I can do with that! smile

Here's a more complete version:

background yes
own_window no
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftfont DejaVu Sans Mono:bold:size=10
xftalpha 1.0 #0.2
override_utf8_locale yes
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
border_inner_margin 0
border_outer_margin 0
border_width 0

# Colors
default_color DCDCDC #Gainsboro
color0 FFD700 #Gold  #7FFFD4 #Aquamarine
color1 FFA07A #LightSalmon #CD5C5C IndianRed #00CED1 DarkTurquoise #00FFFF Cyan
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#    colours below used by colorize script
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
text_buffer_size 512 # Default
short_units yes
pad_percents 2
maximum_width 720
#minimum_size 720
imlib_cache_size 0
uppercase no

alignment bl
gap_x 10 # left-right
gap_y 100 # up-down
TEXT
default font: DejaVu Sans Mono:bold:size=10

CPU 1: 100% CPU 2: 100% RAM: 100M  File System - Size: 18.3G Used: 18.3G - more
CPU 1: ${cpu cpu0}% CPU 2: ${cpu cpu0}% RAM: ${mem}% File System - Size: ${fs_size} Used: ${fs_used}

CPU 1: 100% CPU 2: 100% RAM: 999M  File System - Size: 999.99G Used: 999.99G - more
CPU 1:${goto 82}${cpu cpu0}% CPU 2:${goto 178}${cpu cpu0}% RAM: ${mem}  File System - Size:${goto 466}${fs_size} Used:${goto 578}${fs_used} - more

and if you are using OpenBox (maybe with Xfce as well) you can make conky "invisible" to right click mouse actions like this:

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager
own_window_title conky-name  #each conky gets a separate name

a28a8e107905351.jpg

Offline

#1005 2010-11-26 22:31:42

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

I'm looking for people to test a specific conky.

If you are interested check: Help with a specific Conky!, and leave your results there please.

Thanks.

Offline

#1006 2010-12-03 04:01:07

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay so whenever I start Conky It displays for about 3 sec's then Disappears, any clues?

---------------------------------------------

Edit: I've moved and merged the discussion from Viauri's conky support request into our main Conky help thread.

--omns smile

Last edited by Chewie (2010-12-04 21:12:45)


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1007 2010-12-03 06:38:01

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Conky Help

Run it from a command line and see if that gives you any errors?


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#1008 2010-12-03 06:57:23

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

viaurl@crunchbang:~$ conky
Conky: desktop window (13b) is root window
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

sh: /home/jente/.scripts/conkyemail/conkyEmail: not found
Conky: can't open /sys/class/power_supply/BAT0/uevent: No such file or directory
Conky: can't open /proc/acpi/battery/BAT0/state: No such file or directory
Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: MPD error: problems getting a response from "localhost" on port 6600 : Connection refused

Conky: obj->data.i 3 info.cpu_count 2
Conky: attempting to use more CPUs than you have!

Okay so last thing it shows b4 it leaves me, is that I have it configured to too many CPU's, and something to do with an email which I know I have to change the path because that is probably Unia's path as well as create some form of script for it to work? Also what's up with this port thing?


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1009 2010-12-03 07:05:54

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay so I figured it out, it was that I had

ring('cpu','cpu3',100,0xB7FF00,0.2,0xB7FF00,0.8,105, 280,25,4,180,270)
    ring('cpu','cpu4',100,0x1E90FF,0.2,0x1E90FF,0.8,105, 335,25,4,270,360)

in my lua script when I only have a duo core, removing that worked and stopped it from disappearing on me! big_smile


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1010 2010-12-03 07:51:53

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

You can also remove the line for the email, as you dont have the script, and remove the mpd lines

Last edited by Unia (2010-12-03 07:52:31)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1011 2010-12-04 01:27:55

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

What does the email script do would it be off something I'd enjoy? And ps remove your email credentials  pre-uploading the next  share of your setup wink

Last edited by Chewie (2010-12-04 01:28:27)


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1012 2010-12-04 06:28:17

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: Conky Help

the email script checks the servers to see if you have new emails
see my conky under MAIL

2f9S.png

Last edited by ali (2010-12-04 06:29:56)

Offline

#1013 2010-12-04 06:32:15

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay so how would I obtain the email script? I'd really enjoy this! hmm


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1014 2010-12-04 06:36:49

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

Heres a script for checking Gmail:

#!/usr/bin/perl

use Switch;
use Text::Wrap;

my $what=$ARGV[0];

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail

#wrap format for subject
$Text::Wrap::columns=65; #Number of columns to wrap subject at
$initial_tab=""; #Tab for first line of subject
$subsequent_tab="\t"; #tab for wrapped lines
$quote="\""; #put quotes around subject

#limit the number of emails to be displayed
$emails=4; #if -1 display all emails

&passwd; #give password the proper url character encoding

switch($what){ #determine what the user wants
    case "n" {&gmail; print "$new\n";} #print number of new emails
    case "s" { #print $from and $subj for new email
        &gmail;
        if ($new>0){
            my $size=@from;
            if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
            for(my $i=0; $i<$size; ++$i){
                print "From: $from[$i]\n"; #print from line
                $text=$quote.$subj[$i].$quote."\n";
                print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
            }
            $size=@from;
            if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
        }
    }
    case "e" { #print number of new emails, $from, and $subj
        &gmail;
        if($new==0){print "You have no new emails.\n";}
        else{
            print "You have $new new email(s).\n";
            my $size=@from;
            if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
            for(my $i=0; $i<$size; ++$i){
                print "From: $from[$i]\n"; #print from line
                $text=$quote.$subj[$i].$quote;
                print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
            }
            $size=@from;
            if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
        }
    }
    else {
        print "Usage Error: gmail.pl <option>\n";
        print "\tn displays number of new emails\n";
        print "\ts displays from line and subject line for each new email.\n";
        print "\te displays the number of new emails and from line plus \n";
        print "\t\tsubject line for each new email.\n";
    } #didn't give proper option
}

sub gmail{
    if(!(-e $file)){ #create file if it does not exists
        `touch $file`;
    }

    #get new emails
    `wget -O - https://$user:$pass\@mail.google.com/mail/feed/atom --no-check-certificate> $file`;

    open(IN, $file); #open $file

    my $i=0; #initialize count
    $new=0; #initialize new emails to 0

    my $flag=0;

    while(<IN>){ #cycle through $file
        if(/<entry>/){$flag=1;}
        elsif(/<fullcount>(\d+)<\/fullcount>/){$new=$1;} #grab number of new emails
        elsif($flag==1){
            if(/<title>.+<\/title>/){push(@subj, &msg);} #grab new email titles
            elsif(/<name>(.+)<\/name>/){push(@from, $1); $flag=0;} #grab new email from lines
        }
    }

    close(IN); #close $file
}

sub passwd{ #change to url escape codes in password
    #URL ESCAPE CODES
    $_=$pass;
    s/\%/\%25/g;
    s/\#/\%23/g;
    s/\$/\%24/g;
    s/\&/\%26/g;
    s/\//\%2F/g;
    s/\:/\%3A/g;
    s/\;/\%3B/g;
    s/\</\%3C/g;
    s/\=/\%3D/g;
    s/\>/\%3E/g;
    s/\?/\%3F/g;
    s/\@/\%40/g;
    s/\[/\%5B/g;
    s/\\/\%5C/g;
    s/\]/\%5D/g;
    s/\^/\%5E/g;
    s/\`/\%60/g;
    s/\{/\%7B/g;
    s/\|/\%7C/g;
    s/\}/\%7D/g;
    s/\~/\%7E/g;
    $pass=$_;
}

sub msg{
    #THE HTML CODED CHARACTER SET [ISO-8859-1]
    chomp; s/<title>(.+)<\/title>/$1/; #get just the subject
    #now replace any special characters
    s/\&\#33\;/!/g;        #Exclamation mark
    s/\&\#34\;/"/g; s/\&quot\;/"/g;      #Quotation mark
    s/\&\#35\;/#/g;        #Number sign
    s/\&\#36\;/\$/g;        #Dollar sign
    s/\&\#37\;/%/g;        #Percent sign
    s/\&\#38\;/&/g; s/\&amp\;/&/g;        #Ampersand
    s/\&\#39\;/'/g;        #Apostrophe
    s/\&\#40\;/(/g;        #Left parenthesis
    s/\&\#41\;/)/g;        #Right parenthesis
    s/\&\#42\;/*/g;        #Asterisk
    s/\&\#43\;/+/g;        #Plus sign
    s/\&\#44\;/,/g;        #Comma
    s/\&\#45\;/-/g;        #Hyphen
    s/\&\#46\;/./g;        #Period (fullstop)
    s/\&\#47\;/\//g;        #Solidus (slash)
    s/\&\#58\;/:/g;        #Colon
    s/\&\#59\;/\;/g;        #Semi-colon
    s/\&\#60\;/</g; s/\&lt\;/</g;        #Less than
    s/\&\#61\;/=/g;        #Equals sign
    s/\&\#62\;/>/g; s/\&gt\;/>/g;        #Greater than
    s/\&\#63\;/\?/g;        #Question mark
    s/\&\#64\;/\@/g;        #Commercial at
    s/\&\#91\;/\[/g;        #Left square bracket
    s/\&\#92\;/\\/g;        #Reverse solidus (backslash)
    s/\&\#93\;/\]/g;        #Right square bracket
    s/\&\#94\;/\^/g;        #Caret
    s/\&\#95\;/_/g;        #Horizontal bar (underscore)
    s/\&\#96\;/\`/g;        #Acute accent
    s/\&\#123\;/\{/g;        #Left curly brace
    s/\&\#124\;/|/g;        #Vertical bar
    s/\&\#125\;/\}/g;        #Right curly brace
    s/\&\#126\;/~/g;        #Tilde
    s/\&\#161\;/¡/g;        #Inverted exclamation
    s/\&\#162\;/¢/g;        #Cent sign
    s/\&\#163\;/£/g;        #Pound sterling
    s/\&\#164\;/¤/g;        #General currency sign
    s/\&\#165\;/¥/g;        #Yen sign
    s/\&\#166\;/¦/g;        #Broken vertical bar
    s/\&\#167\;/§/g;        #Section sign
    s/\&\#168\;/¨/g;        #Umlaut (dieresis)
    s/\&\#169\;/©/g; s/\&copy\;/©/g;        #Copyright
    s/\&\#170\;/ª/g;        #Feminine ordinal
    s/\&\#171\;/«/g;        #Left angle quote, guillemotleft
    s/\&\#172\;/¬/g;        #Not sign
    s/\&\#174\;/®/g;        #Registered trademark
    s/\&\#175\;/¯/g;        #Macron accent
    s/\&\#176\;/°/g;        #Degree sign
    s/\&\#177\;/±/g;        #Plus or minus
    s/\&\#178\;/²/g;        #Superscript two
    s/\&\#179\;/³/g;        #Superscript three
    s/\&\#180\;/´/g;        #Acute accent
    s/\&\#181\;/µ/g;        #Micro sign
    s/\&\#182\;/¶/g;        #Paragraph sign
    s/\&\#183\;/·/g;        #Middle dot
    s/\&\#184\;/¸/g;        #Cedilla
    s/\&\#185\;/¹/g;        #Superscript one
    s/\&\#186\;/º/g;        #Masculine ordinal
    s/\&\#187\;/»/g;        #Right angle quote, guillemotright
    s/\&\#188\;/¼/g; s/\&frac14\;/¼/g;       # Fraction one-fourth
    s/\&\#189\;/½/g; s/\&frac12\;/½/g;       # Fraction one-half
    s/\&\#190\;/¾/g; s/\&frac34\;/¾/g;       # Fraction three-fourths
    s/\&\#191\;/¿/g;        #Inverted question mark
    s/\&\#192\;/À/g;        #Capital A, grave accent
    s/\&\#193\;/Á/g;        #Capital A, acute accent
    s/\&\#194\;/Â/g;        #Capital A, circumflex accent
    s/\&\#195\;/Ã/g;        #Capital A, tilde
    s/\&\#196\;/Ä/g;        #Capital A, dieresis or umlaut mark
    s/\&\#197\;/Å/g;        #Capital A, ring
    s/\&\#198\;/Æ/g;        #Capital AE dipthong (ligature)
    s/\&\#199\;/Ç/g;        #Capital C, cedilla
    s/\&\#200\;/È/g;        #Capital E, grave accent
    s/\&\#201\;/É/g;        #Capital E, acute accent
    s/\&\#202\;/Ê/g;        #Capital E, circumflex accent
    s/\&\#203\;/Ë/g;        #Capital E, dieresis or umlaut mark
    s/\&\#204\;/Ì/g;        #Capital I, grave accent
    s/\&\#205\;/Í/g;        #Capital I, acute accent
    s/\&\#206\;/Î/g;        #Capital I, circumflex accent
    s/\&\#207\;/Ï/g;        #Capital I, dieresis or umlaut mark
    s/\&\#208\;/Ð/g;        #Capital Eth, Icelandic
    s/\&\#209\;/Ñ/g;        #Capital N, tilde
    s/\&\#210\;/Ò/g;        #Capital O, grave accent
    s/\&\#211\;/Ó/g;        #Capital O, acute accent
    s/\&\#212\;/Ô/g;        #Capital O, circumflex accent
    s/\&\#213\;/Õ/g;        #Capital O, tilde
    s/\&\#214\;/Ö/g;        #Capital O, dieresis or umlaut mark
    s/\&\#215\;/×/g;        #Multiply sign
    s/\&\#216\;/Ø/g;        #Capital O, slash
    s/\&\#217\;/Ù/g;        #Capital U, grave accent
    s/\&\#218\;/Ú/g;        #Capital U, acute accent
    s/\&\#219\;/Û/g;        #Capital U, circumflex accent
    s/\&\#220\;/Ü/g;        #Capital U, dieresis or umlaut mark
    s/\&\#221\;/Ý/g;        #Capital Y, acute accent
    s/\&\#222\;/Þ/g;        #Capital THORN, Icelandic
    s/\&\#223\;/ß/g;        #Small sharp s, German (sz ligature)
    s/\&\#224\;/à/g;        #Small a, grave accent
    s/\&\#225\;/á/g;        #Small a, acute accent
    s/\&\#226\;/â/g;        #Small a, circumflex accent
    s/\&\#227\;/ã/g;        #Small a, tilde
    s/\&\#228\;/ä/g;        #Small a, dieresis or umlaut mark
    s/\&\#229\;/å/g;        #Small a, ring
    s/\&\#230\;/æ/g;        #Small ae dipthong (ligature)
    s/\&\#231\;/ç/g;        #Small c, cedilla
    s/\&\#232\;/è/g;        #Small e, grave accent
    s/\&\#233\;/é/g;        #Small e, acute accent
    s/\&\#234\;/ê/g;        #Small e, circumflex accent
    s/\&\#235\;/ë/g;        #Small e, dieresis or umlaut mark
    s/\&\#236\;/ì/g;        #Small i, grave accent
    s/\&\#237\;/í/g;        #Small i, acute accent
    s/\&\#238\;/î/g;        #Small i, circumflex accent
    s/\&\#239\;/ï/g;        #Small i, dieresis or umlaut mark
    s/\&\#240\;/ð/g;        #Small eth, Icelandic
    s/\&\#241\;/ñ/g;        #Small n, tilde
    s/\&\#242\;/ò/g;        #Small o, grave accent
    s/\&\#243\;/ó/g;        #Small o, acute accent
    s/\&\#244\;/ô/g;        #Small o, circumflex accent
    s/\&\#245\;/õ/g;        #Small o, tilde
    s/\&\#246\;/ö/g;        #Small o, dieresis or umlaut mark
    s/\&\#247\;/÷/g;        #Division sign
    s/\&\#248\;/ø/g;        #Small o, slash
    s/\&\#249\;/ù/g;        #Small u, grave accent
    s/\&\#250\;/ú/g;        #Small u, acute accent
    s/\&\#251\;/û/g;        #Small u, circumflex accent
    s/\&\#252\;/ü/g;        #Small u, dieresis or umlaut mark
    s/\&\#253\;/ý/g;        #Small y, acute accent
    s/\&\#254\;/þ/g;        #Small thorn, Icelandic
    s/\&\#255\;/ÿ/g;        #Small y, dieresis or umlaut mark
    s/^\s+//;
    return $_;
}

You can probably find scripts for generic POP3 checking as well.

Offline

#1015 2010-12-04 06:40:08

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay perfect as I use Gmail, now sorry for being so inquisitive, but where do I actually put my credentials?

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail

Here I take it?

And how do I set this up with my conky?

# -- Conky settings -- #

update_interval            .25
cpu_avg_samples            4
net_avg_samples            2
override_utf8_locale        true
double_buffer            true
no_buffers            true
text_buffer_size        2048
imlib_cache_size        0
out_to_x            true
short_units            true
temperature_unit        celsius


# -- Window specifications -- #

own_window            true
own_window_colour        000000
own_window_hints        undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual        true
own_window_argb_value        70
own_window_type            normal
own_window_transparent        true
border_inner_margin        0
border_outer_margin        0
maximum_width            125
minimum_size            125 660
alignment            tr
gap_x                0
gap_y                43


# -- Graphics settings -- #

draw_shades            false
draw_outline            false
draw_borders            false
draw_graph_borders        false
default_shade_color        black
default_outline_color        403F44
stippled_borders        0
color0                B7FF00


# -- Text settings -- #

use_xft                true
font                Ubuntu:style=Regular:size=8
uppercase            no
default_color            FFFFFF


# -- Lua Scripts -- #
lua_load ~/.scripts/rings2.lua
lua_draw_hook_pre draw_widgets


TEXT
${voffset 27}${goto 16}${time %d %a}
${goto 16}${time %b %Y}
${voffset -25}${goto 92}${execi 600 /home/viaurl/.scripts/conkyemail/conkyEmail --servertype=POP --servername=pop.gmail.com --username=* --password=* --ssl} 
${voffset 30}${goto 20}${color0}Uptime: ${color}${uptime_short}

${voffset 35}${goto 51}${mem}
${goto 61}of
${goto 51}${memmax}
${voffset 32}${goto 51}${swap}
${goto 61}of
${goto 51}${swapmax}
${voffset 59}${goto 68}${cpu cpu}%
${voffset 70}${goto 51}${fs_used /}
${goto 61}of
${goto 51}${fs_size /}
${voffset 32}${goto 51}${fs_used /home}
${goto 61}of
${goto 51}${fs_size /home}
${voffset 39}${goto 50}${color0}Artist:
${goto 50}${color}${mpd_artist}
${goto 50}${color0}Song: 
${goto 50}${color}${mpd_title}
${goto 50}${color0}${mpd_elapsed}${color}/${color0}${mpd_length}

* Replace "*" with my valid credentials.

Last edited by Chewie (2010-12-04 06:42:07)


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1016 2010-12-04 06:42:30

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: Conky Help

the conkyEmail script is here
http://ubuntuforums.org/showthread.php?t=869771
just install the .deb file and update the lines in your conky
something like

email@address.here $alignr ${execi 600 conkyEmail --servertype=*** --servername=*** --ssl --username=*** --password=***}

Offline

#1017 2010-12-04 06:47:36

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

Viaurl wrote:

Okay perfect as I use Gmail, now sorry for being so inquisitive, but where do I actually put my credentials?

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail

Here I take it?

Yeah just replace the username and password inside the quotes.

Viaurl wrote:

And how do I set this up with my conky?

I think you just have to do

${execi 600 /path/to/gmailscript}

And it will show the number of message you have.

Offline

#1018 2010-12-04 07:02:06

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

What do I save the gmail script as?
Sorry am I getting annoying? sad
If it makes you feel better I am learning as we go wink

Last edited by Chewie (2010-12-04 07:02:29)


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1019 2010-12-04 08:47:07

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: Conky Help

i don't think it matters, try saving it as /home/*yourname*/bin/email and then chmod it to be executable
and call it in conky with ${execi 600 /home/*yourname*/bin/email}

Last edited by ali (2010-12-04 08:47:30)

Offline

#1020 2010-12-04 10:51:17

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

Viaurl wrote:

What does the email script do would it be off something I'd enjoy? And ps remove your email credentials  pre-uploading the next  share of your setup wink

Yea I noticed lol already changed my password, dont spam my email now eh? big_smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1021 2010-12-04 18:57:19

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Lol no worries brother, just thought I'd inform you.


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1022 2010-12-04 19:01:48

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

I thought about it right after I send it, normally I don't have any personal info in my .conkyrc.
Anyways, how're things going now with your setup?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1023 2010-12-04 19:48:33

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Great I'm already doing a base install of Debian that I'm going to completely tweak.
I Have a gmail script that anonymous has gave me, and linked its path to the email conky code they provided me but I don't know what extension I save the gmail script as do I just name it something with no extension then chmod it to be executable?


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1024 2010-12-04 19:54:41

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

That is correct; you don't need an extension.

Offline

Be excellent to each other!

#1025 2010-12-04 20:00:36

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

I always use .sh, but tbh I don know why.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

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