Page 301 of 2327 FirstFirst ... 2012512912993003013023033113514018011301 ... LastLast
Results 3,001 to 3,010 of 23265

Thread: Post your .conkyrc files w/ screenshots

  1. #3001
    Join Date
    Mar 2008
    Location
    Normal, IL
    Beans
    505
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by John.Michael.Kane View Post
    If I am not mistaken that is not conky running the terminal.

    More likely the terminal effect shown was achieved using this guide HOWTO: Terminal as the desktop background.
    ill check it out thank you very much
    -ASUS U46: Intel Core I5(Sandy Bridge) 8 gb Ram, Integrated Graphics card. Currently running Ubuntu 13.04(64bit)

  2. #3002
    Join Date
    Feb 2008
    Location
    5238'41.6"N/119'43.6"E
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by PatrickMoore View Post
    ill check it out thank you very much
    You can also do the same for gnome-terminal using compiz, so if you're already running it I suggest going that route instead.

    I am sure you'll find howto steps for this somewhere in the forums...

    Edit: found it here http://ubuntuforums.org/showthread.php?t=859858
    Last edited by kaivalagi; July 24th, 2008 at 04:51 PM.

  3. #3003
    Join Date
    Feb 2008
    Location
    The Hague,Netherlands
    Beans
    252
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    300 pages already
    Registered Linux user,number 507113.02-01-2013: ASUS M4A785TD-V EVO 785G |Athlon 2 X4 640|4 GiB DDR|1 TiB SATA2|Radeon HD 6570(HDMI)|Realtek 7.1 HDMI audio|Gigabit Lan|Kubuntu 12.10 Quanzal AMD64

  4. #3004
    Join Date
    Nov 2004
    Beans
    87

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    OK did you copy and paste those lines in here from your terminal?

    I see two double //'s where I think there should only be one /

    Code:
    Conky: can't open /sys/class/power_supply//proc/pmu/battery_0/uevent: No such file or directory
    Conky: can't open /proc/acpi/battery//proc/pmu/battery_0/state: No such file or directory
    Thoughts?
    Bruce
    I took out the / at the start of the line in the conkyrc and still get this error:

    Conky: can't open /proc/acpi/battery/proc/pmu/battery_0/state: No such file or directory

    It seems conky wants to look in /proc/acpi even though I have stated another location in the conkyrc.

    Strange

    Cheers Jason

  5. #3005
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    73
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Post your .conkyrc files w/ screenshots

    hi,

    If i want to write my own python script, how can i access a variable in that python script, that i defined in conky like this:

    ${execi 5 python ~/conkyscripts/microwingsconky.py wings=lol}

    Thanks!

    Matt

  6. #3006
    Join Date
    Feb 2008
    Location
    5238'41.6"N/119'43.6"E
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by killerwhale65 View Post
    hi,

    If i want to write my own python script, how can i access a variable in that python script, that i defined in conky like this:

    ${execi 5 python ~/conkyscripts/microwingsconky.py wings=lol}

    Thanks!

    Matt
    You can use the argv[] list in your script for simple command line argument access. In your example sys.argv[1] would be "wings=lol"

    A better alternative is to use the options parser module, which provides nice functionality for argument passing and provides a nice structured way to access the details. It even provides help functionality to display all possible uses within your script.

    You can see an example of it's use in my weather script here: http://ubuntuforums.org/showthread.php?t=760527

    The official help doc for the optionparser module can be found here: http://docs.python.org/lib/module-optparse.html

    Hope that helps

  7. #3007
    Join Date
    Feb 2008
    Location
    5238'41.6"N/119'43.6"E
    Beans
    Hidden!
    Conky Weather Forecast Thread

    My old conkyForecast.py thread is in the archive section and has now been locked out for any more posts due to it's age.

    As such I have reposted to a new thread here: http://ubuntuforums.org/showthread.php?p=5452132

    Just thought I'd let you all know

    Cheers

  8. #3008
    Join Date
    Mar 2008
    Location
    Normal, IL
    Beans
    505
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    got gmail on my conky now but i want to adjust it down so that its all linear with the rest. how do i get the subect line fixed

    gmail file
    Code:
    #!/usr/bin/perl
    
    use Switch;
    use Text::Wrap;
    
    my $what=$ARGV[0];
    
    $user="patrickmoore84"; #username for gmail account
    $pass="xxxxxx"; #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=3; #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 $_;
    }
    .conkyrc
    Code:
    #avoid flicker 
    double_buffer yes 
     
    #own window to run simultanious 2 or more conkys 
    own_window  yes 
    own_window_transparent yes 
    own_window_type normal 
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager  
     
    #borders 
    draw_borders no 
    border_margin 0 
     
    #shades 
    draw_shades no 
     
    #position 
    gap_x 1 
    gap_y 745 
    alignment top_left 
     
    #behaviour 
    update_interval 1 
     
    #colour default_color  9f907d 
    default_color  9f907d 
     
    #default_shade_color 000000 
    own_window_colour 3F3F3F 
     
    #font 
    use_xft yes 
    xftfont DejaVu Sans Mono:pixelsize=11 
    pad_percents 2 
    #to prevent window from moving 
    use_spacer yes 
    minimum_size 1280 0 
    maximum_width 1280 0 
    #mpd 
    mpd_host localhost 
    mpd_port 6600 
     
    TEXT 
     ${alignc}${color0}${font openlogos:regular:size=20}u ${font Arial:regular:size=16}${color D7D3C5}${time %d %B} ${color D7D3C5}${time  %H:%M}  ${font}${color} Connection: ${color D7D3C5}${wireless_essid wlan0}  ${color}Speed: ${color D7D3C5}${wireless_bitrate wlan0}  ${color}Quality: ${color D7D3C5}${wireless_link_qual wlan0}%  ${color }Activity: ${color D7D3C5}${font}${downspeed wlan0} down - ${color D7D3C5}${font}${upspeed wlan0} up Kb/s ${color }Root:${color D7D3C5}${font}${fs_free /}${color} Storage:${color D7D3C5}${fs_free /media/fat32}${color} Flash:${color D7D3C5}${fs_free /media/disk-1}           
    ${alignc}  ${color}Up: ${color D7D3C5}${uptime_short}  ${color}Processes: ${color D7D3C5}$processes  ${color}Running: ${color D7D3C5}$running_processes  ${color}Cpu: ${color D7D3C5}${cpu}%  ${color }Mem: ${color D7D3C5}$memperc%${color} Cpu Temp: ${color D7D3C5}${acpitemp}C ${color}Hdd Temp: ${color D7D3C5}${execi 300 nc localhost 7634 | cut -b29-30; } C${color} Battery Status: ${color D7D3C5}${battery_percent}% ${execi 300 perl ~/gmail.pl e}
    any help would be appreciated
    Attached Images Attached Images
    -ASUS U46: Intel Core I5(Sandy Bridge) 8 gb Ram, Integrated Graphics card. Currently running Ubuntu 13.04(64bit)

  9. #3009
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kaivalagi View Post
    Conky Weather Forecast Thread

    My old conkyForecast.py thread is in the archive section and has now been locked out for any more posts due to it's age.

    As such I have reposted to a new thread here: http://ubuntuforums.org/showthread.php?p=5452132

    Just thought I'd let you all know

    Cheers
    Smart move on your part. 's

  10. #3010
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    73
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kaivalagi View Post
    You can use the argv[] list in your script for simple command line argument access. In your example sys.argv[1] would be "wings=lol"
    Hope that helps
    OK thanks, that works very nice.

    Now i can display the info of the php file on my website in conky. Only 1 problem remains: the python script seems to add 2 blank lines after the output. When i access the php file in my browser those 2 lines are not there. So, in python, how can i cut the variable that contains the output, so that the 2 blank lines at the end are not shown (ie like the explode() funtion in php)?

    thanks!

    Matt

Page 301 of 2327 FirstFirst ... 2012512912993003013023033113514018011301 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •